Check Destination URLs - User Guide

What does it do?

This enhanced script automatically checks the landing pages that ads and keywords lead to. It finds ads and keywords that lead to 404 error pages, and you can also setup the script to find pages that contain certain phrases like 'product not found' etc. It generates a report with URLs that lead to 404 error pages. 

How does it work?

Choose the account you want to run the script in and go to the All Enhanced Scripts page. The script lets you set basic and advanced settings. 

You can either create a new setting by selecting 'Create new setting' or 'Copy setting from an existing account'. To create a new setting, follow the steps below:

Basic Settings

Setting Name:
Enter the name you want to give the setting. The same script can have multiple settings for the same account. You can choose to pause and enable settings as you wish. 

For example, in one setting you can choose to only generate report and in another setting you can choose to pause ads and keywords that lead to 404 error pages.

Spreadsheet URL:
The script pastes the results in a Google Spreadsheet. If you want to paste the results in an existing spreadsheet, put in the address of the spreadsheet. The sharing settings for the spreadsheet should either be 'anyone with a link' or, it should be shared with the AdWords email address of the account the script is going to run in. If the sharing settings are not correct, the script will not be able to write the URLs it checks to the spreadsheet.

If you leave 'NEW' in the spreadsheet setting, the script will create a new spreadsheet in the Google Drive folder associated with your AdWords account email. A new spreadsheet will be created each time the script runs.

Email Addresses To Notify:
The script can send an automatic email after it finishes running. If you would like to send the notification email to multiple people, you can enter their emails in the 'Email Addresses To Notify' setting and they will be notified.

The script can check URLs at the keyword and ad level. You can choose to check only ad URLs, only keyword URLs or both. You can specify this in 'Scope'.

Campaign Name Includes:
You can choose to run this script for specific campaigns. These can be filtered by mentioning the word to filter on. For example, only check campaigns that have 'brand' in their name. This setting also helps get around the 30-minute time limit for large accounts.

Run In Preview Mode:
Selecting this option only generates a report of the URLs and doesn't pause ads and keywords. If this option is not selected, the script will pause ads and keywords that lead to 404 error pages.

Label for Bad Landing Pages:
To easily recognize the landing pages that the script identifies as bad landing pages, you can choose to label them in AdWords. This is an optional setting.

Disable Email Alert If No Error Found:
Selecting this option will only send you an email if the script finds error pages. It won't send you an email each time the script runs. This makes sure you only get an email when there is an action to take. 

Advanced Settings

Share Results Spreadsheet With These Google Accounts:
Enter additional email addresses you want to share the spreadsheet with. By default, the spreadsheet is shared with AdWords email address.

Text To Monitor:
Apart from finding 404 Error pages, this script can also check specific text on the page. The script can check for text like 'product not found' or 'out of stock'. 

Additional Settings:
By default, the script only checks URLs that have at least one impression, if you want to check all URLs even those that have zero impressions, select the relevant box. Keep in mind, this may cause the script to timeout if the account is very large. 

How to install and run the enhanced script?

After entering the details for the setting, click on 'Save settings'. This will give you an option to 'Download' the script which can then be installed in the AdWords account. For detailed steps on how to install a script in AdWords, read this article. This script can also be run at the MCC level. This article explains how to install and run enhanced scripts at the MCC level.

Recommendations and Tips

  1. Google AdWords has a 30-minute limit on scripts. If the account is very large, the script will time out without checking all the URLs. A workaround to this is to use the 'Campaign Includes' setting to create multiple settings for the same account. Each setting will run for certain campaigns.
  2. When you run the script the first time, run it in preview mode to see the results. If everything looks good, edit the setting in Optmyzr to not run in preview mode and automatically pause and resume ads/keywords.

Can’t find what you’re looking for?

Our award-winning customer care team is here for you.