How to add keyword in phrase match

15 views
Skip to first unread message

Nitin Patel

unread,
Mar 30, 2022, 3:00:43 AM3/30/22
to Google Ads API and AdWords API Forum
Hello Team,
I am not able to insert the phrase match keywords using google ads script it shows an error.
The code:
if(lst[i]['match'] == 'phrase')
    {
      var t = '\\"' + lst[i]['text'] + '\\"'
      Logger.log(t)
      adGroup.newKeywordBuilder()
          .withText(t)
          .build();
    }


The error:

Keywords cannot contain non-standard characters like: ! @ % , *

Google Ads API Forum Advisor

unread,
Mar 30, 2022, 9:01:13 PM3/30/22
to nitin...@pixis.ai, adwor...@googlegroups.com
Hi Nitin,

Thank you for posting your concern.

Please note that this public forum is dedicated to the Google Ads API and AdWords API related concerns. With this, our team can only provide support to the issues and concerns related to the said APIs as well.

Since your concern is about Google Ads scripts, you can instead post your concern here to get support from the more equipped team.

Let me know also if you have concerns with the said APIs.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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