MPRewardedVideoDelegate /3.5.0-5.16.0

@protocol MPRewardedVideoDelegate <NSObject>

Implement this class to get notified of the rewarded ad’s life cycle.

Public Methods

- /rewardedVideoAdDidLoadForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called after an ad loads successfully.

  • Declaration:

    - (void)rewardedVideoAdDidLoadForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdDidFailToLoadForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called after an ad fails to load.

  • Declaration:

    - (void)rewardedVideoAdDidFailToLoadForAdUnitID:(NSString *)adUnitID error:(NSError *)error;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.
    • error: An error indicating why the ad failed to load.

- /rewardedVideoAdDidExpireForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when a previously loaded rewarded ad is no longer eligible for presentation.

  • Declaration:

    - (void)rewardedVideoAdDidExpireForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdDidFailToPlayForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when an attempt to play a rewarded ad fails.

  • Declaration:

    - (void)rewardedVideoAdDidFailToPlayForAdUnitID:(NSString *)adUnitID error:(NSError *)error;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.
    • error: An error describing why the video couldn’t play.

- /rewardedVideoAdWillAppearForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when a rewarded ad is about to appear.

  • Declaration:

    - (void)rewardedVideoAdWillAppearForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdDidAppearForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when a rewarded ad has appeared.

  • Declaration:

    - (void)rewardedVideoAdDidAppearForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdWillDisappearForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when a rewarded ad will be dismissed.

  • Declaration:

    - (void)rewardedVideoAdWillDisappearForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdDidDisappearForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when a rewarded ad has been dismissed.

  • Declaration:

    - (void)rewardedVideoAdDidDisappearForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdDidReceiveTapEventForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when the user taps on the ad.

  • Declaration:

    - (void)rewardedVideoAdDidReceiveTapEventForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdWillLeaveApplicationForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when a rewarded ad will cause the user to leave the application.

  • Declaration:

    - (void)rewardedVideoAdWillLeaveApplicationForAdUnitID:(NSString *)adUnitID;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.

- /rewardedVideoAdShouldRewardForAdUnitID: /+3.5.0-5.16.0

  • Description: This method is called when the user should be rewarded for watching a rewarded ad.

  • Declaration:

    - (void)rewardedVideoAdShouldRewardForAdUnitID:(NSString *)adUnitID reward:(MPRewardedVideoReward *)reward;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.
    • reward: The object that contains all the information regarding how much you should reward the user.

- /didTrackImpressionWithAdUnitID: /+5.7.0-5.16.0

  • Description: Called when an impression is fired on a Rewarded Ad. Includes information about the impression if applicable.

  • Declaration:

    - (void)didTrackImpressionWithAdUnitID:(NSString *)adUnitID impressionData:(MPImpressionData *)impressionData;
    
  • Parameters:

    • adUnitID: The ad unit ID of the ad associated with the event.
    • impressionData: Information about the impression, or @c nil if the server didn’t return any information.

Last updated July 14, 2021

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2021 MoPub (a division of Twitter, Inc.)