Hi Anash, 
We do not have budgetId setup in campaign, is it required to update 
campaign budget amount? In v201309 we have no problem updating campaign 
budget without budget id. 
I also checked the campaign selector and it does not return the budget id 
either.
Thanks,
Richard

On Monday, April 21, 2014 1:05:40 PM UTC-5, Anash P. Oommen (AdWords API 
Team) wrote:
>
> Hi Richard,
>
> The server is complaining about missing budgetId. See the error code 
> snippet, System.Web.Services.Protocols.SoapException: 
> [RequiredError.REQUIRED @ operations[0].operand.budget.budgetId]
>
> Cheers,
> Anash P. Oommen,
> AdWords API Advisor.
>
> On Monday, April 21, 2014 10:24:38 AM UTC-4, Richard wrote:
>>
>> Can we still update campaign budget via api, our code below to update 
>> budget worked on v201309 but error on v201402
>>
>> GoogleCampaign.CampaignOperation op = new CampaignOperation();
>> op.operand = new Campaign {id = campaignID, idSpecified = true};
>> op.operand.budget = new Budget();
>> op.operand.budget.amount = new Money();
>> op.operand.budget.amount.microAmount = Util.FromDecimal(budget);
>> op.operand.budget.amount.microAmountSpecified = true;
>> op.@operator = Operator.SET;
>> op.operatorSpecified = true;
>>
>> var result = campaignService.mutate(new[] {op});
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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+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 Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to