How to block more than 500 IPs

506 views
Skip to first unread message

rymj

unread,
Nov 9, 2018, 1:32:11 AM11/9/18
to AdWords API and Google Ads API Forum
Hellow.
We want to block more than 500 IPs.
Is there a way to register more than 500 IP addresses or any other way to achieve that? 

Luis Xander Talag (AdWords API Team)

unread,
Nov 9, 2018, 2:54:12 AM11/9/18
to AdWords API and Google Ads API Forum
Hi Ryosuke,

Yes, you should be able to block 500 ip addresses. You may use CampaignCriterionService.mutate() and set the criterion of NegativeCampaignCriterion object to IpBlock. Please refer to this code block in Java (available in other languages) as a reference.

Note: We are running an annual developer feedback survey. Please take opportunity to leave feedback on how we can make managing campaigns at scale even easier.

Thanks,
Luis
AdWords API Team

rymj

unread,
Nov 9, 2018, 3:51:36 AM11/9/18
to AdWords API and Google Ads API Forum
I wan to know "more than 500"...


2018年11月9日金曜日 16時54分12秒 UTC+9 Luis Xander Talag (AdWords API Team):

Luis Xander Talag (AdWords API Team)

unread,
Nov 11, 2018, 9:39:00 PM11/11/18
to AdWords API and Google Ads API Forum
Hi Ryosuke,

Thanks for the clarification. Yes, you should be able to block more than 500 IP addresses via CampaignCriterionOperation. You may refer to this link as a reference on how to create a BatchJob and here for the best practices guide.

If you encounter any issues, please provide your clientCustomerId, and complete SOAP request and response logs so I can further investigate the issue on my end. You can send them to me via Reply privately to author.

Thanks,
Luis
AdWords API Team

rymj

unread,
Nov 12, 2018, 2:19:04 AM11/12/18
to AdWords API and Google Ads API Forum
I think there is a limitation of up to 500, but is it wrong?

1. Explanation of Previous version (on document of Exclude IP addresses)
There is statement on the upper limit
6. ... Type just one IP address per line, up to 500 addresses per campaign.

2. Explanation of New version (on document of Exclude IP addresses)
There is no statement on the upper limit.

3. When trying to register from the browser
I get an error "Exceeded entity limit in this campaign. Limit type: Excluded IP blocks per campaign. Existing count: 0. Limit: 500."

4. When trying to register from API
I get an error 
"[EntityCountLimitExceeded.CAMPAIGN_LIMIT @ operations[500] (enclosingId=1598007056, limit=500, accountLimitType=EXCLUDED_IP_BLOCKS_PER_CAMPAIGN, existingCount=0), EntityCountLimitExceeded.CAMPAIGN_LIMIT @ operations[501] (enclosingId=1598007056, limit=500, accountLimitType=EXCLUDED_IP_BLOCKS_PER_CAMPAIGN, existingCount=0)]"

2018年11月12日月曜日 11時39分00秒 UTC+9 Luis Xander Talag (AdWords API Team):

Luis Xander Talag (AdWords API Team)

unread,
Nov 12, 2018, 3:06:15 AM11/12/18
to AdWords API and Google Ads API Forum
Hi Ryosuke,

My apologies as it seems that you're correct  that there is a limit of 500 IP addresses per campaign as you can see here under "Excluded IP blocks per campaign.". Currently, there is no workaround for this because the API has the same behavior with the UI. Kindly follow the blog for future updates.

Let me know if you have further clarifications.

Thanks,
Luis
AdWords API Team

rymj

unread,
Nov 12, 2018, 3:49:33 AM11/12/18
to AdWords API and Google Ads API Forum
Thank you, Luis.
I'm hopeful that the upper limit will be raised.

2018年11月12日月曜日 17時06分15秒 UTC+9 Luis Xander Talag (AdWords API Team):

Peter Oliquino (AdWords API Team)

unread,
Nov 12, 2018, 5:16:18 AM11/12/18
to AdWords API and Google Ads API Forum
Hi,

I will let the team know about your concern, but there is no guarantee that this will be available soon. Kindly follow the blog for updates.

Thanks,
Peter
AdWords API Team

Exotic Mobile Detailing Inc

unread,
Jan 25, 2019, 4:05:29 PM1/25/19
to AdWords API and Google Ads API Forum
Also any examples?

Thank you

googleadsapi...@google.com

unread,
Jan 27, 2019, 10:25:24 PM1/27/19
to adwor...@googlegroups.com, AdWords API and Google Ads API Forum
Hi Chris,

In order to block IP addresses, you may use CampaignCriterionService.mutate() and set the criterion of NegativeCampaignCriterion object to IpBlock. You may refer to the Java code sample in this link (refer here for other supported languages of our client libraries). 

Please let me know if I have misunderstood your question.

Regards,
Kevin
AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@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/77cd6a49-deac-4134-a1dc-7c043699cbe0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages