Search Engine Land
  • SEO
    • > All SEO
    • > What Is SEO?
    • > SEO Periodic Table
    • > Google: SEO
    • > Bing SEO
    • > Google Algorithm Updates
  • PPC
    • > All PPC
    • > What is PPC?
    • > Google Ads
    • > Microsoft Ads
    • > The Periodic Tables of PPC
  • Focuses
    • > Local
    • > Commerce
    • > Shopify SEO Guide
    • > Content
    • > Email Marketing Periodic Table
    • > Social Media Marketing
    • > Analytics
    • > Search Engine Land Awards
    • > All Focuses
  • SMX
  • Webinars
  • Intelligence Reports
  • White Papers
  • About
    • > About Search Engine Land
    • > Newsletter
    • > Third Door Media
    • > Advertise

Processing...Please wait.

Search Engine Land » Google » Google Ads » Here’s an AdWords script to check for empty ad groups

Here’s an AdWords script to check for empty ad groups

See if you've left any ad groups empty with a new script from columnist Daniel Gilbert of Brainlabs.

Daniel Gilbert on May 17, 2016 at 10:02 am

Is your AdWords account running on empty?

Last month, I showed you how to check that you’re not still showing ads for last year’s deals. But what if you’re not showing any ads at all?

Maybe you’ve just paused all your sale ads and forgotten to reactivate some of the old ones. Or maybe you’ve been rolling out new ads for some copy testing but accidentally missed a few ad groups off the bulk sheet. Or maybe you’ve had all the ads in an ad group disapproved and haven’t noticed it yet.

Or maybe there is ad text, but the keywords are all disapproved. Or paused. Or are just missing. It doesn’t matter how compelling your ad text is if there’s nothing to make them show up!

So we’ve got a script that goes through all your ad groups and lets you know if they’re empty of ads or keywords. It even does a few “best practice” checks as well. It can also say if there are too many keywords or too few ads, if there are no mobile preferred ads, or if there are broad keywords with no negatives to keep them in check.

To use the script, copy the code below into your AdWords account, and then change the following settings. (If you’ve never run a script before, please read paid search reporter Ginny Marvin’s brilliant series on AdWords Scripts for every level).

  • You’ll need to create a blank Google Doc spreadsheet and enter its URL in spreadsheetUrl. The script will list the campaign and ad group names of the groups it finds in this spreadsheet.
  • If you don’t want to look at some campaigns, you can add their names (or part of their names) into the array campaignNameDoesNotContain. These have to be in quote marks and separated by commas — for example, [“Display,” “Shopping”] to exclude all campaigns with names containing “display” or “shopping.”
    • Leave blank, [], to not exclude any campaigns.
    • This is not case-sensitive.
    • As Shopping, Display and Dynamic Search campaigns don’t require keywords, use this to filter them out.
  • Alternatively, if there are only a few campaigns you want to look at, you could enter their names (or part of their names) into the array campaignNameContains. Like campaignNameDoesNotContain, these should be in quote marks and comma-separated — for example, [“Brand,” “Generic”] to include only campaigns with names containing “brand” or “generic.”
    • Leave blank, [], to include all campaigns.
    • Again, this is not case-sensitive.
    • If you need to put a double quote into campaignNameContains or campaignNameDoesNotContain, put a backslash before it. For example, if the campaign name is 9″ Tablets, you’d enter it as 9\” Tablets.
    • If your account is very large and the script keeps timing out, or if you’re running into the size limit of the output spreadsheet, you could try running the script multiple times using campaignNameContains or campaignNameDoesNotContain to look at different campaigns each time.
  • If ignorePausedCampaigns is true, then the script will only look at currently active campaigns. Set them to false if you want to look at currently paused campaigns, as well as the active ones.
    • You can use this to check new campaigns before they go live.
    • Note that paused ad groups are always ignored.
  • If ignorePausedKeywords is true, then the script will only look at active keywords: If an ad group has only paused keywords, then it will be reported as empty. If it’s false, then they won’t be reported as empty.
    • Removed keywords are always ignored. You can’t reactivate them, after all!
    • If ignorePausedKeywords is false, then paused keywords will also count toward the maximum number of keywords in an ad group.
  • Similarly, if ignorePausedAds is true, then paused ads are ignored: If an ad group has only paused ads, then it will be reported as empty.
    • Disapproved and removed ads are always ignored.
    • If ignorePausedAds is false, then paused ads will also count toward the minimum number of ads in an ad group.
  • maximumKeywordsPerAdGroup is a number. If an ad group has more than this number of keywords it will be reported.
    • I recommend having one keyword per ad group, to keep ads as relevant as possible and make sure ad testing is fair, so I’d set this to 1. But if you use a different account structure, you could set it to a higher number.
  • minimumAdsPerAdGroup is also a number. If an ad group has fewer than this many ads (but more than zero), it will be reported.
    • This is a basic way to make sure you’re testing ads everywhere. Ad testing is important! But if you only care that there is at least one ad in a group — so that there is something to show — you can set this to 1, and it won’t report anything.
  • If findAdGroupsWithoutMobileAds is true, then the script will output ad groups that have ads but don’t have any mobile preferred ads.
    • If ignorePausedAds is false, then ad groups that only have paused mobile ads won’t be reported here.
  • If findAdGroupsWithNoNegatives is true, then the script will output a list of ad groups which contain broad match keywords but don’t have any negative keywords.
    • The script will check if there are any negatives at ad group level, campaign level or in shared negative lists linked to the campaign.
    • If ignorePausedKeywords is false, then ad groups will be reported if they have no negatives and paused broad match keywords.

