Monday, 11 April 2016

TrialService trows UNEXPECTED_INTERNAL_API_ERROR on SOAP call

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.

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords 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+unsubscribe@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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@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/2cf04cbd-b95a-4cf6-a517-330cb3194345%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment