Unexpected internal API error

137 views
Skip to first unread message

Ignacio Guillermo Martinez

unread,
Feb 12, 2020, 2:53:37 PM2/12/20
to AdWords API and Google Ads API Forum
Hello, I am running into some trouble when adding criteria to an adgroup.

Traceback (most recent call last):
  File "/usr/local/anaconda3/lib/python3.7/site-packages/googleads/common.py", line 992, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "/usr/local/anaconda3/lib/python3.7/site-packages/zeep/proxy.py", line 45, in __call__
    kwargs,
  File "/usr/local/anaconda3/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 130, in send
    return self.process_reply(client, operation_obj, response)
  File "/usr/local/anaconda3/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 195, in process_reply
    return self.process_error(doc, operation)
  File "/usr/local/anaconda3/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 299, in process_error
    detail=fault_node.find("detail"),
zeep.exceptions.Fault: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "add_audiences.py", line 79, in <module>
    main(adwords_client, 'XXXXXXXXXXXX')
  File "add_audiences.py", line 60, in main
    response = ad_group_criterion_service.mutate(operations)
  File "/usr/local/anaconda3/lib/python3.7/site-packages/googleads/common.py", line 1004, in MakeSoapRequest
    e.detail, errors=error_list, message=e.message)
googleads.errors.GoogleAdsServerFault: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]


My code attempts to add 19 separate criteria to an adgroup given its ID, however it is always returning this error. You can find my code attached in this message also, so the error can be reproduced. 

Thanks for your time
add_audiences.py

Google Ads API Forum Advisor Prod

unread,
Feb 13, 2020, 3:18:35 PM2/13/20
to 23c...@gmail.com, adwor...@googlegroups.com

Hello Ignacio,

Thank you for reaching out. Please refer to the code sample provided here for reference to add criteria to the ad groups using Python client libraries. If the issue persists, could you please share the complete request and response logs along with the client customer id by enabling Python logging from here for further investigation?

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UV0dhx:ref
Reply all
Reply to author
Forward
0 new messages