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.