GADRewardBasedVideoAdDelegate
protocol GADRewardBasedVideoAdDelegate : NSObjectProtocol
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)
-
Tells the delegate that the reward based video ad failed to load.
Declaration
Swift
optional func rewardBasedVideoAd(_ rewardBasedVideoAd: GADRewardBasedVideoAd, didFailToLoadWithError error: Error)
-
Tells the delegate that a reward based video ad was received.
Declaration
Swift
optional func rewardBasedVideoAdDidReceive(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
-
Tells the delegate that the reward based video ad opened.
Declaration
Swift
optional func rewardBasedVideoAdDidOpen(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
-
Tells the delegate that the reward based video ad started playing.
Declaration
Swift
optional func rewardBasedVideoAdDidStartPlaying(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
-
Tells the delegate that the reward based video ad completed playing.
Declaration
Swift
optional func rewardBasedVideoAdDidCompletePlaying(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
-
Tells the delegate that the reward based video ad closed.
Declaration
Swift
optional func rewardBasedVideoAdDidClose(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
-
Tells the delegate that the reward based video ad will leave the application.
Declaration
Swift
optional func rewardBasedVideoAdWillLeaveApplication(_ rewardBasedVideoAd: GADRewardBasedVideoAd)
-
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)