Hi, Rather than use one keyword with an array of text's, you should be using an array of keywords, each with it's own text and match type:
http://code.google.com/apis/adwords/docs/reference/latest/TargetingIdeaService.RelatedToKeywordSearchParameter.html Best, - Eric Koleda, AdWords API Team On Oct 5, 4:43 pm, kkt <[email protected]> wrote: > Hello, > > I am trying to work with the TargetingIdeaService using the python > library. I would like to design a selector that returns info for more > than one keyword. According to the documentation, this should not be a > problem. So I modify the code like this: > > 'searchParameters': [ > { > 'type': 'RelatedToKeywordSearchParameter', > 'keywords': [{ > 'text': ['cat', 'dog'], > 'matchType': 'EXACT' > }], > }, > > However, when I do this, I get back the error: > > adspygoogle.common.Errors.ValidationError: The '['cat', 'dog']' is of > type <type 'list'>, expecting one of (<type 'str'>, <type 'unicode'>) > > So is it really possible to use a list of keywords in the selector? > > Thanks! -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en
