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 [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
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.