Hello, To return JUST the information of the keyword that you pass in, you can still use the TargetingIdeaService <https://developers.google.com/adwords/api/docs/reference/v201502/TargetingIdeaService>. In the TargetingIdeaSelector <https://developers.google.com/adwords/api/docs/reference/v201502/TargetingIdeaService.TargetingIdeaSelector>, set:
- requestType => *STATS* - ideaType => *KEYWORD* - requestAttributeTypes => a list of attributes e.g. *KEYWORD_TEXT, CATEGORY_PRODUCTS_AND_SERVICES* - SearchParameters => RelatedToQuerySearchParameter <https://developers.google.com/adwords/api/docs/reference/v201502/TargetingIdeaService.RelatedToQuerySearchParameter> with your list of keywords Cheers, Nadine, AdWords API Team On Monday, May 11, 2015 at 12:57:30 PM UTC-4, veselin.pesov...@gmail.com wrote: > > Hi guys. > > I have a script that using the Adwords API returns keyword ideas for given > keyword. Earlier in the Google Keyword Planner console there was a option > to filter the keywords by match type: Broad, Phrase, Exact. Now it seems it > is replaced with this option: 'Only show ideas closely related to my > search terms'. Although it don't return the same keywords as 'Exact' option > used to do, it is much better then the default option. > > My question is, how do I do this in code? How do I enable this option in > Keyword Planner API? I tried using ExcludedKeywordSearchParameter, and > excluding the keywords with 'Broad' and 'Phrase' Match types, but the > results still differ. > > Here is a portion of my code: > $excludeSearchParameter = new ExcludedKeywordSearchParameter(); > $kwrd = new Keyword(); > $kwrd->text = $keyword; > $kwrd->matchType = 'BROAD'; > $kwrd1 = new Keyword(); > $kwrd1->text = $keyword; > $kwrd1->matchType = 'PHRASE'; > $excludeSearchParameter->keywords = array($kwrd, $kwrd1); > > ... > > $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); > $relatedToQuerySearchParameter->queries = array($keyword); > > $selector->searchParameters[] = $relatedToQuerySearchParameter; > $selector->searchParameters[] = $excludeSearchParameter; > ... > > Any help would be appreciated. > Thanks. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/cd9e0440-e532-4db5-8fc9-969f94ce03e0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.