I'm using the *GoogleAds API* with the  *Python* library.

My goal is to get 'SEARCH_VOLUME', 'TARGETED_MONTHLY_SEARCHES' for a given 
keyword.
However, when I'm using the GoogleAds API ( see code below) I'm not getting 
results for certain keywords.
E.g. if I search for 'virus' I get:
{
    'totalNumEntries': 0,
    'entries': []
}

but searching for 'germ' gives back results.

*Access level:* I'm using AdWords API token that has been approved for 
Basic Access.

My code:

from googleads import adwords

adwords_client = adwords.AdWordsClient.LoadFromStorage('googleads.yml')

targeting_idea_service = adwords_client.GetService('TargetingIdeaService', 
version='v201809')
selector = {
 'ideaType': 'KEYWORD',
 'requestType': 'IDEAS'
}
selector['requestedAttributeTypes'] = [
 'KEYWORD_TEXT', 'SEARCH_VOLUME', 'TARGETED_MONTHLY_SEARCHES']

offset = 0
PAGE_SIZE = 1
selector['paging'] = {
 'startIndex': str(offset),
 'numberResults': str(PAGE_SIZE)
}


selector['searchParameters'] = [{
 'xsi_type': 'RelatedToQuerySearchParameter',
 'queries': [ 'virus']
}]


page = targeting_idea_service.get(selector)

print(page)


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/21a007c8-9596-428a-acbe-2a2a16f4a13d%40googlegroups.com.

Reply via email to