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 a script that copies AdWords extensions to all your campaigns

Here’s a script that copies AdWords extensions to all your campaigns

Columnist Dan Gilbert shares another script from Brainlabs that will copy your AdWords extensions across different campaigns.

Daniel Gilbert on September 8, 2016 at 10:25 am

google-adwords-bigA8-1920

You might not usually think of shared negative lists and campaign extensions together, because their uses are so different: lists are used for targeting, while extensions spruce up your ads.

But if you look at them with AdWords Scripts, they’re actually pretty similar — they’re both objects that exists on their own and then get attached to campaigns. And, for both of them, it’s a pain to make sure they’re attached to all the campaigns you want.

And where there’s pain, there’s an opportunity for automation.

Last month, I shared a script to make sure shared lists were applied to all campaigns. But because extensions and lists are pretty similar in AdWords Scripts, the tech team at Brainlabs (my employer) has expanded the code so it can copy extensions as well!

As well as meaning you have coverage with all your extensions, it also means you’re always using the same extensions — you won’t accidentally get one campaign using a sitelink with the same text but a different URL. You’ll know that updating an extension updates it in all campaigns, because it’s definitely the same extension attached to all campaigns.

Like the shared list script, it won’t remove anything — so you can add extra specific extensions to some campaigns and they won’t be removed if you do another run later.

If you want to give it a go, copy the code below into a new AdWords Script in your account. Then change some of the options:

  • Filter the campaigns things will be applied to with the two arrays, campaignNameContains and campaignNameDoesNotContain. For example if campaignNameContains is [“Brand”, “Generic”] then only campaigns with names containing “brand” or “generic” are included. If campaignNameDoesNotContain is [“Display”, “Competitor”] then any campaigns with names containing “display” or “competitor” are ignored.
    • This is not case-sensitive.
    • Leave blank, [], to not exclude any campaigns.
    • If you need to put a double quote into campaignNameContains or campaignNameDoesNotContain, put a backslash before it.
  • If ignorePausedCampaigns is true, then the script will only look at currently active campaigns. Set this to false if you want to apply extensions and lists to currently paused campaigns.
  • campaignToCopy is the name of the template campaign, whose lists and extensions will be copied. This is case-sensitive.
    • The template campaign can be paused, but it can’t be removed.
  • extensionsAndLists is an array of which types of extension and list the Script will copy. The possible values are “sitelinks”, “callouts”, “reviews”, “mobileApps” (app extensions), “phoneNumbers” (call extensions), “excludedPlacementLists” and “negativeKeywordLists”.
  • labelName is the name of the label which will be applied to campaigns once they’ve had the extensions/lists added. This means you can see which campaigns have been covered. Campaigns that already have the label will be ignored: if the Script doesn’t cover them all in one run it can go again until it covers them all.

You may want to run the script more than once for different extensions and lists. For example, if your account is split by match type, you may want to run once for extensions (as you probably want the same extensions on Exact and Broad campaigns), but then a second run for negative keyword lists that ignores Exact campaigns (by adding to campaignNameDoesNotContain “-Exact” or “|EM” or whatever it is you use to denote a campaign is Exact).

Make sure you change the labelName, otherwise the second run won’t add lists to the campaigns you just added extensions to. And think about saving both versions of the settings in a text file so you can repeat this later after you’ve added more campaigns!

Notes:

  • This only works on Search, Display and Search with Display Select campaigns.
  • The script can’t tell the difference between Search, Display and Search with Display Select campaigns. You have to use the campaign names to make sure negative lists intended for Search don’t end up in Display campaigns.
  • The Script doesn’t do anything with ad group extensions or account extensions – only campaign level ones.
  • Scripts can only run for 30 minutes, which may not be enough if you’ve got lots of campaigns or lots of extensions. But if the script times out, you can just run it again – it will say in the logs when everything has been covered.


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

    Google search results spam for ‘Bill Slawski obituary’ shows the dark side of SEO

    New mobile Google ad experiment puts favicon in-line with display URL

    Google launches video health tools to help publisher monetization

    SEO pioneer and expert Bill Slawski passes away

    New Yelp feature: Request a Call

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 AdsPPCSEO

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.