Hi, The error UNEXPECTED_INTERNAL_API_ERROR <https://developers.google.com/adwords/api/docs/common-errors#InternalApiError.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 <https://github.com/googleads/googleads-python-lib/blob/master/README.md#how-do-i-log-soap-interactions> on how to do so. The limit should not be a problem. As stated in this guide <https://support.google.com/google-ads/answer/6372658?hl=en>, 20000 ad groups are allowed per campaign. Regards, Dannison AdWords API Team On Tuesday, October 23, 2018 at 7:09:29 AM UTC+8, WDirk wrote: > > 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? > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8d58e16c-d2db-461d-a484-a2c0c1fad80d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.