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

2014-11-10 Thread Ed-
Hi,

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

https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.Keyword

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,

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/b52c1c68-dab3-4b54-9822-3f629da78409%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2014-11-10 Thread Danial Klimkin
Hello Ed,


We don't have a complete list published. You can use ValidateOnly 
https://developers.google.com/adwords/api/docs/guides/working-with-objects#validating-mutates
 
setting header to test the keyword for validity before adding it.


-Danial, AdWords API Team.

On Monday, November 10, 2014 4:21:12 PM UTC+3, Ed- wrote:

 Hi,

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


 https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.Keyword

 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,



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups AdWords API Forum group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
AdWords API Forum group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/842f32fd-68bf-47bd-8e8c-e9c750b4575b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.