Regex for KEYWORD_HAS_INVALID_CHARS error

45 views
Skip to first unread message

Christian Kolb

unread,
Jul 21, 2020, 7:05:38 AM7/21/20
to AdWords API and Google Ads API Forum
Hello!

Is it possible for the AdWords API Team to provide the Regular Expression that Google uses for validating if a keyword contains invalid chars (and thus would trigger the KEYWORD_HAS_INVALID_CHARS error)? That would be really helpful, for a couple of reasons: 

  1. The official documentation does not help in this regard because the statement "Invalid symbols: You'll see an error message if you add negative keywords that contain certain symbols. Some of the symbols that can't be used in your negative keywords are: , ! @ % ^ () = {} ; ~ ` <> ? \ |." ( as stated here https://support.google.com/google-ads/answer/2453972?hl=en) is too shallow.
  2. Trying out all Unicode ranges for having a definite list of all invalid characters would be possible, but is cumbersome. 
Since my post is not the first one referring to this topic (see here and here), I am optimistic that there is a need for this Regular Expression.

Google Ads API Forum Advisor Prod

unread,
Jul 21, 2020, 12:59:41 PM7/21/20
to christi...@smarter-ecommerce.com, adwor...@googlegroups.com
Hi Christian,

Thank you for reaching out. I have put in a request for this with my team so please keep an eye on our Developer Blog for information on future releases.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5004Q22XotK:ref

Ronald Findling

unread,
Oct 8, 2020, 8:00:49 AM10/8/20
to AdWords API and Google Ads API Forum
Dear Mitchell,

so how are we supposed to know if a keyword will be valid (from the character perspective)?

Best Regards,
Ronald Findling
Reply all
Reply to author
Forward
0 new messages