Too many adgroups or what I am doing wrong?

42 views
Skip to first unread message

WDirk

unread,
Oct 22, 2018, 7:09:29 PM10/22/18
to AdWords API and Google Ads API Forum
Hi, I've got a code that should create around 6000 adgroups, but after a while when it is running, it gives me this ERROR:

Error summary: {'faultMessage': 'InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro', 'serviceName': 'AdGroupService', 'methodName': 'mutate'}
Traceback (most recent call last):
  File "/Users/roelramp/PycharmProjects/adwords_Python3/googleads/common.py", line 1377, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/proxy.py", line 42, in __call__
    self._op_name, args, kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 132, in send
    return self.process_reply(client, operation_obj, response)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/zeep/wsdl/bindings/soap.py", line 194, in process_reply
    return self.process_error(doc, operation)
  File "/Library/Frameworks/Python.framework/Versions/3.7/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 "/Users/roelramp/PycharmProjects/adwords_Python3/examples/adwords/v201809/basic_operations/add_ad_groups.py", line 141, in <module>
    main(adwords_client, CAMPAIGN_ID)
  File "/Users/roelramp/PycharmProjects/adwords_Python3/examples/adwords/v201809/basic_operations/add_ad_groups.py", line 120, in main
    ad_groups = ad_group_service.mutate(operations)
  File "/Users/roelramp/PycharmProjects/adwords_Python3/googleads/common.py", line 1389, 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

is it because too many iterations?
  

Dannison Yao (AdWords API Team)

unread,
Oct 22, 2018, 11:06:28 PM10/22/18
to AdWords API and Google Ads API Forum
Hi,

The error UNEXPECTED_INTERNAL_API_ERROR you are encountering means that the AdWords API server had problems processing your request or it could also be due to a bug. It is advised to wait for a few minutes before doing the service call again. Could you confirm if you are encountering this consistently?

If yes, could you provide the complete SOAP request and response logs that were generated when the error was encountered via Reply privately to author so I could investigate this further? If you have not enabled logging yet, you may refer to this guide on how to do so.

The limit should not be a problem. As stated in this guide, 20000 ad groups are allowed per campaign.

Regards,
Dannison
AdWords API Team
Reply all
Reply to author
Forward
0 new messages