SyntaxError: Unexpected identifier

212 views
Skip to first unread message

Hande Serin

unread,
Sep 19, 2022, 7:14:40 AM9/19/22
to Google Ads Scripts Forum
Hello,

Before I switched to the new experience, the script was running perfectly. It is a very short custom script. I shared the details below

Google Ads account ID: 417-918-0080
Script name: P - Irrelevant Keyword Applier
Version: New Script Experience
Error log: “SyntaxError: Unexpected identifier (line 17)”

Could you help me with how to alter this? 

Many thanks!

Google Ads Scripts Forum Advisor

unread,
Sep 20, 2022, 2:39:36 AM9/20/22
to adwords...@googlegroups.com

Hello,

I’m James from the Google Ads scripts support team. Thank you for contacting us.

I would like to inform you that enabling or toggling on the new script experience button within your script editor will not automatically convert or migrate your existing script. However, as we have mentioned in our blog post, you should manually move your scripts over to the new experience before then to ensure continued functionality.

I checked the given scripts and I observed that you haven’t migrated the code snippets of your scripts into the new script experience setup, which is the main reason why those scripts are not working properly on your end. As I mentioned above, you need to make some adjustments to your code snippet for it to work in the new script experience version. To migrate your script, you may follow our migration guide, specifically under the `Organizing selectors` section.

You may navigate to the following links below for additional references:

Regards, 

Google Logo
James Howell
Google Ads Scripts Team
 


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