GADAdReward
@interface GADAdReward : NSObject
Reward information for GADRewardBasedVideoAd ads.
-
Type of the reward.
Declaration
Swift
var type: String { get }
Objective-C
@property (readonly, copy, nonatomic) NSString *_Nonnull type;
-
Amount rewarded to the user.
Declaration
Swift
@NSCopying var amount: NSDecimalNumber { get }
Objective-C
@property (readonly, copy, nonatomic) NSDecimalNumber *_Nonnull amount;
-
Returns an initialized GADAdReward with the provided reward type and reward amount. rewardType and rewardAmount must not be nil.
Declaration
Swift
init(rewardType: String, rewardAmount: NSDecimalNumber)
Objective-C
- (nonnull instancetype)initWithRewardType:(nonnull NSString *)rewardType rewardAmount: (nonnull NSDecimalNumber *)rewardAmount;