TrialService InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

33 views
Skip to first unread message

Stella

unread,
Sep 28, 2018, 3:51:27 PM9/28/18
to AdWords API and Google Ads API Forum
Hi, I’ve checked provious dicussion the group, here is my code of following instructions of logging.

I have used this code to create trial campaign 2weeks ago and it worked well. Now get below error, and I get no more logging when after following instructions.

trial = {
'draftId': available_pool.loc[index]['draftId'],
'baseCampaignId': available_pool.loc[index]['draft_campaign_id'],
'name': '%s_value' %available_pool.loc[index]['CampaignName'],
'trafficSplitPercent': 30,
'startDate': '2018-10-01',
'endDate': '2019-01-26'
}
trial_operation = {'operator': 'ADD', 'operand': trial}

import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)

trial_result = trial_service.mutate([trial_operation])

[WARNING] 2018-09-28 09:18:55,308 googleads.soap(363): Error summary: {'faultMessage': '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]', 'requestId': '000576f0cfd8ecd00a37ac0b110b3534', 'serviceName': 'TrialService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '337'}
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 1371, in MakeSoapRequest
    *packed_args, _soapheaders=soap_headers)['body']['rval']
  File "/usr/local/lib/python3.6/site-packages/zeep/client.py", line 45, in __call__
    self._op_name, args, kwargs)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 121, in send
    return self.process_reply(client, operation_obj, response)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 186, in process_reply
    return self.process_error(doc, operation)
  File "/usr/local/lib/python3.6/site-packages/zeep/wsdl/bindings/soap.py", line 291, 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/stellayang/Library/Python/3.6/lib/python/site-packages/IPython/core/interactiveshell.py", line 2881, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-531-055786788567>", line 15, in <module>
    trial_result = trial_service.mutate([trial_operation])['value']
  File "/usr/local/lib/python3.6/site-packages/googleads/common.py", line 1383, 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]


Dannison Yao (AdWords API Team)

unread,
Oct 1, 2018, 2:04:11 AM10/1/18
to AdWords API and Google Ads API Forum
Hi,

It appears that this post is related to this thread. You may refer to the link provided for my response and to better track our communication.

Regards,
Dannison
AdWords API Team

Stella

unread,
Oct 2, 2018, 7:19:23 PM10/2/18
to AdWords API and Google Ads API Forum
Yes, this is the same one. I could not immediately see what has been posted, and thought that was not successful 
Reply all
Reply to author
Forward
0 new messages