AI-generated Key Takeaways
-
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;