Use Scripts to Check for Landing Page Errors

By Ricky Solanki, September 30th 2015 in Scripts

Are AdWords scripts actually useful?

The answer to the above question is: yes! There is no end to the list of possibilities that you can use AdWords scripts for. You can write the scripts or you can use the ones freely available on the internet. You can use scripts for a one-time usage or for repeated usage. You can manually run them when you need them or you can schedule them for running at pre-determined time and frequency. You can manage almost any aspect of your campaign with the help of AdWords scripts.

This Landing Page 404 script stops your adverts going to dead pages

Screen Shot 2015-09-30 at 12.15.51

You would be surprised how often this happens. Your web site might have changed or been updated and you could easily have a old advert or site link extension going to a dead page.

You may have adverts running through the night and your site might not be accessible due to server issues. The script can pick this up and pause adverts to stop money being wasted

Here’s how to set this up:

The highlighted elements of the script need to be edited before adding this script. BrokenUrlChecker

  1. Set your  e-mail to be alerted of broken e-mails
  2. Set what response codes are okay. We are mainly looking for 404 pages in this script.
  3. Set true if you want the ads to be paused when the script finds broken urls.

Screen Shot 2015-09-30 at 11.30.25

Go to Bulk Operations to Upload

Under bulk operation there is a tab called scripts and you can name your script and copy the code with the changes and authorise and approve the script and run it. This needs a schedule added to it. we

It should look like:

Screen Shot 2015-09-30 at 12.08.56

Don’t forget the schedule. High spending volatile accounts are recommended at hourly while daily is ok for most other accounts.

Screen Shot 2015-09-30 at 12.13.26

You can download the script here.


Welcome to using scripts!

Ricky Solanki

Growth Director - Push

Ricky Solanki has worked on over 500+ adwords campaigns. He started working in paid search all the way back in in 2004 and has used that knowledge to build the Push Analyser. Push Analyser is a unique software tool used by his agency Push to deliver exceptional results for small to medium size businesses across the Globe.

More blog posts by Ricky Solanki



Ricky Solanki
November 27th 2015

There was an update in Adwords scripts. We have updated the file. Please download and try again.



December 02nd 2015

Hi again, I tried it out again and did not get any errors, but I do not get any e-mails however? I modified the script so it would tell me if there were any 301-redirects in the URLs in an account I knew had these kind of URLs.



November 25th 2015

Hi, I get an error when running the script: ReferenceError: "inputHeader" is not defined. (line 97) How can I solve this? Thank you!



January 24th 2017

Hi, I too get this inputHeader not defined error - was there any response to the above?