How to get historical search volume data older than 12 months in Google AdWords API?

42 views
Skip to first unread message

P. Ghoshal

unread,
Nov 4, 2019, 3:08:25 AM11/4/19
to AdWords API and Google Ads API Forum
I'm using the Google Adwords API ( test account, Python) and I want to get historical search volume data.
In the web UI, I get with my active production account historical search volume data for 4-5 years.
Is there something that I'm doing wrong?
This is my code:
#-----

from googleads import adwords  
adwords_client = adwords.AdWordsClient.LoadFromStorage('googleads.yaml')  
targeting_idea_service = adwords_client.GetService(     'TargetingIdeaService', version='v201809') 

selector = {     'ideaType': 'KEYWORD',     'requestType': 'IDEAS' } 
selector['requestedAttributeTypes'] = [     'KEYWORD_TEXT', 'SEARCH_VOLUME', 'TARGETED_MONTHLY_SEARCHES']
PAGE_SIZE = 50 
offset = 0
selector['paging'] = {     'startIndex': str(offset),     'numberResults': str(PAGE_SIZE) }  
selector['searchParameters'] = [{     'xsi_type': 'RelatedToQuerySearchParameter',     'queries': ['space cruise'] }] 
page = targeting_idea_service.get(selector)

#-----

Google Ads API Forum Advisor Prod

unread,
Nov 4, 2019, 10:56:16 AM11/4/19
to parijat...@gmail.com, adwor...@googlegroups.com

Hi,

 

Thank you for reaching out. Please see this guide for mapping TargetingideaService to the UI Keyword Planner to retrieve volume data and trends. As mentioned, you must change the RequestType to "STATS". Additionally, the data from the API might not exactly match the data from the UI as explained here.

 

You can use the Keyword Performance Report to retrieve performance statistics for your keywords as well. You can specify your desired date range for the values within the report definition. Please see this guide for more information about reports.

 

Regards,

Mitchell

Google Ads API Team



ref:_00D1U1174p._5001UMugVg:ref
Reply all
Reply to author
Forward
0 new messages