Created
January 4, 2017 17:18
-
-
Save derekmartinla/8ac05c8ecfd55fd4091e32dd9d0dc74c 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 main() { | |
var kwIter = AdWordsApp.keywords().withCondition("Text CONTAINS '2016'").get(); | |
while (kwIter.hasNext()) { | |
var keyword = kwIter.next(); | |
// create new keyword | |
keyword.getAdGroup().newKeywordBuilder() | |
.withText(keyword.getText().replace("2016", "2017")) | |
.withCpc(keyword.bidding().getCpc()) | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment