-
-
Save g-ads-org/9b234d4ace1a654edf96ac6d51d53d16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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