Hi all,
I'm trying to use the AdWordsAPI for getting keyword idea search volume
(using TargetingIdeaService).
I can successfully get results for most keaywords but if I submit query for
keyword '*sport*' (or 'domino' or 'hello kitty') I have *0 results*.
Code example (in Ruby language):
*API_VERSION = :v201509*
*PAGE_SIZE = 500*
*keyword_text = 'sport'*
*adwords = AdwordsApi::Api.new*
*targeting_idea_srv = adwords.service(:TargetingIdeaService, API_VERSION)*
*selector = {*
* :idea_type => 'KEYWORD',*
* :request_type => 'STATS',*
* :requested_attribute_types =>*
* ['KEYWORD_TEXT', 'SEARCH_VOLUME', 'TARGETED_MONTHLY_SEARCHES'],*
* :locale_code => 'it_IT',*
* :currency_code => 'EUR',*
* :search_parameters => [*
* {*
* :xsi_type => 'RelatedToQuerySearchParameter',*
* :queries => [keyword_text]*
* },*
* {*
* :xsi_type => 'LanguageSearchParameter',*
* :languages => [{:id => 1004}] # Italian*
* },*
* {*
* :xsi_type => 'NetworkSearchParameter',*
* :network_setting => {:target_google_search => true,
:target_search_network => **false**, :target_content_network => false,
:target_partner_search_network => **false**}*
* },*
* {*
* :xsi_type => 'LocationSearchParameter',*
* :locations => [{:id => 2380}] # Italy*
* }*
* ],*
* :paging => {*
* :start_index => 0,*
* :number_results => 1000*
* }*
*}*
*# Define initial values.*
*offset = 0*
*results = []*
*begin*
* # Perform request.*
* page = targeting_idea_srv.get(selector)*
* results += page[:entries] if page and page[:entries]*
* # Prepare next page request.*
* offset += PAGE_SIZE*
* selector[:paging][:start_index] = offset*
*end while offset < page[:total_num_entries]*
*if results.any?*
* data = results[0][:data]*
* res = data['SEARCH_VOLUME'][:value]*
*else*
* res = -1 # No results*
*end*
However if I try to perform the same search using the web interface from
mine Adword account panel I have as result 201.000 searches (avg. montly
searches).
What could cause this difference in results?
Many thanks,
Biagio
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/b2968a51-4035-4c1d-bc02-7d108532a496%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.