Version of JavaScript (JS) Ads Scripts IDE is based on

70 views
Skip to first unread message

KGuiste1

unread,
Jan 29, 2021, 4:26:27 AM1/29/21
to Google Ads Scripts Forum
Hi,

I'm trying to use some vanilla JS methods e.g. sting methods but it returns a TypeError: Cannot find function includes in (string) object.

Apps Script IDE is so much more advanced than Ads Script.

It makes me wonder what version JS is Ads Scripts being run on that it doesn't include some basic JS methods...

Regards
Kurvin

KGuiste1

unread,
Jan 29, 2021, 4:44:57 AM1/29/21
to Google Ads Scripts Forum
Must be older than ES6 because .includes() was added to ES6.
Even the for of loop is not available in Ads Script : (...

So Sad.

When can an update be expected?

Google Ads Scripts Forum Advisor

unread,
Jan 29, 2021, 5:17:16 AM1/29/21
to adwords...@googlegroups.com

Hi Kervin,

 

Thanks for reaching out. I would like to inform you that as of now, not all JavaScript functions and methods are supported in the Google Ads Scripts which also has a different environment from the Google App Script. On the other hand, an ES6 syntax support request has already been raised in the past, but there hasn't been any updates since so allow me to make a follow up in this regard.

 

Please also be informed that all feature requests are subject for discussion and are not guaranteed to be supported anytime soon via Google Ads Scripts. Let me know if you have questions or concerns.

 

Thanks,

Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2Bc0hH:ref

Luuk

unread,
Jun 10, 2021, 6:06:03 PM6/10/21
to Google Ads Scripts Forum
Hi,

Do you have any updates in this? People have been asking for this such a long time and it still hasn't been fixed. It would be great if we could use polyfills, sometimes they don't even work because the lines calling the polyfills still give an error while trying to save the script.

Op vrijdag 29 januari 2021 om 11:17:16 UTC+1 schreef adsscriptsforumadvisor:

Google Ads Scripts Forum

unread,
Jun 23, 2021, 5:48:21 AM6/23/21
to Google Ads Scripts Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-scripts/c/fGF9rTFFUjM/m/ChbhlxYSAAAJ) from the forum as it wasn't routed to our support queue.

Cheers,
Teejay Pimentel
Google Ads Scripts Team

Google Ads Scripts Forum Advisor

unread,
Jun 23, 2021, 11:44:12 PM6/23/21
to adwords...@googlegroups.com
Hello Luuk,

Thanks for following up on here. I do understand the need of ES6 syntax when we code JavaScript or Google Ads Scripts. However, this has been filed as a feature request rather than an issue or is queued for a fix as the reason behind the error is merely because not all JavaScript functions are supported as of the moment. On the other hand, allow me to bump on the request for you.

Hope you understand.

Google Ads Scripts Forum Advisor

unread,
Jun 23, 2021, 11:46:23 PM6/23/21
to adwords...@googlegroups.com
Hi,

In addition, feature requests have no guarantee to be supported in the Google Ads Scripts anytime soon. Kindly follow our blog for updates and new releases in the meantime.
Reply all
Reply to author
Forward
0 new messages