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)

#-----

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@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 the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/2fb87ab2-c361-4402-9a32-f2cb0000cd41%40googlegroups.com.

Reply via email to