Hi,

This looks like a duplicate of your other 
post<https://groups.google.com/d/msg/adwords-api/n-Qm-fo-bMg/OaZl0RbZ9bMJ>. 
 Please see that post for my answer to your question.

Cheers,
Josh, AdWords API Team

On Friday, March 28, 2014 8:48:00 AM UTC-4, Mike Young wrote:
>
> Using V201402
>
> How do I set the budget of a campaign using a stored BudgetId and stored 
> CampaignId?
> I do not want to create a campaign, just change one.
>
> Using the following in PHP (not working code but bits that I have 
> collected from others!): -
>
>
> require_once 'Google/Api/Ads/AdWords/v201402/BudgetService.php';
>
> $budgetService = $user->GetService('BudgetService', 201402);
>
> $budget = new Budget();
> $budget->budgetId = "3067231";
> $budget->amount->microAmount = "15000000";
>
> $campaign->budget = $budget;
>
> $operation = new CampaignOperation();
> $operation->operand = $campaign;
> $operation->operator = 'SET';
>    
> $operations = array($operation);
> $result = $budgetService->mutate($operations);
>
>
> Am I anywhere near?
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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