Hi, The documentation indicates that for KEYWORD requests (ideaType), this field isn't supported: https://developers.google.com/adwords/api/docs/reference/latest/TargetingIdeaService.RelatedToUrlSearchParameter#includeSubUrls
- Kevin Winter AdWords API Team On Friday, June 22, 2012 8:02:25 AM UTC-4, Josh wrote: > > Hi, > > it looks as if the includeSubUrls parameter is not correctly supported as > I keep getting this error : > > [TargetingIdeaError.INVALID_SEARCH_PARAMETERS @ > selector.selector.searchParameters[2].includeSubUrls] > > My code is really straightforward : > > $targetingIdeaService = $user->GetTargetingIdeaService('v201109'); > // Create selector. > $selector = new TargetingIdeaSelector(); > $selector->requestType = 'IDEAS'; > $selector->ideaType = 'KEYWORD'; > $selector->requestedAttributeTypes = > array('CRITERION', 'AVERAGE_TARGETED_MONTHLY_SEARCHES', > 'COMPETITION', 'NGRAM_GROUP'); > > // Set selector paging (required for targeting idea service). > $paging = new Paging(); > $paging->startIndex = 0; > > $paging->numberResults = 50; > > $search = new RelatedToUrlSearchParameter(); > $search->urls = 'www.foo.com'; > $search->includeSubUrls = true; > > -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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