• Search Engine Land
  • Sections
    • SEO
    • SEM
    • Local
    • Retail
    • Google
    • Bing
    • Social
    • Resources
    • More
    • Home
  • Follow Us
    • Follow
  • Search Engine Land
  • SEO
  • SEM
  • Local
  • Retail
  • Google
  • Bing
  • Social
  • Resources
  • Live
  • More
  • Events
    • Follow
  • SUBSCRIBE

Search Engine Land

Search Engine Land
  • SEO
  • SEM
  • Local
  • Retail
  • Google
  • Bing
  • Social
  • Resources
  • More
  • Newsletters
  • Home
SEM

Are your ads pointing to the right domain? Here’s a script to find out.

KA-POW! Contributor Daniel Gilbert has a 'super' helpful script that will make you look like a PPC superhero by verifying your ads are linking to the right domain.

Daniel Gilbert on April 16, 2018 at 9:43 am
  • More

Standards are high for PPC superheroes, and even the best of us can make a mistake.

Luckily, there’s a perfectly easy way to deal with human error: automation!

I’d like to share a script that will help you stay on top of the domains being used in your ads, by verifying the ads are linking to the correct website.

Start with a site visit

For most AdWords campaigns, the user’s journey to conversion starts with a site visit. Making sure users end up on the right page after clicking on an ad may seem obvious, but as careful as we might be, sometimes a rogue uniform resource locator (URL) slips through the cracks.  This script checks if you’re inadvertently sending your potential customers to the wrong website entirely.

After setting up your accounts and campaigns, run the script with the desired domain in your AdWords account, and it will scan through your keywords and URLs to list which ones have final URLs that don’t use that domain. This could come in handy in lots of situations.

If you have different sub-domains or top-level domains for different countries or different parts of your business, this will point out that the wrong URL has sneaked in there somewhere.

For example: yourdomain.com instead of yourdomian.co.uk.

Check for old URLs

Another circumstance where I recommend using the script is after migrating to a new website. It is important to make sure the old URLs have been replaced or removed from your ads.

Have you changed your brand name? The script can also be effective if your brand name has undergone a change and you need a new domain name.

You definitely don’t want the old domain appearing in your ad; that doesn’t help you establish your new name. You also don’t want to accidentally send people to your old website instead of the new one.

Even if you have set up your redirects correctly, they will slow the page loading speed, which isn’t optimal.

According to an April 2017 report from The State of Online Retail Performance, conversions can fall by up to 20 percent for every second delay in mobile site load time in the retail sector.

This script will help you confirm whether you’ve got everything running as smoothly and speedily as possible.

Lastly, I want to mention the script is great for monitoring Google Ad Grant accounts, in which all ads are required to point to an approved domain. Avoiding mistakes is a must here.

Getting started

To use this script, make a blank Google spreadsheet for the report and note down its URL. On your AdWords interface, go to Bulk Actions, choose Scripts, then make a new one and paste in the script. Don’t forget to edit the options listed below.

Script outline

  • domainName is the domain you expect to be in all your keyword and ad URLs.
  • isWholeDomainName should be set to true if the domainName is everything between the https:// and the next /.
  • Set it to false if domainName is the top-level domain, and you don’t mind what subdomains your ads point to.
  • targetSheetUrl is the URL of your blank Google Doc spreadsheet, which the results will be written into.
  • campaignNameContains and campaignNameDoesNotContain filter which campaigns the script gets data from. 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 include all campaigns.
    • If you need to put a double quote into campaignNameContains or campaignNameDoesNotContain, put a backslash before it.
    • ignorePausedCampaigns should be set to true if you only want to look at currently active campaigns, or false if you want to include them.

If you’re having trouble with the script timing out, try running the script multiple times using campaignNameContains and campaignNameDoesNotContain to look at different campaigns for each run.

And there you have it. Hopefully, your domains are all set up right, but it never hurts to be extra careful at every step, especially when a convenient script can take care of the work for you.


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



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

Channel: SEMGoogle AdsGoogle: Ads ScriptsPaid Search Column

We're listening.

Have something to say about this article? Share it with us on Facebook, Twitter or our LinkedIn Group.

Get the daily newsletter search marketers rely on.
See terms.

ATTEND OUR EVENTS

Lorem ipsum doler this is promo text about SMX events.

February 23, 2021: SMX Report

April 13, 2021: SMX Create

May 18-19, 2021: SMX London

June 8-9, 2021: SMX Paris

June 15-16, 2021: SMX Advanced

August 17, 2021: SMX Convert

November 9-10, 2021: SMX Next

October 2021: SMX Advanced Europe

December 17, 2021: SMX Code

Available On-Demand: SMX

×


Learn More About Our SMX Events

Discover actionable tactics that can help you overcome crucial marketing challenges. Our next conference will be held:

MarTech 2021: March 16-17

MarTech 2021: Sept. 14-15

MarTech 2020: Watch On-Demand

×

Attend MarTech - Click Here


Learn More About Our MarTech Events

White Papers

  • Digital Marketing Report Q4 2020: Benchmarks and Insights for 2021
  • Data SEO – The Next Big Adventure
  • Getting Started with Email Marketing Automation
  • The State of Local Marketing Report 2020-2021
  • Quality CRM Data: The Key to Delivering Great Customer Experiences
See More Whitepapers

Webinars

  • How to Avoid the Digital Transformation Trap
  • How to Build a Marketing System of Record
  • Meet BIMI: The brand-boosting email security marketers must have for 2021
See More Webinars

Research Reports

  • Local Marketing Solutions for Multi-Location Businesses
  • Enterprise Digital Asset Management Platforms
  • Identity Resolution Platforms
  • Customer Data Platforms
  • B2B Marketing Automation Platforms
  • Call Analytics Platforms
See More Research

h
Receive daily search news and analysis.
Search Engine Land
Download the Search Engine Land App on iTunes Download the Search Engine Land App on Google Play

Channels

  • SEO
  • SEM
  • Local
  • Retail
  • Google
  • Bing
  • Social

Our Events

  • SMX
  • MarTech

Resources

  • White Papers
  • Research
  • Webinars
  • Search Marketing Expo
  • MarTech Conference

About

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

Follow Us

  • Facebook
  • Twitter
  • LinkedIn
  • Newsletters
  • Instagram
  • RSS
  • Youtube
  • iOS App
  • Google Play

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

Your privacy means the world to us. We share your personal information only when you give us explicit permission to do so, and confirm we have your permission each time. Learn more by viewing our privacy policy.Ok