TrialService trows UNEXPECTED_INTERNAL_API_ERROR on SOAP call

43 views
Skip to first unread message

Yuyan Hu

unread,
Apr 12, 2016, 8:47:43 AM4/12/16
to AdWords API Forum, yuyan...@hotmail.com

Hi,

Thank you so much for developing draft and trial services, they would be so amazingly helpful!

But I did run into some confusions today trying to create a trial for one of my campaigns.

I am aware there are restraints for trial campaigns, so here is a brief stats of the base campaign: it is actively running, status is enabled and serving, start data is in 2015, and end date is in 2037.

And I was able to create a draft using the same exact code in the example

googleads-python-lib/examples/adwords/v201603/campaign_management/add_draft.py

 

then I tried to create a trial, but it wont work L

 

MacBook-Pro-5:googleads-3.15.0 amberyy$ sudo python test.py

Password:

Draft created, draft id 56xxxxxxxxxx78

Draft updated to include criteria in campaign with ID 56xxxxxxxxxxx78

No handlers could be found for logger "suds.client"

Traceback (most recent call last):

  File " test.py", line 159, in <module>

    a (adwords_client, '28xxxx66')

  File "copy_campaign.py", line 19, in a

    b (adwords_client, base_id, draft_id)

  File " test.py", line 71, in b

    trial_id = trial_service.mutate([trial_operation])['value'][0]['id']

  File "/Users/amberyy/Documents/googleads-3.15.0/googleads/common.py", line 323, in MakeSoapRequest

    for arg in args])

  File "build/bdist.macosx-10.11-intel/egg/suds/client.py", line 521, in __call__

  File "build/bdist.macosx-10.11-intel/egg/suds/client.py", line 581, in invoke

  File "build/bdist.macosx-10.11-intel/egg/suds/client.py", line 619, in send

  File "build/bdist.macosx-10.11-intel/egg/suds/client.py", line 670, in process_reply

suds.WebFault: Server raised fault: '[InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro)'

 

the code it crashed on was line 54 in

googleads-python-lib/examples/adwords/v201603/campaign_management/add_trial.py

 

trial_service = client.GetService('TrialService', version='v201603')

  trial_async_error_service = client.GetService('TrialAsyncErrorService',

                                                version='v201603')

 

  trial = {

      'draftId': draft_id,

      'baseCampaignId': base_campaign_id,

      'name': 'Test Trial #%d' % uuid.uuid4(),

      'trafficSplitPercent': 50

  }

 

  trial_operation = {'operator': 'ADD', 'operand': trial}

  trial_id = trial_service.mutate([trial_operation])['value'][0]['id']

 

last line above crashed. L

Thank you so much for your help.

Yin Niu

unread,
Apr 12, 2016, 9:49:07 AM4/12/16
to AdWords API Forum, yuyan...@hotmail.com
Hi, 

Could you please send SOAP request and response logs? You can enable SOAP logs for Python library following the instruction here. Please click Reply privately to author when responding. 

Thanks,
Yin, AdWords API Team. 
Reply all
Reply to author
Forward
0 new messages