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: Any!, didRewardUserWithReward reward: Any!)

    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: Any!, 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 rewardBasedVideoAdDidReceiveAd(_ rewardBasedVideoAd: Any!)

    Objective-C

    - (void)rewardBasedVideoAdDidReceiveAd:
        (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
  • Tells the delegate that the reward based video ad opened.

    Declaration

    Swift

    optional func rewardBasedVideoAdDidOpen(_ rewardBasedVideoAd: Any!)

    Objective-C

    - (void)rewardBasedVideoAdDidOpen:
        (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
  • Tells the delegate that the reward based video ad started playing.

    Declaration

    Swift

    optional func rewardBasedVideoAdDidStartPlaying(_ rewardBasedVideoAd: Any!)

    Objective-C

    - (void)rewardBasedVideoAdDidStartPlaying:
        (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;
  • Tells the delegate that the reward based video ad closed.

    Declaration

    Swift

    optional func rewardBasedVideoAdDidClose(_ rewardBasedVideoAd: Any!)

    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: Any!)

    Objective-C

    - (void)rewardBasedVideoAdWillLeaveApplication:
        (nonnull GADRewardBasedVideoAd *)rewardBasedVideoAd;