Address unavailable error in AdWords Script

213 views
Skip to first unread message

Adam Zelmański

unread,
Jul 20, 2016, 4:46:11 PM7/20/16
to AdWords Scripts Forum
I got some scripts that check prices of products and save them to param1. Check is based on parsing url connected with ad. The problem is that sometimes (around 5% of executions) script stops because of:
Address unavailable: https://www.mysite.com/product.html, but when I type this address in browser page works perfectly fine. Sometimes when I got 3 different ads for one ad group with same url for first two ads parsing is ok but on third one there is error.
I use UrlFetchApp.fetch(finalUrl, {muteHttpExceptions:true}).getContentText();.

Anybody got solution for this problem?

AussieWeb Conversion

unread,
Jul 20, 2016, 9:39:09 PM7/20/16
to AdWords Scripts Forum
Hi Adam

It's not a solution, but I would strongly urge you to not check the url multiple times.
Store the urls you've already done, along with their prices, in an object (or array etc) and look them up from that instead.

Regards
Nigel

Jaren Callo (AdWords Scripts Team)

unread,
Jul 21, 2016, 1:33:09 AM7/21/16
to AdWords Scripts Forum
Hi Adam,

I suggest you try the suggestion provided by Nigel. There is a possibility that checking URL multiple times resulted to server issues hence you are getting Address Unavailable.

Thanks,
Jaren P. Callo
AdWords Scripts Team
Reply all
Reply to author
Forward
0 new messages