AdWords
2.2K members online now
2.2K members online now
Dive into advanced features like Remarketing, Flexible Bid Strategies, AdWords Editor, and AdWords Scripts
Guide Me
star_border
Reply

API returns me 0 results for keyword 'sport' (with Italian parameters)

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

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
      }
 
    ],
    Smiley Tongueaging => {
      :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[Smiley Tongueaging][: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 GoogleAdwords GUI  I have as result 201.000 searches (avg. monthly searches).
What could cause this difference in results?
 
Many thanks,
Biagio
1 Expert replyverified_user

Re: API returns me 0 results for keyword 'sport' (with Italian paramet

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭
 
My request SOAP log for keyword 'sport' (that doesn't work):
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="https://adwords.google.com/api/adwords/o/v201509" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201509"><env:Header><wsdl:RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/v201509"><userAgent>demo-tool (AwApi-Ruby/0.18.0, Common-Ruby/0.11.1, GoogleAdsSavon/1.0.1, ruby/2.1.5, HTTPI/2.4.1, httpclient)</userAgent><developerToken>XXXXXXXXXXXX</developerToken><clientCustomerId>976-259-0087</clientCustomerId></wsdl:RequestHeader></env:Header><env:Body><get xmlns="https://adwords.google.com/api/adwords/o/v201509"><selector><searchParameters xsi:type="RelatedToQuerySearchParameter"><queries>sport</queries></searchParameters><searchParameters xsi:type="NetworkSearchParameter"><networkSetting><ns0:targetGoogleSearch>true</ns0:targetGoogleSearch><ns0:targetSearchNetwork>false</ns0:targetSearchNetwork><ns0:targetContentNetwork>false</ns0:targetContentNetwork><ns0:targetPartnerSearchNetwork>false</ns0:targetPartnerSearchNetwork></networkSetting></searchParameters><searchParameters xsi:type="LanguageSearchParameter"><languages><ns0:id>1004</ns0:id></languages></searchParameters><searchParameters xsi:type="LocationSearchParameter"><locations><ns0:id>2380</ns0:id></locations></searchParameters><ideaType>KEYWORD</ideaType><requestType>STATS</requestType><requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes><requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes><requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes><paging><ns0:startIndex>0</ns0:startIndex><ns0:numberResults>500</ns0:numberResults></paging><localeCode>it_IT</localeCode><currencyCode>EUR</currencyCode></selector></get></env:Body></env:Envelope>
 
SOAP response for keyword 'sport':
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201509" xmlns="https://adwords.google.com/api/adwords/o/v201509"><ns2:requestId>00052a26de24b6280a561f8f6806bbe8</n...Smiley SurprisedSmiley Surprised xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201509" xmlns="https://adwords.google.com/api/adwords/o/v201509"><rval><totalNumEntries>0</totalNumEntries></rval><...

Re: API returns me 0 results for keyword 'sport' (with Italian paramet

Top Contributor
# 3
Top Contributor

Hi @Biagio G you'll probably get a better response to this question over in the API forum:

 

https://groups.google.com/forum/#!forum/adwords-api

 

Not only are there a lot more API experts there, but you'll possibly get a reply from a Google eng.


Jon

AdWords Top Contributor Google+ Profile | Partner Profile | AdWords Audits