com.google.ads.googleads.v20.common.Metrics issue with getAbsoluteTopImpressionPercentage()

30 views
Skip to first unread message

Peter Marikit

unread,
Jul 28, 2025, 7:52:25 PM7/28/25
to Google Ads API and AdWords API Forum
Hi, is anyone else having an issue with the gradle package for google ads API for retrieving the "Impr. (Abs. Top) %" metric?

Using the gradle package "com.google.api-ads:google-ads:38.0.0", the metric function getAbsoluteTopImpressionPercentage() always returns 0.

import com.google.ads.googleads.v20.common.Metrics;
import com.google.ads.googleads.v20.services.GoogleAdsRow;

...
Metrics metrics = row.getMetrics();
metrics.getAbsoluteTopImpressionPercentage();

The API and UI on the otherhand is showing value for the metric absolute_top_impression_percentage. 
screenshot.png

Google Ads API and AdWords API Forum

unread,
Jul 29, 2025, 6:13:29 AM7/29/25
to Google Ads API and AdWords API Forum

Hi,


Thank you for contacting the Google Ads API support team.


Upon reviewing your concern, I understand that you are retrieving the absolute_top_impression_percentage field for campaigns present in your Google Ads account and have observed discrepancies between the information displayed in the Google Ads UI and the data retrieved through the Google Ads API. We would like to specify the following points to keep in mind when comparing the value of the UI and the API:

  • The segments and fields of the API and UI should be the same.
  • The date range should also be the same.
  • Comparing the API and UI at the same level as possible.


In order to assist you further, please provide your Google Ads customer Id and campaign Id used. You can send the details via Reply privately to the author option, or direct private reply to this email.


Thanks & Regards,

Google Ads API Team

Reply all
Reply to author
Forward
0 new messages