Exclude or block a user email or an IP from retargeting via API

320 views
Skip to first unread message

Simone G

unread,
Oct 11, 2023, 1:51:30 AM10/11/23
to Google Ads API and AdWords API Forum
I'm setting up an automation to exclude IP addresses once they perform something on the website, the goal is: 
  1. to exclude users who have already submitted a form
  2. to exclude spam users once they hit a honey pot
In both cases, I have their IP address and email.

The automation is done through Zapier, but I can also use PHP. A Curl example will be great.
The idea is to exclude such users from all campaigns.

What do you think the best way is to do this?

Thank

Google Ads API Forum Advisor

unread,
Oct 11, 2023, 6:37:37 AM10/11/23
to sim...@messagenius.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

I understand that you are looking for a way to exclude IP addresses for all campaigns using Google Ads API. You may check the reference perl code to 'Update Campaign Criterion Ip Block', this example is not yet available in PHP. This code demonstrates how to add a campaign-level IP exclusion. As Zapier is a third party app we cannot comment on any automation related to Zapier. Let us know if you have any further queries.
 
This message is in relation to case "ref:_00D1U1174p._5004Q2pQdZn:ref"

Thanks,
 
Google Logo Google Ads API Team


Simone G

unread,
Oct 11, 2023, 8:30:05 AM10/11/23
to Google Ads API and AdWords API Forum
Thanks for the advice, I'm checking it.

Is there a way to get the equivalent REST API call of this operation?

Google Ads API Forum Advisor

unread,
Oct 12, 2023, 8:40:25 AM10/12/23
to sim...@messagenius.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

You can exclude/block ipaddress by utilizing the ipBlock field within the ipblockinfo structure in the CampaignCriterion.mutate method through the Rest interface.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages