I have spent hours of trial & error and searching the net/
documentation to try and get the monthly search volume for a specific
keyword/search term.  I have been very unsuccessful...  I can't seem
to find any sample code for this for the v2009 API. Below is some
general code I have been trying to use... Any thoughts or examples to
point me in the right direction would be greatly appreciated.  Thanks!

$user = new AdWordsUser();
$keywordService = $user->GetTargetingIdeaService();

$keyword = new Keyword();
$keyword->text = 'milk';
$keyword->matchType = 'EXACT';
$keyword_array = array($keyword);

$relatedToKeywordSearchParameter = new RelatedToKeywordSearchParameter
($keyword_array);

$targetingIdeaSelector = new TargetingIdeaSelector();
$targetingIdeaSelector->searchParameters = array(
        $relatedToKeywordSearchParameter
    );

$targetingIdeaSelector->ideaType = 'KEYWORD';
$targetingIdeaSelector->requestType = 'IDEAS';
$targetingIdeaSelector->paging = new Paging(0,800);


$keywordPage = $keywordService->get($targetingIdeaSelector);

//the following displays nothing about the search volume
var_dump($keywordPage);

--

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-...@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=.


Reply via email to