KEYWORD_HAS_INVALID_CHARS - is there a regexp so we can validate keyword text before sending it to API ?

331 views
Skip to first unread message

Ed-

unread,
Nov 10, 2014, 8:21:12 AM11/10/14
to adwor...@googlegroups.com
Hi,

The documentation lists a regexp to validate keywords against, but it matches everything, including terms the API refuses.

Text of this keyword (at most 80 characters and ten words). This field can be selected using the value "KeywordText". This field can be filtered on. Keyword text must not contain NUL (code point 0x0) characters. This is checked by the regular expression '[^\x00]*'. 

Our application sent a keyword containing square symbol (²) and it got refused with error KEYWORD_HAS_INVALID_CHARS.

If no regexp is available, should we try to compile a list of invalid chars? A list of valid chars?

Thank you,

Danial Klimkin

unread,
Nov 10, 2014, 8:35:14 AM11/10/14
to adwor...@googlegroups.com
Hello Ed,


We don't have a complete list published. You can use ValidateOnly setting header to test the keyword for validity before adding it.


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages