finding 301 url on google adwords

183 views
Skip to first unread message

sinem....@zingat.com

unread,
Mar 8, 2018, 11:05:32 AM3/8/18
to AdWords Scripts Forum
Hi,
i want to finding redirect url's on google adwords ads. (status code 301) I'm using Link Checker Script. But this script is just find 404 urls. Is there such a script?

Thanks :)

Anthony Madrigal

unread,
Mar 8, 2018, 11:11:52 AM3/8/18
to AdWords Scripts Forum
Hi,

You can modify the following line in the Link Checker to return redirect URLs in the spreadsheet:
 UrlFetchApp.fetch(url, {muteHttpExceptions: true,followRedirects: false}).getResponseCode();

Cheers,
Anthony
AdWords Scripts Team

Tjarko Dijkstra

unread,
Aug 16, 2019, 5:20:19 AM8/16/19
to Google Ads Scripts Forum

Hi Anthony,

Thanks for the sollution for finding 301 redirects with the link checker script.  However, the script had some alterations since yout last post.  Does this still work in the new script and where should the line you propose be added?

Thanks in advance for your response!

Cheers Tjarko

Op donderdag 8 maart 2018 17:11:52 UTC+1 schreef Anthony Madrigal (Google Ads Scripts Team):

Google Ads Scripts Forum Advisor Prod

unread,
Aug 16, 2019, 6:57:38 AM8/16/19
to adwords...@googlegroups.com
Hi Tjarko,

Since this is an old thread already, please create a new post on this forum so that our team can better track your concern.

Regards,
Ejay
Google Ads Scripts Team

ref:_00D1U1174p._5001UEJI1C:ref
Reply all
Reply to author
Forward
0 new messages