Hi Aryeh. Thank you for your reply and the code samples that you have provided. But it is still not what I was asking for. My original question was how to get historical monthly search volume for a particular keyword, not forecasted. So let me please rephrase my question. Could you please provide a code sample of how to get monthly search volume for the keyword: "*flats for sale in London*" for the past 3 months or for the past 12 months period of time from the new Google Ads API ?
On Friday, November 19, 2021 at 2:16:16 PM UTC adsapi wrote: > Hi Ruslan, > > Here are the prerequisites in Ads API to generate historical metrics > <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#generating_metrics>. > > You can follow the sample code on the page and change the code explained > in generate forecast metrics to generate historical metrics instead of > forecast metrics > <https://developers.google.com/google-ads/api/docs/keyword-planning/generate-historical-metrics?hl=en#generate_the_metrics>. > > For our client libraries > <https://developers.google.com/google-ads/api/docs/client-libs> here's sample > ad keyword plan code > <https://developers.google.com/google-ads/api/docs/samples/add-keyword-plan> > and here's sample Generate Forecast Metrics code > <https://developers.google.com/google-ads/api/docs/samples/generate-forecast-metrics> > > that can be easily modified to return historical metrics instead. > > I just now modified the sample Java generate forecast metrics code as > explained above and turned on the logger > <https://developers.google.com/google-ads/api/docs/client-libs/java/logging> > with the logger set to 'DEBUG' and saw results per month in the response > from the API. > > > Reminder: Share your feedback about the Google Ads (AdWords) API! Take the > 2021 > Google Ads API and AdWords API Annual Survey > <https://google.qualtrics.com/jfe/form/SV_eQbOpf4VxRyyqqO?source=so> > > Regards, > [image: Google Logo] > Aryeh Baker > Google Ads API Team > > > ref:_00D1U1174p._5004Q2RA8Jm: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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/dc5752e0-fa86-4d85-aa60-8dbf9ba8de28n%40googlegroups.com.
