Hi Jai. Please, read carefully info on http://code.google.com/intl/en/apis/adwords/docs/reference/latest/TargetingIdeaService.Language.html
I'll quote for you here: > >Represents a Language criterion. > >A criterion of this type can only be created using an ID. A criterion of this >type is only targetable. > So valid method from both is only second. And such action as you get is expected. Regards, Evgeniy. On 18 янв, 00:02, Jai <jai.ramachand...@mathworks.com> wrote: > Hello, > > When I tried to use LanguageSearchParameter as a selector > searchparameter for TargetingIdeaService (v201109) with the language > code I got an invalid_criterion_id error. However when I switched to > using ID, the searchparameter started working. Can someone help me > figure out the reason, please. Here are the two sets of php code > > //not working > $lang=array(); > $language = new language(); > $language->code = 'en'; > $lang[]=$language; > $LanguageSearchParameter = new LanguageSearchParameter(); > $LanguageSearchParameter->languages=$lang; > > //working > $lang=array(); > $language = new language(); > $language->id = '1000'; > $lang[]=$language; > $LanguageSearchParameter = new LanguageSearchParameter(); > $LanguageSearchParameter->languages=$lang; > > Thanks > Jai -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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