Link Checker script - not working properly

519 views
Skip to first unread message

C Cruise

unread,
Aug 19, 2015, 10:19:12 AM8/19/15
to AdWords Scripts Forum
Hi everyone.

I don't think Google's script (Link Checker for individual account) is working for me...Good and bad urls are not showing in the Google sheet dashboard. And the status is not "all done for today" but "checking links"...Also, I want these to run on enabled campaigns only. Can somebody help me with this? And I'd like to see the status of the campaigns eg. 301 not just 404 or 200. Link Checker doesn't show 301, 302, etc. 

Thank you in advance!

Tyler Sidell (AdWords Scripts Team)

unread,
Aug 19, 2015, 10:44:03 AM8/19/15
to AdWords Scripts Forum
Hi,

The Link Checker script was recently modified.  Can you update your script and see if you are still experiencing the same issues?  If not, can you provide me with your CID (reply privately to the author) and the name of your script so that I can take a further look? 

Thanks,
Tyler Sidell
AdWords Scripts Team

Svetlana Stefanicki

unread,
Sep 24, 2015, 3:49:54 AM9/24/15
to AdWords Scripts Forum
Hi there,
I'm having the same problem, the script seems to be running, but the datasheet shows the same massage "Checking Links..." without producing any output.
The rest seems to be working fine. I used an updated script from Google developers centre https://developers.google.com/adwords/scripts/docs/solutions/link-checker. Could you please assist me with pointing to a right direction?
Thanks a lot
Svetlana

Tyler Sidell (AdWords Scripts Team)

unread,
Sep 24, 2015, 11:44:34 AM9/24/15
to AdWords Scripts Forum
Hi Svetlana,

This is expected behavior and I am experiencing this issue using the sample code that is provided.  I will speak to the rest of the team to see if we can get the documentation updated.

Thanks,
Tyler Sidell
AdWords Scripts Team

Anash Oommen

unread,
Oct 15, 2015, 11:32:52 AM10/15/15
to AdWords Scripts Forum
Hi Svetlana,

Apologies for the delay. Seems this functionality somehow got removed from the latest link checker version. Let me see if I can publish a version that restores this functionality. I'll keep you updated.

Cheers,
Anash P. Oommen,
AdWords Scripts Team.

micah.pe...@monkeyislandinc.com

unread,
Oct 15, 2015, 1:01:27 PM10/15/15
to AdWords Scripts Forum
That would be awesome, thanks!

micah.pe...@monkeyislandinc.com

unread,
Oct 15, 2015, 1:09:49 PM10/15/15
to AdWords Scripts Forum
Also, is there a way to add more than one email to have the report sent to?

AussieWeb Conversion

unread,
Oct 15, 2015, 9:35:16 PM10/15/15
to AdWords Scripts Forum
Hi Anash

Would you like to post my code in the docs as an alternate?  Feel free to modify it so that it'll email a report.  :-)
NB  It checks Final Urls - not the now deprecated Destination Urls - so non-upgraded accounts/links will cause an error.

Regards
Nigel

MCC-Url-Checker.txt

Anash Oommen

unread,
Oct 16, 2015, 7:53:28 AM10/16/15
to AdWords Scripts Forum
Hi,

You could use a comma separated string for the email address. Even though the solution says one email, MailApp.sendEmail takes a comma separated string as argument for sending email to multiple users.

Cheers,
Anash

Anash Oommen

unread,
Oct 16, 2015, 7:58:56 AM10/16/15
to AdWords Scripts Forum
Hi Nigel,

Looks like it's a modified(?) version of the script from Russ Savage, so my suggestion would be to:

- Check with Russ and confirm if he's okay with sharing the script
- Post a new thread to the forum and tag it with "Use my Script"

I'll check with the rest of the team to see if they are okay with pinning the script on the forum for a while. We haven't done this before, so no guarantees.

Cheers,
Anash  

micah.pe...@monkeyislandinc.com

unread,
Oct 29, 2015, 3:37:26 PM10/29/15
to AdWords Scripts Forum
I get an error that says to enter a valid email address. Do the emails have to remain hyperlinked in order to work? Any other solutions?

Thanks,
Micah

Anash Oommen

unread,
Oct 30, 2015, 3:35:35 PM10/30/15
to AdWords Scripts Forum
Hi,

The spreadsheet has a data validation on cell C6. You need to remove that validation to provide a comma separated list of email addresses.

Cheers,
Anash P. Oommen,
AdWords Scripts Team.

Websaus BVBA

unread,
Feb 19, 2016, 10:41:05 AM2/19/16
to AdWords Scripts Forum
Hi Tyler

