I’m trying to modify the GetKeywordIdeas.php -example to show monthly 
search volumes for given keyword (I’m not looking for the keyword ideas, 
just the search volume for one keyword).

Should I be using the SearchVolumeSearchParameter() that is mentioned under 
SearchParameter[] ? 
https://developers.google.com/adwords/api/docs/reference/v201309/TargetingIdeaService.TargetingIdeaSelector?hl=en

Can someone take a look at my code and tell if the changes that I made are 
correct (or is there a working example for search volume requests)?
+ What value should I use with “operation”  ?


$targetingIdeaService = $user->GetService('TargetingIdeaService', 
ADWORDS_VERSION);
$keyword = 'mars cruise';

$selector = new TargetingIdeaSelector();
$selector->requestType = 'STATS';
$selector->ideaType = 'KEYWORD';
$selector->requestedAttributeTypes = array('SEARCH_VOLUME');

$languageParameter = new LanguageSearchParameter();
$english = new Language();  
$english->id = 1000;
$languageParameter->languages = array($english);

$SearchVolumeSearchParameter = new SearchVolumeSearchParameter();
$SearchVolumeSearchParameter->operation = ''; //  ??? WHAT SHOULD I PUT 
HERE ??? 
$selector->searchParameters[] = $SearchVolumeSearchParameter;
$selector->searchParameters[] = $languageParameter;

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

Reply via email to