GenerateKeywordHistoricalMetricsRequest - CPC Historical Data?

85 views
Skip to first unread message

Yuan-Chien Yang

unread,
Jun 11, 2024, 12:09:08 PM6/11/24
to Google Ads API and AdWords API Forum
Hi team, 

I am using the GenerateKeywordHistoricalMetricsRequest API, trying to pull keyword CPC data. I have a couple of questions: 

1) is it possible to get the data history of more than 4 years? 
2) the average CPC stays static despite changing the date range --- is it possible to get monthly CPC data? Or is there another API for it? 

Thanks!


Google Ads API Forum Advisor

unread,
Jun 11, 2024, 11:23:38 PM6/11/24
to yuan-...@sstm2.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Please find the answers for your questions below:
  1. No, the GenerateKeywordHistoricalMetricsRequest API from Google Ads currently doesn't allow retrieving data for more than 4 years. The API retrieves historical metrics for the past 12 months by default.
  2. Average CPC is provided only for legacy support. Note that, the GenerateKeywordHistoricalMetricsRequest API doesn't provide monthly CPC data. 
I hope this helps!

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02tJHrA:ref" (ADR-00239580)

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Yuan-Chien Yang

unread,
Jun 12, 2024, 6:40:31 AM6/12/24
to Google Ads API and AdWords API Forum
Thank you for the response!

Is there any other API that would provide the monthly CPC data?

Best, 

Google Ads API Forum Advisor

unread,
Jun 12, 2024, 11:55:58 AM6/12/24
to yuan-...@sstm2.com, adwor...@googlegroups.com
Hi,

There is no other API to provide monthly CPC data. You can check the YearMonthRange which is inclusive of the start and end months. Eg: A year month range to represent Jan 2020 would be: (Jan 2020, Jan 2020). Hope this helps.

Yuan-Chien Yang

unread,
Jun 12, 2024, 11:57:31 AM6/12/24
to Google Ads API and AdWords API Forum
Sorry, one last question. Just to clarify. For the average CPC returned from this particular API, what's the date range it represents? Thank you!

Yuan-Chien Yang

unread,
Jun 12, 2024, 12:24:54 PM6/12/24
to Google Ads API and AdWords API Forum
And are there any alternative ways (other APIs) that I could source relevant data and calculate monthly CPC myself? Any suggestions would be great. Thank you again. 

Google Ads API Forum Advisor

unread,
Jun 12, 2024, 3:17:20 PM6/12/24
to yuan-...@sstm2.com, adwor...@googlegroups.com
Hi,

The year_month_range represents the past 4 years date range. If the search volume is not available for the entire year_month_range provided, the subset of the year month range for which search volume is available are returned.  If not specified, metrics for the past 12 months are returned.

As already mentioned, there is no other API to provide monthly CPC data. 

Hope this helps. If you have any more queries, please feel free to get back to us.
Reply all
Reply to author
Forward
0 new messages