Google Ads API - Generate forecast metrics

620 views
Skip to first unread message

Mnk

unread,
Jun 5, 2023, 9:13:02 AM6/5/23
to Google Ads API and AdWords API Forum
Hey All,

The Generate forecast metrics still working in your side?

In my side, nothing change in my code and the API return nothing.

No errors, no result, nothing.

So i get a success from the API without the amout prevision.

Just for be sure i update my PHP library ( 17.1.0 to the last one 19.1.0) but still nothing.

Thanks for keep me updated if they are a problem in google side or something new to adapt ?

Mnk

unread,
Jun 6, 2023, 12:08:50 PM6/6/23
to Google Ads API and AdWords API Forum
It's very strange, i check on documentation but i see nothing... 

But now, this (below) return an empty object... This is why i the foreach dosen't work.
var_dump($generateForecastMetricsResponse->getKeywordForecasts())

I verify the keyword plan ID , it's Correct !

I don't find a way for check the keyword inside the plan but i didn't change anything...

Big blur !

Aqeel Ashraf

unread,
Jun 6, 2023, 12:39:13 PM6/6/23
to Google Ads API and AdWords API Forum
Hi,

I am facing the same issue and didn't get any help yet. Still trying to find the solution. 

Patrick P

unread,
Jun 6, 2023, 3:34:13 PM6/6/23
to Google Ads API and AdWords API Forum
Seeing the same with PHP using their documented examples. I have a ticket open with our google representative still waiting to hear back.

This broke our forecasting tool which is critical to our business, we do not use either of the two deprecated calls and our code matches the current documentation + examples.

Mnk

unread,
Jun 7, 2023, 11:21:53 AM6/7/23
to Google Ads API and AdWords API Forum
Finally im not alone ! 

Me too i trying during this 2 pasts days all kinds of modifications in my code but the answer is still empty.

I check in the UI ( after i create the plan with the code) and the plan appear in the UI with all the information ( keywords, price, forecaste , etc).

The Only things maybe strange maybe not. I cannot access to the language and country target in the UI and API too (see capture)

And All the time when i try to access to the forecast page (UI) i get an error ( see capture)

I stop modification and waiting about news

Capture d’écran 2023-06-07 181919.jpg

Google Ads API Forum Advisor

unread,
Jun 8, 2023, 5:48:53 AM6/8/23
to mnk.lab...@gmail.com, adwor...@googlegroups.com

Hi Everyone,

Thank you for reaching out to us.

Kindly note that there's announcement in our blog that KeywordPlanAdGroupForecast and KeywordPlanKeywordForecast will be deprecated in the Google Ads API. This change will be effective on June 1, 2023.

Starting June 1, the GenerateForecastMetricsRequest will still be used to fetch forecasts, but the KeywordPlanAdGroupForecast and KeywordPlanKeywordForecast will be empty. The KeywordPlanCampaignForecast will be returned as usual.

If you are using KeywordPlanAdGroupForecast or KeywordPlanKeywordForecast in your applications, update your applications to ensure that they can handle blank responses.

We recommend that you start updating your applications as soon as possible. You can find more information about how to use KeywordPlanCampaignForecast in the Google Ads API documentation.

You may check this blog for more information.

Reference links from the above emphasized words:


This message is in relation to case "ref:_00D1U1174p._5004Q2m9RBB:ref"

Thanks,
 
Google Logo Google Ads API Team

 



Google Ads API Forum Advisor

unread,
Jun 9, 2023, 3:00:35 PM6/9/23
to aqeel...@gmail.com, adwor...@googlegroups.com

Hi Aqeel,

Thanks for reaching out to the Google Ads API Forum.

As per this blog post, as stated above, you may note that starting June 1, the GenerateForecastMetricsRequest will still be used to fetch forecasts, but the KeywordPlanAdGroupForecast and KeywordPlanKeywordForecast will be empty. The KeywordPlanCampaignForecast will be returned as usual.



If you are using KeywordPlanAdGroupForecast or KeywordPlanKeywordForecast in your applications, update your applications to ensure that they can handle blank responses.

We recommend that you start updating your applications as soon as possible. You can find more information about how to use KeywordPlanCampaignForecast in the Google Ads API documentation.

In addition, you may note that new Google Ads API v14 already released with following release notes:

  1. Removed the following methods from KeywordPlanService:
  • GenerateForecastCurve
  • GenerateForecastMetrics
  • GenerateForecastTimeSeries
  • GenerateHistoricalMetrics

Added KeywordPlanIdeaService.GenerateKeywordForecastMetrics to support generating keyword campaign forecast metrics without the need of creating a keyword plan first.

