Created
March 2, 2020 12:26
-
-
Save FrankM1/c1e90737b96df9e04086f846c08c44d2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 keywords = AdsApp.keywords() | |
.orderBy("Impressions DESC") | |
.forDateRange("ALL_TIME") | |
.withLimit(100) | |
.get(); | |
Logger.log("100 keywords with most impressions of all time"); | |
while (keywords.hasNext()) { | |
var keyword = keywords.next(); | |
Logger.log(keyword.getText() + ": " + | |
keyword.getStatsFor("ALL_TIME").getImpressions()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment