GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADAdValue\u003c/code\u003e represents the monetary value earned from an ad, including the value, currency, and precision.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties for accessing the ad's value (\u003ccode\u003evalue\u003c/code\u003e), the currency code (\u003ccode\u003ecurrencyCode\u003c/code\u003e), and the precision of the reported value (\u003ccode\u003eprecision\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use this class to retrieve and utilize ad revenue data in their applications.\u003c/p\u003e\n"]]],["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"],null,["# GoogleMobileAds Framework Reference\n\nGADAdValue\n==========\n\n\n @interface GADAdValue : NSObject \u003cNSCopying\u003e\n\nThe monetary value earned from an ad.\n- `\n ``\n ``\n `\n\n ### [precision](#/c:objc(cs)GADAdValue(py)precision)\n\n `\n ` \n The precision of the reported ad value. \n\n #### Declaration\n\n Swift \n\n var precision: AdValuePrecision { get }\n\n Objective-C \n\n @property (nonatomic, readonly) ../Enums/GADAdValuePrecision.html precision;\n\n- `\n ``\n ``\n `\n\n ### [value](#/c:objc(cs)GADAdValue(py)value)\n\n `\n ` \n The ad's value. \n\n #### Declaration\n\n Swift \n\n var value: NSDecimalNumber { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSDecimalNumber *value;\n\n- `\n ``\n ``\n `\n\n ### [currencyCode](#/c:objc(cs)GADAdValue(py)currencyCode)\n\n `\n ` \n The value's currency code. \n\n #### Declaration\n\n Swift \n\n var currencyCode: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSString *currencyCode;"]]