Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python:Error GoogleAdsServerFault:[UserListError.USER\u LIST\u MUTATE\u不受支持_Python_Api_Google Ads Api_Adwords Apiv201402 - Fatal编程技术网

Python:Error GoogleAdsServerFault:[UserListError.USER\u LIST\u MUTATE\u不受支持

Python:Error GoogleAdsServerFault:[UserListError.USER\u LIST\u MUTATE\u不受支持,python,api,google-ads-api,adwords-apiv201402,Python,Api,Google Ads Api,Adwords Apiv201402,我正在尝试将adwords帐户中列表的成员寿命更新为30天。 下面是我的代码片段 adwords_client = adwords.AdWordsClient.LoadFromString('my credentials') adwords_client.SetClientCustomerId('my client id') user_list_service = adwords_client.GetService('AdwordsUserListService', 'v201809')

我正在尝试将adwords帐户中列表的成员寿命更新为30天。 下面是我的代码片段

 adwords_client = adwords.AdWordsClient.LoadFromString('my credentials')
 adwords_client.SetClientCustomerId('my client id')
 user_list_service = adwords_client.GetService('AdwordsUserListService', 'v201809')

 user_list = {
      'id' : 'my list id',
      'membershipLifeSpan': 30
              }

  # Create an operation to add the user list.
 operations = [{
      'operator': 'SET',
      'operand': user_list
  }]

 result = user_list_service.mutate(operations)
下面是错误

GoogleAdsServerFault: [UserListError.USER_LIST_MUTATE_NOT_SUPPORTED @ operations[0].operand]