GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADAdReward
@interface GADAdReward : NSObject
Ad reward information.
-
Declaration
Swift
var type: String { get }
Objective-C
@property (nonatomic, readonly, nonnull) NSString *type;
-
Amount rewarded to the user.
Declaration
Swift
var amount: NSDecimalNumber { get }
Objective-C
@property (nonatomic, readonly, nonnull) NSDecimalNumber *amount;
-
Returns an initialized GADAdReward with the provided reward type and reward amount.
Declaration
Swift
init(rewardType: String?, rewardAmount: NSDecimalNumber?)
Objective-C
- (nonnull instancetype)initWithRewardType:(nullable NSString *)rewardType
rewardAmount:
(nullable NSDecimalNumber *)rewardAmount;
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\u003eGADAdReward\u003c/code\u003e provides information about ad rewards, including the reward type and amount.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties to access the reward type (\u003ccode\u003etype\u003c/code\u003e) and reward amount (\u003ccode\u003eamount\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eYou can create a \u003ccode\u003eGADAdReward\u003c/code\u003e instance using the \u003ccode\u003einitWithRewardType:rewardAmount:\u003c/code\u003e initializer.\u003c/p\u003e\n"]]],["GADAdReward provides information about ad rewards. It includes two key properties: `type`, a string representing the reward's type, and `amount`, an NSDecimalNumber indicating the reward amount. A GADAdReward object can be initialized using the `initWithRewardType:rewardAmount:` method, which takes a reward type string and an amount as arguments. These properties are read-only after the object is created.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADAdReward\n===========\n\n\n @interface GADAdReward : NSObject\n\nAd reward information.\n- `\n ``\n ``\n `\n\n ### [type](#/c:objc(cs)GADAdReward(py)type)\n\n `\n ` \n Type of the reward. \n\n #### Declaration\n\n Swift \n\n var type: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSString *type;\n\n- `\n ``\n ``\n `\n\n ### [amount](#/c:objc(cs)GADAdReward(py)amount)\n\n `\n ` \n Amount rewarded to the user. \n\n #### Declaration\n\n Swift \n\n var amount: NSDecimalNumber { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nonnull) NSDecimalNumber *amount;\n\n- `\n ``\n ``\n `\n\n ### [-initWithRewardType:rewardAmount:](#/c:objc(cs)GADAdReward(im)initWithRewardType:rewardAmount:)\n\n `\n ` \n Returns an initialized GADAdReward with the provided reward type and reward amount. \n\n #### Declaration\n\n Swift \n\n init(rewardType: String?, rewardAmount: NSDecimalNumber?)\n\n Objective-C \n\n - (nonnull instancetype)initWithRewardType:(nullable NSString *)rewardType\n rewardAmount:\n (nullable NSDecimalNumber *)rewardAmount;"]]