Generating Forecast Metrics Returns "-1" For keyword_plan_campaign in "Campaign_Forecasts"

36 views
Skip to first unread message

Michael Leone

unread,
Dec 16, 2022, 12:21:10 PM12/16/22
to Google Ads API and AdWords API Forum
Hello,

I'm trying to utilize the generate_forecast_metrics function under the keywordPlanService via python and it's returning inconsistent results. I create a keyword_plan, added it to a created keyword_plan_campaign and ad_group and tried generating the metrics following the instructions here. However, under the "metrics.campaign_forecasts" it provides a "-1" for the "keyword_plan_campaign" associated with it. Also the data is inconsistent with what is appearing in the UI. Not entirely sure why this is happening, or if I missed something..

I attached the request and response details to this message.
Image.png

Google Ads API Forum Advisor

unread,
Dec 16, 2022, 2:47:20 PM12/16/22
to msle...@gmail.com, adwor...@googlegroups.com
Hi Michael,

You have reached the Google Ads API Forum. 

With regard to your concern, it appears that you are facing an issue to generate forecast metrics for keyword plan using Google Ads API.

To better check this in our end, could please provide the complete API request and response logs with request ID and request header that generated on your end. Also, the complete screenshot of the Google Ads UI without cropping part where we can see the comparison that you encountering inconsistency data. 

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

For security purposes, you can provide it via the Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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