updating ip exclusion list

152 views
Skip to first unread message

uvsuperDev

unread,
Jul 21, 2015, 8:26:27 PM7/21/15
to AdWords API Forum
Hi all,
What would be the best way (in terms of minimum operations and requests to the adwords api) to replace a set of IPs with a new set of IPs in the exclusion list via API?
I was thinking to  create a campaignCreterionOperation first to remove all the IPs from the list and then create another  campaignCreterionOperation  to add the new IPs to the exclusion list. both objects can be sent by campaignCreterionService or MutateJobService.

1. Is that the best way to do it? Is there a way to do it with the "set" operator instead remove and add operators?
2. What is the difference if I used MutateJobService and not campaignCreterionService?
3. Let's say I remove 100 IPs from the list and then adds 100 IPs to the list. Does this count like 200 mutate operations? (I am asking because that would take me very close to the 10,000 operations limit).

thanks!


Umesh Dengale

unread,
Jul 24, 2015, 5:12:58 PM7/24/15
to AdWords API Forum, yuval....@gmail.com, yuval....@gmail.com
Hello,

You can use SET operator (for the mutate operation) to update existing exclude IP addresses ( Which will remove existing IP address and set the new IP address to exclude provided by SET operator).
The MutateJobService is used when the user wants to schedule large batches of updates to your AdWords campaigns as asynchronous mutate jobs. The CampaignCreterionService will be the synchronous operation. You can decide based on requirements. Updating one IpBlock will count as one operation

Regards,
Umesh, AdWords API Team.

rymj

unread,
Oct 29, 2018, 7:45:33 AM10/29/18
to AdWords API and Google Ads API Forum
Can I still use SET operator to update existing exclude IP addresses?

I tried it but I got CampaignCriterionError.OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE error.


2015年7月25日土曜日 6時12分58秒 UTC+9 Umesh Dengale:

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 29, 2018, 3:29:56 PM10/29/18
to AdWords API and Google Ads API Forum
Hello,

You are right, you could remove the specific IP_BLOCK and add the updated IP instead of performing the SET operation. Please let me know if you are facing any issues while doing this.

Thanks,
Sreelakshmi, AdWords API Team

rymj

unread,
Oct 29, 2018, 10:32:10 PM10/29/18
to AdWords API and Google Ads API Forum
Thank you for your answer.
I think I will use "REMOVE then ADD".

In that case, if I remove 500 IP addresses and add 500 IP addresses, will the number of operations be counted as 1000?
Is there a way to reduce the number of operations?


2018年10月30日火曜日 4時29分56秒 UTC+9 Sreelakshmi Sasidharan (AdWords API Team):

min anh

unread,
Oct 30, 2018, 7:09:36 AM10/30/18
to AdWords API and Google Ads API Forum
me too, I lkie you a problem, I havew no deal to fix that

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 30, 2018, 3:30:09 PM10/30/18
to AdWords API and Google Ads API Forum
Hello,

Yes, in that case it will be 1000. Please see here to know how the API operations are counted in various case. If you need to remove just one of the IP addresses, you could remove just that one and add the new one. It is not required to update the entire list that you have on the campaign.
Reply all
Reply to author
Forward
0 new messages