Getting empty response for device searches in GenerateHistoricalMetrics service in google ads api python
112 views
Skip to first unread message
DHARAVATH KARTHIK
unread,
Jun 19, 2021, 11:35:40 AM6/19/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API and Google Ads API Forum
Hi,
Iam able to fetch metrics for KeywordPlanHistoricalMetrics in GenerateHistoricalMetrics service but unable to fetch aggregate_metric_results(which gives device_searches).
Note ::
This is only set when KeywordPlanAggregateMetricTypeEnum.DEVICE is set
in the KeywordPlanAggregateMetrics(class which fetches device and search count) field in the request .How do i set KeywordPlanAggregateMetrics field in the request.
Resonse:
{
aggregate_metric_results:[],
metrics:{
"keyword": "airpod",
"avg_monthly_searches": 2240000,
"competition": "HIGH",
"competition_index": 100,
"low_top_of_page_bid": 0.29,
"high_top_of_page_bid": 0.76,
}
}
please suggest me a work around which fetches device,search count for a keyword.
Google Ads API Forum Advisor
unread,
Jun 22, 2021, 3:16:43 PM6/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dharavath...@gmail.com, adwor...@googlegroups.com
Hello,
Thanks for reaching out. Can you please provide us with your request details? It seem that you are using the REST interface. For guidance on creating the request body using the REST interface, please see the customers.keywordPlans.generateHistoricalMetrics page.