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

124 views
Skip to first unread message

Biagio Grimaldi

unread,
Jan 19, 2016, 8:59:04 AM1/19/16
to AdWords API Forum
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

Yin Niu

unread,
Jan 19, 2016, 12:49:43 PM1/19/16
to AdWords API Forum
Hi Biagio, 

Could you please send the SOAP log for the requests that you got 0 results? Please also include your ClientCustomerID. Please click Reply privately to author in the forum when responding.

Thanks,
Yin, AdWords API Team. 

Sergio Montagna

unread,
Jan 22, 2016, 9:03:41 AM1/22/16
to AdWords API Forum
Hi,
I have the same problem.. 
Thanks in advance for reply 

Biagio Grimaldi

unread,
Jan 25, 2016, 6:34:42 AM1/25/16
to AdWords API Forum
Hi Yin,
I sent you a private reply on 20/01 with SOAP log and ClientCustomerID as you need but I don't receive your reply until today.
Can you help me please?

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</ns2:requestId><ns2:serviceName>ExperimentDiversionService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>207</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201509" xmlns="https://adwords.google.com/api/adwords/o/v201509"><rval><totalNumEntries>0</totalNumEntries></rval></getResponse></soap:Body></soap:Envelope>




My request SOAP log for keyword 'sportivo' (that works fine):

<?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>XXXXXXXX</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>sportivo</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 'sportivo':

<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>00052a26e6af99e80a56424bd005ee0d</ns2:requestId><ns2:serviceName>ExperimentDiversionService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>92</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201509" xmlns="https://adwords.google.com/api/adwords/o/v201509"><rval><totalNumEntries>1</totalNumEntries><entries><data><key>KEYWORD_TEXT</key><value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StringAttribute"><Attribute.Type>StringAttribute</Attribute.Type><value>sportivo</value></value></data><data><key>TARGETED_MONTHLY_SEARCHES</key><value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MonthlySearchVolumeAttribute"><Attribute.Type>MonthlySearchVolumeAttribute</Attribute.Type><value><year>2015</year><month>12</month><count>480</count></value><value><year>2015</year><month>11</month><count>590</count></value><value><year>2015</year><month>10</month><count>590</count></value><value><year>2015</year><month>9</month><count>590</count></value><value><year>2015</year><month>8</month><count>390</count></value><value><year>2015</year><month>7</month><count>390</count></value><value><year>2015</year><month>6</month><count>590</count></value><value><year>2015</year><month>5</month><count>590</count></value><value><year>2015</year><month>4</month><count>480</count></value><value><year>2015</year><month>3</month><count>480</count></value><value><year>2015</year><month>2</month><count>480</count></value><value><year>2015</year><month>1</month><count>480</count></value></value></data><data><key>SEARCH_VOLUME</key><value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="LongAttribute"><Attribute.Type>LongAttribute</Attribute.Type><value>480</value></value></data></entries></rval></getResponse></soap:Body></soap:Envelope>


Many thanks,
Biagio


Il giorno martedì 19 gennaio 2016 18:49:43 UTC+1, Yin Niu ha scritto:

Prabhat Jha

unread,
Jan 25, 2016, 9:03:29 AM1/25/16
to AdWords API Forum
love raj music

Anash P. Oommen (AdWords API Team)

unread,
Jan 29, 2016, 1:08:36 PM1/29/16
to AdWords API Forum
Hi Biagio,

Apologies for the delay. I tried this search in AdWords frontend and got back the same result (0 for sports, 480 for sportivo), so I don't think this an API issue per se. Also, it seems an appropriate result for me, since "sport" is an English word, and hence you wouldn't get any results back if you were to search for traffic estimates with Location = Italy and Language = Italian.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Biagio Grimaldi

unread,
Feb 1, 2016, 11:24:52 AM2/1/16
to adwordsapia...@google.com, AdWords API Forum
Hi Anash,
thank you for reply.

I don't think so. I have the same problem with italian words like "lanterna" or "salsa" too.

SOAP request for keyword "lanterna":

<?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>lanterna</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 "lanterna":

<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>00052ab7b99391580a561f11b5003d16</ns2:requestId><ns2:serviceName>ExperimentDiversionService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>319</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201509" xmlns="https://adwords.google.com/api/adwords/o/v201509"><rval><totalNumEntries>0</totalNumEntries></rval></getResponse></soap:Body></soap:Envelope>


Have you any suggestion?

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 adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api...@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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/4a7ZXTSKFeA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
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/422c71ee-2ffb-487b-bc99-61727b41c5ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anash P. Oommen (AdWords API Team)

unread,
Feb 2, 2016, 3:43:20 PM2/2/16
to AdWords API Forum, adwordsapia...@google.com
Hi Biagio,

As far as I could find, the behaviour is consistent for the API and UI, so it's more a question of possibly missing traffic data. This is better handled on the product forum, since the API simply exposes the data that the UI does. Could you kindly repost on the product forum? https://www.en.advertisercommunity.com/

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Monday, February 1, 2016 at 11:24:52 AM UTC-5, Biagio Grimaldi wrote:
Hi Anash,
thank you for reply.

I don't think so. I have the same problem with italian words like "lanterna" or "salsa" too.

SOAP request for keyword "lanterna":

<?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>lanterna</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 "lanterna":

<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>00052ab7b99391580a561f11b5003d16</ns2:requestId><ns2:serviceName>ExperimentDiversionService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>1</ns2:operations><ns2:responseTime>319</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><getResponse xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201509" xmlns="https://adwords.google.com/api/adwords/o/v201509"><rval><totalNumEntries>0</totalNumEntries></rval></getResponse></soap:Body></soap:Envelope>


Have you any suggestion?

Many thanks,
Biagio


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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/4a7ZXTSKFeA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api+unsubscribe@googlegroups.com.

Biagio Grimaldi

unread,
Feb 15, 2016, 3:49:05 AM2/15/16
to AdWords API Forum, adwordsapia...@google.com
Hi Anash,
I posted my request on https://www.en.advertisercommunity.com/ but they answer me that i have to post here my issue.


The problem is that we get different results between API and web dashboard: on 1000 requests we have 10% that return 0 entries as result but via dasboard we have 100% hit. How it is possiblie??

Thank you!
Biagio

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 a topic in the Google Groups "AdWords API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/4a7ZXTSKFeA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages