strange results from TargetingIdeaService (keyword planner)

78 views
Skip to first unread message

Daphna Wegner

unread,
Oct 19, 2017, 11:45:13 PM10/19/17
to AdWords API Forum
I have a simple function to get the search volume for keywords, however in the last few days we noticed some strange behaviour, when the following keyword is sent the volume is correctly returned: 

words = ['test']

however when this keyword is sent the results are empty:

words = ['arutz']

even more when these words are sent together the results are empty as well:

words = ["test","arutz"]

(if I manually enter these in the keyword planner I do get search volumes for each word)

this is the function for getting the search volume:

def TestVolume(words):  
  PAGE_SIZE
= 100


 
# Initialize appropriate service.
  targeting_idea_service
= client.GetService('TargetingIdeaService', version='v201705')


 
# Construct selector object and retrieve related keywords.
  offset
= 0
  selector
= {
   
'searchParameters': [
       
{
           
'xsi_type': 'RelatedToQuerySearchParameter',
           
'queries': words
       
},
   
],
   
'ideaType': 'KEYWORD',
   
'requestType': 'STATS',
   
'requestedAttributeTypes': ['KEYWORD_TEXT', 'SEARCH_VOLUME'],
   
'paging': {
       
'startIndex': str(offset),
       
'numberResults': str(PAGE_SIZE)
   
}
 
}
  more_pages
= True
 
while more_pages:
      page
= targeting_idea_service.get(selector)
     
# Display results.
     
if 'entries' in page:
       
for result in page['entries']:

          attributes
= {}
         
for attribute in result['data']:
            attributes
[attribute['key']] = getattr(attribute['value'], 'value','0')
         
print ('Keyword \'%s\'  average monthly search volume '
                 
'\'%s\n'
                 
% (attributes['KEYWORD_TEXT'],
                    attributes
['SEARCH_VOLUME']))
         
print attributes
          word
= {}
          word
[attributes['KEYWORD_TEXT']] = attributes['SEARCH_VOLUME']
       
     
else:
       
print 'No related keywords were found.'
      offset
+= PAGE_SIZE
      selector
['paging']['startIndex'] = str(offset)
      more_pages
= offset < int(page['totalNumEntries'])




Peter Oliquino

unread,
Oct 20, 2017, 2:15:53 AM10/20/17
to AdWords API Forum
Hi Daphna,

In order for me to better investigate, could you provide the SOAP request and response that was generated when you made the request that returned 0 results? You may reply using the Reply privately to author option.

Additionally, could you also confirm if you tried the Keyword Planner using the same filters and got results instead of 0? You may also send to me the complete screenshot of your Keyword Planner request.

Thanks and regards,
Peter
AdWords API Team

Daphna Wegner

unread,
Oct 20, 2017, 6:05:57 PM10/20/17
to AdWords API Forum
Hi Peter,

I sent you the required info, is there any update on this?

Daphna Wegner

unread,
Nov 2, 2017, 4:12:26 PM11/2/17
to AdWords API Forum

Is there any progress on this issue? Is it scheduled to be fixed?

Anash P. Oommen (AdWords API Team)

unread,
Nov 6, 2017, 3:35:15 PM11/6/17
to AdWords API Forum
Hi Daphna,

This issue should be fixed as of today, let me know if you continue seeing more instances of this issue.

Cheers
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages