Skip to content

Instantly share code, notes, and snippets.

@g-ads-org
Created Sep 17, 2020
Embed
What would you like to do?
function excludeLocationTarget() {
var campaignIterator = AdsApp.campaigns()
.get();
if (campaignIterator.hasNext()) {
var campaign = campaignIterator.next();
// https://developers.google.com/adwords/api/docs/appendix/geotargeting
campaign.excludeLocation(2826);
campaign.excludeLocation(2792);
campaign.excludeLocation(2040);
Logger.log("Turkey, Austria and Britania Excluded!");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment