Link Check Error - Getting "Invalid argument:" as response code.

62 views
Skip to first unread message

Danieel Leite

unread,
Jun 28, 2019, 2:02:50 PM6/28/19
to Google Ads Scripts Forum
Hi.

I've been running the Link Checker - Manager Account script (https://developers.google.com/google-ads/scripts/docs/solutions/adsmanagerapp-link-checker) for a while and everything was going fine, but recently I started receiving some 'Invalid argument: https://my_url_here' as response code.

As far as I could track into the problem, I guess it is related to some tags/parameters used in the URL, but I didn't find an easy way to fix this issue and the other topics about it didn't give any insights.

Does any one here could provide some help?

Thanks,
Danieel Leite

Google Ads Scripts Forum Advisor Prod

unread,
Jun 28, 2019, 4:08:25 PM6/28/19
to adwords-scripts+apn2wqcnn24ypo1v...@googlegroups.com, adwords-scripts+apn2wqcnn24ypo1v...@googlegroups.co, adwords...@googlegroups.com
Hi Danielle,

Can you please provide your CID and script name so I may investigate the issue directly in your account?

Thanks,
Matt
Google Ads Scripts Team

ref:_00D1U1174p._5001UCa2fg:ref

Danieel Leite

unread,
Jun 28, 2019, 4:23:02 PM6/28/19
to Google Ads Scripts Forum
Hi, Matt.

I've sent the requested information in private, let me know if you need more info.

Thanks in advance.
Danieel Leite

Google Ads Scripts Forum Advisor Prod

unread,
Jul 1, 2019, 1:43:15 PM7/1/19
to adwords-scripts+apn2wqcnn24ypo1v...@googlegroups.com, adwords-scripts+apn2wqcnn24ypo1v...@googlegroups.co, adwords...@googlegroups.com
Hi Danielle,

The curly braces are likely the issue here. Within the function, requestUrl, can you please add the following line to the top of the function:

  url = encodeURI(url);

Please let me know if you continue have this issue after making this change.

Regards,

Danieel Leite

unread,
Jul 1, 2019, 4:45:00 PM7/1/19
to Google Ads Scripts Forum
Everything working fine now, just tested the script here and it's returning Response Code 200 for those URLs, as expected.

Thanks again.
Danieel Leite
Reply all
Reply to author
Forward
0 new messages