GADRewardBasedVideoAdDelegate
@protocol GADRewardBasedVideoAdDelegate <NSObject>
Delegate for receiving state change messages from a GADRewardBasedVideoAd such as ad requests succeeding/failing.
-
Tells the delegate that the reward based video ad has rewarded the user.
Declaration
Swift
func rewardBasedVideoAd(_ rewardBasedVideoAd: GADRewardBasedVideoAd, didRewardUserWith reward: GADAdReward)
Objective-C
- (void)rewardBasedVideoAd:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd didRewardUserWithReward:(nonnull GADAdReward *)reward;
-
Tells the delegate that the reward based video ad failed to load.
Declaration
Swift
optional func rewardBasedVideoAd(_ rewardBasedVideoAd: GADRewardBasedVideoAd, didFailToLoadWithError error: Error)
Objective-C
- (void)rewardBasedVideoAd:(nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd didFailToLoadWithError:(nonnull NSError *)error;
-
Tells the delegate that a reward based video ad was received.
Declaration
Swift
optional func rewardBasedVideoAdDidReceive(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdDidReceiveAd: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
-
Tells the delegate that the reward based video ad opened.
Declaration
Swift
optional func rewardBasedVideoAdDidOpen(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdDidOpen: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
-
Tells the delegate that the reward based video ad started playing.
Declaration
Swift
optional func rewardBasedVideoAdDidStartPlaying(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdDidStartPlaying: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
-
Tells the delegate that the reward based video ad completed playing.
Declaration
Swift
optional func rewardBasedVideoAdDidCompletePlaying(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdDidCompletePlaying: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
-
Tells the delegate that the reward based video ad closed.
Declaration
Swift
optional func rewardBasedVideoAdDidClose(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdDidClose: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
-
Tells the delegate that the reward based video ad will leave the application.
Declaration
Swift
optional func rewardBasedVideoAdWillLeaveApplication(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdWillLeaveApplication: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
-
Tells the delegate that the reward based video ad’s metadata changed. Called when an ad loads, and when a loaded ad’s metadata changes.
Declaration
Swift
optional func rewardBasedVideoAdMetadataDidChange(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
Objective-C
- (void)rewardBasedVideoAdMetadataDidChange: (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;