KeywordPlanServiceClient.generateForecastMetrics: response []

73 views
Skip to first unread message

Aqeel Ashraf

unread,
Jun 5, 2023, 11:39:44 AM6/5/23
to Google Ads API and AdWords API Forum
Hi,

When I call KeywordPlanServiceClient.generateForecastMetrics it returns empty array. I checked parameter values are fine. Please see below code snippet:

$generateForecastMetricsResponse = $keywordPlanServiceClient->generateForecastMetrics(
            ResourceNames::forKeywordPlan($customerId, $keywordPlanId)
        );

It returns empty array []. It was working till yesterday but suddenly today it start send empty response. Any idea?




Google Ads API Forum Advisor

unread,
Jun 8, 2023, 11:57:13 AM6/8/23
to aqeel...@gmail.com, adwor...@googlegroups.com
Hello,

Welcome to Google Ads API Support team. Thank you for reaching out to us.

For us to investigate further on your concern, would you be able to share to us the complete request and response logs with request id and request header generated on your end.

Note that these logs can be requested or provided to the developer handling the Google Ads API transactions when logging of the API requests has been enabled. You may check here (https://developers.google.com/google-ads/api/docs/best-practices/logging#client_library_logging) and click your client library for the specific guideline to enable it.

For REST interface requests, you can enable logging via the curl command by using the -i flag. This will cause the tool to include the HTTP response headers in the output.

Links to the highlighted words above:


You may send the requested details privately via “Reply To Author” option. If that option is not available to you, send it directly to googleadsa...@google.com instead, and let us know here once it is provided.

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

Thanks,
 
Google Logo Google Ads API Team


Aqeel Ashraf

unread,
Jun 13, 2023, 6:45:33 AM6/13/23
to Google Ads API and AdWords API Forum
Hi,

I upgraded to V14. As GenerateForecastMetrics is removed, is there any example available for GenerateKeywordForecastMetrics()? So, I can see how I can use that and implement in my code. Thanks

Google Ads API Forum Advisor

unread,
Jun 15, 2023, 4:16:38 AM6/15/23
to aqeel...@gmail.com, adwor...@googlegroups.com
Hi Aqeel,

Thank you for getting back to us.

I can see that you created another thread with the same concern. You may refer and respond to my suggestion posted in another thread with a subject of Empty response from $keywordPlanServiceClient->generateForecastMetrics.
Reply all
Reply to author
Forward
0 new messages