The error message returned from the server is misleading.  Even though
I had supplied a value as 'id', a more appropriate error message would
have noted the wrong type: string supplied where long integer
required.

That is, I had been sending the text string version of Campaign Name
as the ID, whereas a numerical Campaign ID is required.

Upon downloading a report, relevant column names are "Campaign ID" and
"Campaign".  Somewhere, I inadvertently swapped these two values in my
code.

See also:
http://code.google.com/apis/adwords/docs/appendix/reports.html




On Feb 5, 9:42 pm, daniel <[email protected]> wrote:
> Is there another ID associated with a campaign than campaign-ID?
>
> I'm attempting to change only the budget of a campaign.
>
> The response indicates errors about 'id' being required, even though
> it's been supplied and confirmed to be within the generated XML.
>
> The actual error is:
> RequiredError.REQUIRED @ operations[0].operand.id
>
> operations = [{
>         'operator':'SET',
>         'operand':{
>             'id': campaignId,
>             'budget':{
>                 'period':'DAILY',
>                 'amount':{'microAmount':"1001000000"}
>                 }
>             }
>     }]
> campaign_service = client.GetCampaignService('https://
> adwords.google.com', 'v201008')
> campaigns = campaign_service.Mutate(operations)
>
> I've tried with/without clientCustomerId and clientEmail headers
> corresponding to the campaign since this is an MCC account.  (Using
> those values or anything else that might potentially be considered an
> ID and inserting into that structure gets filtered-out by the Python
> client library, adwords_api_python_13.2.0.)
>
> These failures were with requestId e0201bbbda932424b673c622ff448f0d
> which had ten operations and 9863a3e78ab2ccaa797277b8bb1fc414 with
> just one. If someone at Google has access to review logs, that would
> be much appreciated!
>
> The above code was based upon samples:
>  - examples/adspygoogle/adwords/v201008/update_campaign.py
>  - examples/adspygoogle/adwords/v201008/check_campaigns.py
>  -http://code.google.com/apis/adwords/docs/callguide.html
>
> Any ideas? Pointers to specific manual pages? Sample code?
>
> Thanks!
> -Daniel

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to