SelectorError.INVALID_FIELD_NAME

6 views
Skip to first unread message

divya....@sokrati.com

unread,
Dec 18, 2018, 3:23:14 PM12/18/18
to AdWords API and Google Ads API Forum
Hi,

While running get_account_changes and supplying the account id, name and status in the selector, I am facing this error:

Error summary: {'faultMessage': "[SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'779-497-8869', SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Titan', SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Active']", 'requestId': '00057d4806038ab10a6218427f009436', 'serviceName': 'CampaignService', 'methodName': 'get', 'operations': '1', 'responseTime': '180'}
Traceback (most recent call last):
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\googleads\common.py", line 1382, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\zeep\proxy.py", line 42, in __call__
    self._op_name, args, kwargs)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\zeep\wsdl\bindings\soap.py", line 132, in send
    return self.process_reply(client, operation_obj, response)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\zeep\wsdl\bindings\soap.py", line 194, in process_reply
    return self.process_error(doc, operation)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\zeep\wsdl\bindings\soap.py", line 299, in process_error
    detail=fault_node.find('detail'))
zeep.exceptions.Fault: [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'779-497-8869', SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Titan', SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Active']

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "get_account_changes.py", line 101, in <module>
    main(adwords_client)
  File "get_account_changes.py", line 42, in main
    campaigns = campaign_service.get(selector)
  File "C:\Program Files (x86)\Python36-32\lib\site-packages\googleads\common.py", line 1394, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'779-497-8869', SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Titan', SelectorError.INVALID_FIELD_NAME @ serviceSelector; trigger:'Active']

Peter Oliquino (AdWords API Team)

unread,
Dec 18, 2018, 5:13:41 PM12/18/18
to AdWords API and Google Ads API Forum
Hi Divya,

It appears that you are using the CampaignService instead of the CustomerSyncService which is used in the GetAccountChanges example in Python. I would recommend that you refer to the said example and this documentation on the appropriate fields/objects to select when using the CustomerSyncService.

Thanks and regards,
Peter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages