GoogleMobileAds Framework Reference
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 }
-
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-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["`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."]]],["The `GADAdValue` class represents the monetary value earned from an ad. It provides three key properties: `precision`, indicating the accuracy of the reported ad value; `value`, representing the ad's monetary amount as an `NSDecimalNumber`; and `currencyCode`, a string specifying the currency of the ad's value. Each of these properties is read-only and accessible in both Swift and Objective-C.\n"]]