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
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
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.

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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