Here’s the script:


Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.


New on Search Engine Land

    4 elements of good content, according to Google research 

    Google Ads bug inflating some cost-per-click (CPCs) for non-US campaigns

    3 changes coming to Google Ads audience features

    Chrome will show Google Lens results in the same browser tab

    Google Marketing Live 2022: Everything you need to know

About The Author

Daniel Gilbert
Daniel Gilbert is the CEO at Brainlabs, the best paid media agency in the world (self-declared). He has started and invested in a number of big data and technology startups since leaving Google in 2010.

Related Topics

GoogleGoogle AdsMobilePPCSEO

Get the daily newsletter search marketers rely on.

Processing...Please wait.

See terms.

ATTEND OUR EVENTS

Learn actionable search marketing tactics that can help you drive more traffic, leads, and revenue.

March 8-9, 2022: Master Classes (virtual)

June 14-15, 2022: SMX Advanced (virtual)

November 15-16, 2022: SMX Next (virtual)

Learn More About Our SMX Events

Discover time-saving technologies and actionable tactics that can help you overcome crucial marketing challenges.

Start Discovering Now: Spring (virtual)

September 28-29, 2022: Fall (virtual)

Learn More About Our MarTech Events

Webinars

Take a Crawl, Walk, Run Approach to Multi-Channel ABM

Content Comes First: Transform Your Operations With DAM

Dominate Your Competition with Google Auction Insights and Search Intelligence

See More Webinars

Intelligence Reports

Enterprise SEO Platforms: A Marketer’s Guide

Enterprise Identity Resolution Platforms

Email Marketing Platforms: A Marketer’s Guide

Enterprise Sales Enablement Platforms: A Marketer’s Guide

Enterprise Digital Experience Platforms: A Marketer’s Guide

Enterprise Call Analytics Platforms: A Marketer’s Guide

See More Intelligence Reports

White Papers

Reputation Management For Healthcare Organizations

Unlock the App Marketing Potential of QR Codes

Realising the power of virtual events for demand generation

The Progressive Marketer’s Ultimate Events Strategy 2022 Worksheet

CMO Guide: How to Plan Smart and Pivot Fast

See More Whitepapers

Receive daily search news and analysis.

Processing...Please wait.

Topics

  • SEO
  • PPC

Our Events

  • Search Marketing Expo - SMX
  • MarTech

About

  • About Us
  • Contact
  • Privacy
  • Marketing Opportunities
  • Staff

Follow Us

  • Facebook
  • Twitter
  • LinkedIn
  • Newsletters
  • RSS
  • Youtube

© 2022 Third Door Media, Inc. All rights reserved.