MPRewardedVideoDelegate

@protocol MPRewardedVideoDelegate <NSObject>

Implement this class to get notified of rewarded video ads life cycle.

Public Methods

- /rewardedVideoAdDidLoadForAdUnitID:

  • 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:

  • 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:

  • Description: This method is called when a previously loaded rewarded video 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:

  • Description: This method is called when an attempt to play a rewarded video 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:

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

  • Declaration:

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

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

- /rewardedVideoAdDidAppearForAdUnitID:

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

  • Declaration:

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

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

- /rewardedVideoAdWillDisappearForAdUnitID:

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

  • Declaration:

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

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

- /rewardedVideoAdDidDisappearForAdUnitID:

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

  • Declaration:

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

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

- /rewardedVideoAdDidReceiveTapEventForAdUnitID:

  • 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:

  • Description: This method is called when a rewarded video 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:

  • Description: This method is called when the user should be rewarded for watching a rewarded video 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:

  • Description: Called when an impression is fired on a Rewarded Video. 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 March 03, 2020

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.

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