Google recommend three or more ads per Ad group to ensure enough copy is being tested.

Checking each Ad group would take forever. This script will count how many ads are in each Ad group, total ads (including paused) and a few stats.

It will count both Text Ads and Expanded Text Ads (ETAs).


  1. Copy & paste your Google Spreadsheet link, replacing “your-sheet-link”
  2. Enter your tab name in the same manner, this can be anything you like
  3. Done. We recommend setting this to run daily

* - Ad Counter
* This script will count how many ads you have live
* Google recommend 3 or more. This will count both standard ads and ETAs
* Go to for installation instructions & advice
* Version: 1
var spreadsheetURL = "your-sheet-link";
var sheetName = "your-tab-name";
 var spreadsheet = SpreadsheetApp.openByUrl(spreadsheetURL);  
function main() {
function checkAds(){

 var currentSheet = spreadsheet.getSheetByName(sheetName);
 var adminRow = 2;
  var header = [["Campaign", "AdGroup", "Live Ads", "Total Ads", "Imps", "CTR", "Conv. Rate"]];
 var adGroups = AdWordsApp
 .withCondition("CampaignStatus = ACTIVE")
 .withCondition("AdGroupStatus = ENABLED")
 .withCondition("Status = ENABLED")
 .withCondition("CampaignName DOES_NOT_CONTAIN 'PL'")
 .withCondition("CampaignName DOES_NOT_CONTAIN 'Dynamic Remarketing'")
 var row = 2;
 while (adGroups.hasNext()) {
 var adGroup =; 
 currentSheet.getRange(row, 1).setValue(adGroup.getCampaign().getName());
 currentSheet.getRange(row, 2).setValue(adGroup.getName());
 var numOfAds = 0; 
 var numOfTotalAds = 0;
 var ads ="Type in [EXPANDED_TEXT_AD, TEXT_AD]").get();

 var ad =;
 var adStats = ad.getStatsFor("LAST_30_DAYS")
 var impressions = adStats.getImpressions();
 var CTR = adStats.getCtr();
 var convRate = adStats.getConversionRate();
 currentSheet.getRange(row, 3).setValue(numOfAds);
 currentSheet.getRange(row, 4).setValue(numOfTotalAds);
 currentSheet.getRange(row, 5).setValue(impressions);
 currentSheet.getRange(row, 6).setValue(CTR);
 currentSheet.getRange(row, 7).setValue(convRate);




1 Comment

Noach · June 21, 2021 at 11:13 pm

Do you use automated bidding in Google AdWords? Why or why not? If not, when do you raise and lower keyword bids?   

Leave a Reply

Your email address will not be published. Required fields are marked *