Invalid argument: url (file Code.gs)

1,380 views
Skip to first unread message

Bart Rietjens

unread,
Nov 14, 2019, 4:58:21 AM11/14/19
to Google Ads Scripts Forum
Hi all,

I tried to create a Link Checker Script for my MCC Google Ads Account. As I tried to run the script I got this error: "Invalid argument: url (file Code.gs, line 1249". This is the part in the code:

Aantekening 2019-11-14 105455.jpg





What did I do wrong?

Thanks in advance for your help.

Bart

Google Ads Scripts Forum Advisor

unread,
Nov 14, 2019, 6:07:05 AM11/14/19
to adwords...@googlegroups.com
Hi Bart,

Thanks for posting your concern.

Please note that the validateAndGetSpreadsheet function in this solution script should not be modified and this is the reason why you encountered the said error. With this, please return back the default implementation of this function. The spreadsheet URL should only be set in line 56.

Let me know if you have further questions.

Regards,
Ejay
Google Ads Scripts Team

ref:_00D1U1174p._5001UJajwA:ref

Bart Rietjens

unread,
Nov 14, 2019, 6:57:43 AM11/14/19
to Google Ads Scripts Forum
Oh wow, stupid!

Thanks!!

Op donderdag 14 november 2019 12:07:05 UTC+1 schreef adsscriptsforumadvisor:
Reply all
Reply to author
Forward
0 new messages