RE: TargetingIdeaService does not return results for certain keywords

2020-06-03 Thread Google Ads API Forum Advisor Prod
Hi Parijat,

You should also see this behavior reflected in the Keyword Planner. If you want 
to find out why these results are 0, I'd suggest reaching out to the product 
team.

Regards,
Anthony
Google Ads API Team
ref:_00D1U1174p._5004Q20VoSN:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/fZW3H0QBCZFX00Jvlk9eDNTOe2bkhtZCI7Kw%40sfdc.net.


TargetingIdeaService does not return results for certain keywords

2020-06-03 Thread Parijat Ghoshal
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.