You may give it a try. For more information, you may check here: https://developers.google.com/google-ads/api/docs/release-notes

Let us know if you have further questions. 

This message is in relation to case "ref:_00D1U1174p._5004Q2mA3EP:ref"


Thanks,
 
Google Logo Google Ads API Team

 



Patrick P

unread,
Jun 9, 2023, 6:10:06 PM6/9/23
to Google Ads API and AdWords API Forum
For anyone else following this, it appears like they updated their docs, nulled out and no longer have examples, but do finally have the right instructions here: https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics

Google team -- next time, might we please update docs & replace examples *before* we deprecate methods widely used for key things like forecasting?

Mnk

unread,
Jun 12, 2023, 10:56:55 AM6/12/23
to Google Ads API and AdWords API Forum
Thanks @Patrick P ! 
In effect the Google Ads API Team answer it's very.... lean or outdated.

I look your Link without exemple ( as you said :) ) . I try it but i have a problem with the library. It's like a don't have all the file that i need.

Can you show us a basic example with the all the "use" you do

Exemple:
use Google\Ads\GoogleAds\Lib\V14\GoogleAdsService;
use Google\Ads\GoogleAds\V14\Services\GenerateKeywordForecastMetricsRequest;
use Google\Ads\GoogleAds\V14\Services\KeywordPlanServiceClient;
use Google\Ads\GoogleAds\V14\Services\KeywordPlanService;
 // Create a new forecast request object.
    $request = new KeywordPlansRequest();
etc ...

Google Ads API Forum Advisor

unread,
Jun 13, 2023, 3:03:41 AM6/13/23
to jpat...@gmail.com, adwor...@googlegroups.com

Hi Everyone,

 

Thank you for reaching out to the Google Ads API Forum Channel.

 

Kindly note that there's an announcement in our Ads Developer blog that KeywordPlanAdGroupForecast and KeywordPlanKeywordForecast will be deprecated in the Google Ads API. This change will be effective on June 1, 2023. You may check the blog post I linked below for more information.

 

Starting June 1, the GenerateForecastMetricsRequest will still be used to fetch forecasts, but the KeywordPlanAdGroupForecast and KeywordPlanKeywordForecast will be empty. The KeywordPlanCampaignForecast will be returned as usual.

 

If you are using KeywordPlanAdGroupForecast or KeywordPlanKeywordForecast in your applications, kindly update your applications to ensure that they can handle blank responses.

You can find more information about how to use KeywordPlanCampaignForecast in the Google Ads API documentation.

 

Reference links from the above emphasized words:

 

This message is in relation to case "ref:_00D1U1174p._5004Q2mA8QG:ref"


Thanks,
 
Google Logo Google Ads API Team


Google Ads API Forum Advisor

unread,
Jun 15, 2023, 3:34:27 AM6/15/23
to mnk.lab...@gmail.com, adwor...@googlegroups.com

Hi everyone,

Thank you for getting back to us.

We really appreciate your insights and suggestions with regards to this concern. Since there is no example for using KeywordPlanCampaignForecast for now, in the meantime, you may refer to this guide (https://developers.google.com/google-ads/api/docs/keyword-planning/generate-forecast-metrics#generate-metrics). We also suggest keeping an eye on our release notes (https://developers.google.com/google-ads/api/docs/release-notes) for more information and to be updated with new releases.

Vipin Sharma

unread,
Jun 28, 2023, 11:50:48 AM6/28/23
to Google Ads API and AdWords API Forum
To echo Patrick's concerns: 
> Google team -- next time, might we please update docs & replace examples *before* we deprecate methods widely used for key things like forecasting?

We are also relying on GenerateForecastCurve. Can you provide more insight why are we deprecating this feature and not providing an alternative? 

Google Ads API Forum Advisor

unread,
Jun 29, 2023, 2:20:41 PM6/29/23
to vi...@matchcraft.com, adwor...@googlegroups.com

Hi,

Thank you for chiming in on this thread.

Let me raise your concern with our wider team to get more insights. Rest assured that one of my colleagues will update this thread as soon as we have more information.

Google Ads API Forum Advisor

unread,
Jul 7, 2023, 6:47:24 AM7/7/23
to vi...@matchcraft.com, adwor...@googlegroups.com
Hello,

Unfortunately, our team has no insight into the "why" of the feature's removal. I've let the team responsible for the decision know that there's a strong desire for a replacement, but I won't be able to comment on any potential future plans, if any are made, based on this report.

 
This message is in relation to case "ref:_00D1U1174p._5004Q2mA3EP:ref"

Thanks,
 
Google Logo
Michael Cloonan
Google Ads API Team


Reply all
Reply to author
Forward
0 new messages