Skip to content

Instantly share code, notes, and snippets.

@vhsu
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save vhsu/487be0363734dfe55528 to your computer and use it in GitHub Desktop.

Select an option

Save vhsu/487be0363734dfe55528 to your computer and use it in GitHub Desktop.
Adwords Script - Modify TargetedLocation Bids
// Author Vincent Hsu @suisseo
// In this example the targeted location bids are increased by 10% (0.10)
var locationSelector = AdWordsApp.targeting()
.targetedLocations()
//.withCondition("CampaignName CONTAINS_IGNORE_CASE 'somecampaignName'")
var locationIterator = locationSelector.get();
while (locationIterator.hasNext()) {
var location = locationIterator.next();
//Increase TargetedLocation Bids
location.setBidModifier(location.getBidModifier() + 0.10)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment