Hi, look at the screenshot i want to get keywords ideas related to my search query how can i implement this using adwords api php. currently i'm using targeting idea service but don't know how to achieve this
my sample code is : $keyword = $search_params['keyword']; // Create selector. $selector = new TargetingIdeaSelector(); $selector->requestType = 'IDEAS'; $selector->ideaType = 'KEYWORD'; $selector->requestedAttributeTypes = array('KEYWORD_TEXT', 'SEARCH_VOLUME' ,'AVERAGE_CPC','COMPETITION'); //'TARGETED_MONTHLY_SEARCHES' $languageParameter = new LanguageSearchParameter(); $english = new Language(); $english->id = $search_params['language']; $languageParameter->languages = array($english); $locationParameter = new LocationSearchParameter(); $location = new Location(); $location->id = $search_params['country']; $locationParameter->locations = array($location); $relatedToQuerySearchParameter = new RelatedToQuerySearchParameter(); $relatedToQuerySearchParameter->queries = array($keyword); $selector->searchParameters[] = $relatedToQuerySearchParameter; $selector->searchParameters[] = $languageParameter; $selector->searchParameters[] = $locationParameter; $paging = new Paging(); $paging->startIndex = 0; $paging->numberResults = 50; $selector->paging = $paging; // Make the get request. $page = $targetingIdeaService->get($selector); <https://lh4.googleusercontent.com/-hZbGv1tJEw4/UooCa_z6srI/AAAAAAAAAAk/LpIG4hTzoYw/s1600/sample-keyword.png> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://googleadsdeveloper.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 --- 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. For more options, visit https://groups.google.com/groups/opt_out.