To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleMobileAds Framework Reference

  • GADAdValue represents the monetary value earned from an ad, including the value, currency, and precision.

  • It provides properties for accessing the ad's value (value), the currency code (currencyCode), and the precision of the reported value (precision).

  • Developers can use this class to retrieve and utilize ad revenue data in their applications.

GADAdValue


@interface GADAdValue : NSObject <NSCopying>

The monetary value earned from an ad.

  • The precision of the reported ad value.

    Declaration

    Swift

    var precision: AdValuePrecision { get }

    Objective-C

    @property (nonatomic, readonly) GADAdValuePrecision precision;
  • The ad’s value.

    Declaration

    Swift

    var value: NSDecimalNumber { get }

    Objective-C

    @property (nonatomic, readonly, nonnull) NSDecimalNumber *value;
  • The value’s currency code.

    Declaration

    Swift

    var currencyCode: String { get }

    Objective-C

    @property (nonatomic, readonly, nonnull) NSString *currencyCode;

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月20日 UTC.