I implemented the Link Checker Script for a single account following the steps on the site of Google Developers. While running an example of the script I got the following error message: 
Using spreadsheet - https://docs.google.com/spreadsheets/d/1epazl6ySobgpX2BNkNL4QKZ1jBJz0PRZz-If4yey1w4/edit#gid=0.
Document 1epazl6ySobgpX2BNkNL4QKZ1jBJz0PRZz-If4yey1w4 is missing (perhaps it was deleted?) (line 305)

I filled in the CID in the spreadsheet and followed all the steps. Could the URL be filled in incorrectly ?

Thanks,

Pieter

Tyler Sidell (AdWords Scripts Team)

unread,
Feb 19, 2016, 10:49:23 AM2/19/16
to AdWords Scripts Forum
Hi Pieter,

Can you please confirm that you can access the spreadsheet from the account that you are running the script?  

Thanks,
Tyler Sidell
AdWords Scripts Team

Websaus BVBA

unread,
Feb 24, 2016, 9:54:11 AM2/24/16
to AdWords Scripts Forum
Hi Tyler

I've checked it and I'm able to access the spreadsheet. I'll send you my code of the script via a PM.

Pieter

Websaus BVBA

unread,
Feb 24, 2016, 10:05:27 AM2/24/16
to AdWords Scripts Forum
Hi

Looks like the problem has gone. I guess there was a problem with the authorization of the script.
I authorized it once again and let it run. Now I got the script working well and putting data into the spreadsheet.

Kind regards,

Pieter

Mustafa

unread,
Feb 24, 2016, 10:41:46 AM2/24/16
to AdWords Scripts Forum
Hello Anash/ Tyler,
I implemented the link checker in our Account by following the instructions. Everything is working so far and I get an
Output of how many links are bad and good. 

But the problem is that some bad URL's are not (as reported) forwarding to another URL with a 301.
The links in that case are okay (Response code: 200).

can you help us with that?

Thank you
Message has been deleted

Tyler Sidell (AdWords Scripts Team)

unread,
Feb 24, 2016, 10:49:45 AM2/24/16
to AdWords Scripts Forum
@Pieter,  glad to hear that the script is working properly now.

@Mustafa, please send us your CID (reply privately to the author) with the name of the script and as much detail as possible.

Thanks,
Tyler Sidell
AdWords Scripts Team

Websaus BVBA

unread,
Feb 25, 2016, 10:08:12 AM2/25/16
to AdWords Scripts Forum
Hi Tyler

Indeed. Another question on the script: is it possible to make the script show only 404 errors and other critical errors in the spreadsheet ?
At the moment also 200 status codes are shown. I tried to put a filter in the spreadsheet but I can't.

Kind regards,

Pieter

Websaus BVBA

unread,
Feb 29, 2016, 4:58:48 AM2/29/16
to AdWords Scripts Forum
Hi Tyler

Indeed. Another question on the script: is it possible to make the script show only 404 errors and other critical errors in the spreadsheet ?
At the moment also 200 status codes are shown. I tried to put a filter in the spreadsheet but I can't.

Kind regards,

Pieter

On Wednesday, February 24, 2016 at 4:49:45 PM UTC+1, Tyler Sidell (AdWords Scripts Team) wrote:

Tyler Sidell (AdWords Scripts Team)

unread,
Feb 29, 2016, 10:01:54 AM2/29/16
to AdWords Scripts Forum
Hi Pieter,

You could make a change to the if statement that compares the response code. For instance you could change the following line

if (responseCode < 300) {
shelper
.writeRow(lastUrl, responseCode);
}

To:
if (responseCode > 300) {
shelper
.writeRow(lastUrl, responseCode);
}

Thanks, 
Tyler Sidell
AdWords Scripts Team

Websaus BVBA

unread,
Mar 3, 2016, 2:57:10 AM3/3/16
to AdWords Scripts Forum
Thanks Tyler!

I'll test it today.

Pieter

Shobu Filho

unread,
Sep 2, 2016, 3:08:19 PM9/2/16
to AdWords Scripts Forum
Hey Tyler,

We're running this script in one of our accounts but it's not reporting 301 or 302 response codes. Should it?

Tyler Sidell (AdWords Scripts Team)

unread,
Sep 2, 2016, 5:05:39 PM9/2/16
to AdWords Scripts Forum
Hi Shobu,

Would you mind opening a new thread for better tracking purposes?

Thanks,
Tyler Sidell
AdWords Scripts Team

Arun Jha

unread,
Sep 6, 2016, 3:02:13 AM9/6/16
to AdWords Scripts Forum
I am also facing the same issue for Link Checker scripts at mcc lebel.

Tyler Sidell (AdWords Scripts Team)

unread,
Sep 6, 2016, 9:34:23 AM9/6/16
to AdWords Scripts Forum
Hi Arun,

Would you mind opening another thread explaining your issue?  This helps us to better track the issues that you may be facing.

Thanks,
Tyler Sidell
AdWords Scripts Team

Reply all
Reply to author
Forward
0 new messages