Hi,
I need to update the bid of 500 Ads in AdGroups more than 10 000 times in a
day. That's why I try to pack all operations in one to avoid the over query
limit but I think I don't understand something.
I followed examples to have this code :
myfunction($user, $adGroupIds, $value)
{
$mutateJobService = $user->GetService('MutateJobService', "v201406");
$operations = array();
foreach ($adGroupIds as $adGroupId)
{
$adGroup = new AdGroup();
$adGroup->id = $adGroupId;
$bid = new CpcBid();
$bid->bid = new Money($value);
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
$biddingStrategyConfiguration->bids[] = $bid;
$adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration;
$operation = new AdGroupOperation();
$operation->operand = $adGroup;
$operation->operator = 'SET';
$operations[] = $operation;
}
$policy = new BulkMutateJobPolicy();
$policy->prerequisiteJobIds = array();
$job = $mutateJobService->mutate($operations, $policy);
$selector = new BulkMutateJobSelector();
$selector->jobIds[] = $job->id;
while ($job->status != "COMPLETED")
{
$jobs = $mutateJobService->get($selector);
$job = $jobs[0];
}
if ($job->status == "COMPLETED")
{
echo "job completed";
}
}
With this code, I still have "[RateExceededError <rateName=BillingPerDay,
rateKey=level1_plan, rateScope=DEVELOPER, retryAfterSeconds=86400>]" after
10 000 updates.
Could someone explain me what I do wrong ?
Thanks,
Maxime
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/6105deec-af5c-43a5-b18a-177cc664eadb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.