Location Exclusion AdWords Script

32 views
Skip to first unread message

ANIL IQBAL

unread,
Feb 28, 2019, 10:59:26 AM2/28/19
to Google Ads Scripts Forum
Hey Google Ads Scripts Team,

Hope you all well.

I have a question regarding the location exclusion script that can be implemented to make sure the ads only run to the set targeted location. I know, we can exclude the locations by going to location targeting section and exclude from there. But I would like to know if there is any script that we can use on Account level. We ONLY want to run campaigns in Canada, and we have hundred of campaigns, so it would be hard to do it manually. Just to let you know, I know the advanced location setting can work. But I am talking about if somehow we forgot the location setting and ad would start running across the world. Note: I have zero coding knowledge. 

Thanks!
Anil 

Nils Rooijmans

unread,
Mar 1, 2019, 4:09:58 AM3/1/19
to Google Ads Scripts Forum
Hi Anil,

as far as i know, it is not possible to access the advanced Location targeting setting 'Target setting status' via scripts.
So scripts cannot read or change this setting.

What you could do is have a script alert you if a campaign has impressions/clicks in User locations other than the location you are targetting.

You can use the Geo Performance report to get this data per campaign (see details: https://developers.google.com/adwords/api/docs/appendix/reports/geo-performance-report).

The script can compare all user locations in all campaigns with the campaigns' targetted location, and report issues in a Google Sheet and send you an email alert whenever issues occur.

Hope this helps, 

Nils Rooijmans 
See my Google Ads Scripts FAQ to avoid the same mistakes i made: https://nilsrooijmans.com/google-ads-scripts-faq/

googleadsscrip...@google.com

unread,
Mar 1, 2019, 1:06:57 PM3/1/19
to ANIL IQBAL via Google Ads Scripts Forum, Google Ads Scripts Forum
Hi Anil,

Google Ads Scripts does require a basic understanding of Javascript, and before implementing Scripts, I would recommend looking through the guides.

The script found here under the header, 'Target a campaign for a country', will loop through all specified campaigns and add the specified country as a target to those campaigns. Note the URL in the code comments that will lead you to the list of country codes.

You can filter which campaigns (along with other Ads entities) using selectors. More relevant topics are covered in the guides.

Regards,
Matt 
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/706c3025-18d6-47d2-b904-06344972b657%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

googleadsscrip...@google.com

unread,
Mar 1, 2019, 2:02:58 PM3/1/19
to Nils Rooijmans via Google Ads Scripts Forum, Google Ads Scripts Forum
Hi Nils,

Thanks for your input. Just to confirm, advanced location options are not available in scripts.

Regards,
Matt
Google Ads Scripts Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_scripts
    https://developers.google.com/google-ads/scripts/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scripts+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages