TrialService gets UNEXPECTED_INTERNAL_API_ERROR (related with MakeSoapRequest)

37 views
Skip to first unread message

Stella

unread,
Sep 28, 2018, 3:51:17 PM9/28/18
to AdWords API and Google Ads API Forum

Hi,

I am using the TrialService. It runs well for once two weeks ago when I create a trial through version=v201806

But I did run into “InternalApiError.UNEXPECTED_INTERNAL_API_ERROR" today trying to  for one of my campaigns. I am following the same python demo here: https://developers.google.com/adwords/api/docs/guides/campaign-drafts-experiments

I got warnings and error :

[WARNING] 2018-09-28 08:12:42,534 googleads.soap(363): Error summary: {'faultMessage': '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]', 'requestId': ‘xxxxxx', 'serviceName': 'TrialService', 'methodName': 'mutate', 'operations': '1', 'responseTime': '245'}

During handling of the above exception, another exception occurred:
...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]

Have also tryied logging according to a instruction in the group,but no more things pop up.  Please help take a look. Thank you

This is the code I am using:
trial_service = client.GetService('TrialService', version='v201806')
trial_async_error_service = client.GetService('TrialAsyncErrorService', version='v201806)
trial = {
'draftId'draftId,
    'baseCampaignId'baseCampaignId,
    'name': '%s_trial' %CampaignName,
'trafficSplitPercent': 50,
'startDate':2019-01-01',
'endDate':'2020-01-01'
}

trial_operation = {
'operator': 'ADD', 'operand': trial}
trial_result = trial_service.mutate([trial_operation])[
'value]

import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger('suds.transport').setLevel(logging.DEBUG)
trial_result = trial_service.mutate([trial_operation])

Dannison Yao (AdWords API Team)

unread,
Oct 1, 2018, 2:03:36 AM10/1/18
to AdWords API and Google Ads API Forum
Hi Stella,

The UNEXPECTED_INTERNAL_API_ERROR error message may occur if the service request is too big or possible due to a bug. It is advisable to wait for a few minutes before making the service call again. If you are encountering this error consistently, could you provide me the complete SOAP request and response logs that were generated when the error was encountered so I could investigate this further? You may send it to me via Reply privately to author.

To enable logging in Python, you could refer to this guide on how to do so.

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