In Google Ads Scripts (JavaScript) you're able to get all your Keywords data with this code below

  var keywordsIterator = AdWordsApp.keywords()
      .forDateRange("ALL_TIME")
      .get();

I'm using the Java client library and it comes with some basic operations, one of those is getKeywords which recieve as parameter an AD_GROUP_ID and returns all the keywords in that AdGroup.

Since I have a lot of AdGroups, it takes a long time to process all the data. (I loop n times this method to get all the keywords of all AdGroups)

Is there any method or selector that allows you to get all the keywords of every single AdGroup in one operation as well as the AdWords Scripts solution?

EDIT

getKeywords code

1 Answers

0
banuj On

Hy,

According to the example, AD_GROUP_ID is optional and if is not specified, it returns returns keywords from all ad groups.