Hi Gary, To get that behavior you'll need to use the IdeaTextMatchesSearchParameter:
http://code.google.com/apis/adwords/docs/reference/latest/TargetingIdeaService.IdeaTextMatchesSearchParameter.html Best, - Eric Koleda, AdWords API Team On Nov 2, 11:54 pm, Gozer <[email protected]> wrote: > I've looked everywhere... Is there a way to have the > TargetingIdeaService return results like the manual Keyword Tool does > when you check the "Only show ideas containing my search terms". I'm > already using EXACT in my criteria. My code is as follows.... > > $user = new AdWordsUser(); > > $user->LogDefaults(); > > $targetingIdeaService = $user->GetTargetingIdeaService('v201008'); > > $keyword = new Keyword(); > $keyword->text = $job['name']; > $keyword->matchType = 'EXACT'; > > $selector = new TargetingIdeaSelector(); > $selector->requestType = 'IDEAS'; > $selector->ideaType = 'KEYWORD'; > $selector->requestedAttributeTypes = > array('KEYWORD', 'GLOBAL_MONTHLY_SEARCHES'); > > $paging = new Paging(); > $paging->startIndex = 0; > $paging->numberResults = 100; > $selector->paging = $paging; > > $relatedToKeywordSearchParameter = new > RelatedToKeywordSearchParameter(); > $relatedToKeywordSearchParameter->keywords = array($keyword); > > $keywordMatchTypeSearchParameter = new > KeywordMatchTypeSearchParameter(); > $keywordMatchTypeSearchParameter->keywordMatchTypes = array('EXACT'); > > $selector->searchParameters = array($relatedToKeywordSearchParameter, > $keywordMatchTypeSearchParameter); > > $page = $targetingIdeaService->get($selector); > > Thanks, > Gary -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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
