Hi Guys,

I'm trying to add 400 IP addresses to the IP Exclusion list to all of our 
campaigns. However, after updating only 10-12 campaigns, I get the 
following error:

[RateExceededError <rateName=OperationsPerDay, 
rateKey=billing_developer_request, rateScope=ACCOUNT, 
retryAfterSeconds=86400>]

As per this document 
<https://developers.google.com/adwords/api/docs/ratesheet>, one mutate 
operation should count as 2 API requests. However, it looks like each ADD 
operation within one mutate request is counting as an API request.

Please let me know if I'm missing something.

Here is my code.

Thanks
Prashant



for (Campaign campaign : campaigns) {
 for(String blockedIPAddress : blockedIPAddresses){
 CampaignCriterionOperation operation = new CampaignCriterionOperation();
 NegativeCampaignCriterion negativeCampaignCriterion = new 
NegativeCampaignCriterion();
 negativeCampaignCriterion.setCampaignId(campaign.getId());
 IpBlock ipBlock = new IpBlock();
 ipBlock.setIpAddress(blockedIPAddress);
 negativeCampaignCriterion.setCriterion(ipBlock);
 operation.setOperand(negativeCampaignCriterion);
 operation.setOperator(Operator.ADD);
 operations.add(operation);
 
 if(operations.size() > 399){
 break;
 }
 }
 
 campaignCriterionService.mutate(operations.toArray(new 
CampaignCriterionOperation[operations.size()]));

 Thread.sleep(10000);
 }

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/08165cbe-b7f0-4be4-8d49-41e33944551b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to