Hi Stella, The UNEXPECTED_INTERNAL_API_ERROR <https://developers.google.com/adwords/api/docs/common-errors#InternalApiError.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 <https://github.com/googleads/googleads-python-lib/blob/master/README.md#how-do-i-log-soap-interactions> on how to do so. Regards, Dannison AdWords API Team On Saturday, September 29, 2018 at 3:51:17 AM UTC+8, Stella wrote: > > 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]) > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/bf3a367a-222d-4e02-a709-0113a9d9f8ae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.