Hi, You are creating the RelatedToKeywordSearchParameter correctly, but you are never assigning it to the TargetingIdeaSelector. See line 80 in the following example:
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v200909/GetRelatedKeywords.php#80 Best, - Eric Koleda, AdWords API Team On Jul 19, 3:29 am, Khalid Wazir <khalid.shor...@gmail.com> wrote: > hi all, > > i m using this code to caluculate monthly keyword search volume.but > its shows me .INSUFFICIENT_SEARCH_PARAMETERS error, can anyone help me > in this regard,quick response will be highly appreciatable. > > thanks > > $path = dirname(__FILE__) . '/../../src'; > set_include_path(get_include_path() . PATH_SEPARATOR . $path); > > require_once 'Google/Api/Ads/AdWords/Lib/AdWordsUser.php'; > > try { > > // Get AdWordsUser from credentials in "../auth.ini" > // relative to the AdWordsUser.php file's directory. > $user = new AdWordsUser(); > > // Log SOAP XML request and response. > $user->LogDefaults(); > > // Get the TargetingIdeaService. > $targetingIdeaService = $user->GetTargetingIdeaService('v200909'); > > // Create seed keyword. > $keyword = new Keyword(); > $keyword->text = 'Cricket'; > $keyword->matchType = 'BROAD'; > > $keyword_array = array($keyword); > > $relatedToKeywordSearchParameter = new > RelatedToKeywordSearchParameter($keyword_array); > > $targetingIdeaSelector = new TargetingIdeaSelector(); > > $targetingIdeaSelector->ideaType = 'KEYWORD'; > > $targetingIdeaSelector->requestedAttributeTypes = > array('KEYWORD','TARGETED_MONTHLY_SEARCHES'); > > $targetingIdeaSelector->paging = new Paging(0,12); > > $page = $targetingIdeaService->get($targetingIdeaSelector); > > var_dump($page); > } catch (Exception $e) > { > print_r($e); > } -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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