Setting date range for GenerateHistoricalMetrics response

52 views
Skip to first unread message

Kenyon Rosewall

unread,
Sep 4, 2019, 5:18:23 PM9/4/19
to AdWords API and Google Ads API Forum
Hi, I am trying to use the API to interact with the Keyword Planner to get the information I need. It looks like the GenerateHistoricalMetricsRequest only allows me to pass a keyword_plan. I was hoping to be able to pass the information for a report, like the date range. It seems that while I am creating the Keyword Plan, I can set a date interval, but that is limited to the forecast and my only options are NEXT_WEEK, NEXT_MONTH or NEXT_QUARTER. And I don't see another setting on the plan, campaign, ad group or keyword that allows me to set the date range for the historical metrics. 

Also, I was hoping to be able to get more information, as they display on the report on the website. I would like metrics like competition index, high bid, low bid, etc. I can see that KeywordPlanHistoricalMetricsResponse only contains a limited amount of metrics returned. 

So, I was wondering if this sort of thing could be solved by trying to create a Report with AWQL? When I look at the reports available (https://developers.google.com/adwords/api/docs/guides/reporting#choosing_the_right_report), I do not see anything that looks like what I'm looking for (Historical Metric information for the keyword planner). Is there any way to use Reports to do what I'm looking for? Am I missing something with the GenerateHistoricalMetrics method? Am I missing something somewhere else in the API?

Thanks.

Google Ads API Forum Advisor Prod

unread,
Sep 6, 2019, 1:32:33 AM9/6/19
to adwor...@googlegroups.com

Hi Kenyon,

Thank you for posting your concern.

On the AdWords API perspective, you may only retrieve targeting ideas using the TargetingIdeaService. However, according to this guide, it's currently not supported to specify the date ranges when using the said service. You may also refer to this guide for more details.

With regard to downloading report for Historical Metric information for the keyword planner, unfortunately, it is currently not supported in AdWords API reports. The only available historical fields for keywords are:

Otherwise, if what you are using is the Google Ads API instead of AdWords API. Please let me know.

Regards,
Hiroyuki
Google Ads API Team



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