average_cpc_micros : null ?

264 views
Skip to first unread message

Paul

unread,
Jun 2, 2022, 11:50:10 AM6/2/22
to Google Ads API and AdWords API Forum

Hi,

Trying to fetch the average_cpc_micros value for keywords but always get a null value even after activating the include_average_cpc as below (even though the low_top_of_page_bid_micros and high_top_of_page_bid_micros have values in them).

Have I missed something to fetch it ?

$generateHistoricalMetrics = $keywordPlanServiceClient->generateHistoricalMetrics( ResourceNames::forKeywordPlan($customerId, $keywordPlanId), [ 'historicalMetricsOptions' => new HistoricalMetricsOptions( ['include_average_cpc' => true] ) ] ); foreach ($generateHistoricalMetrics->getMetrics() as $historical) { $metrics = $historical->getKeywordMetrics(); \Log::info("avg : " . $metrics->getAverageCpcMicros() / 1000000); }

I've installed the latest V15.0 version.

Thx

Google Ads API and AdWords API Forum

unread,
Jun 22, 2022, 1:30:39 PM6/22/22
to Google Ads API and AdWords API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/FM-kkaYABbk) from the forum as it wasn't routed to our support queue.

Cheers,
Peter Laurence
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
Jun 27, 2022, 1:32:46 PM6/27/22
to Google Ads API and AdWords API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/FM-kkaYABbk) from the forum as it wasn't routed to our support queue.

Cheers,
Peter Laurence
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
Jun 30, 2022, 6:31:35 AM6/30/22
to Google Ads API and AdWords API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/FM-kkaYABbk) from the forum as it wasn't routed to our support queue.

Cheers,
Ernie John
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
Jul 4, 2022, 3:33:23 AM7/4/22
to Google Ads API and AdWords API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/FM-kkaYABbk) from the forum as it wasn't routed to our support queue.

Cheers,
Jinky
Google Ads API Team

Google Ads API and AdWords API Forum

unread,
Jul 5, 2022, 4:29:46 AM7/5/22
to Google Ads API and AdWords API Forum
Hi Pavlos,

Thank you for raising this concern to the Google Ads API Forum.

To try this in our end, could please provide the complete API request and response logs with request-id and login-customer-id that generated on your end? 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. You can provide it instead on this email address googleadsa...@google.com.

Best regards,

Jinky
Google Ads API Team
Reply all
Reply to author
Forward
0 new messages