MoPubRewardedVideoManager /3.5.0

public class MoPubRewardedVideoManager

A base class for custom events that support rewarded video ads. Implementing a subclass of MoPubRewardedVideoManager() enables the MoPub SDK to support rewarded video ad mediation with other ad networks.

Public Methods

public static T /getGlobalMediationSettings(Class<T> clazz) /+3.5.0

  • Description: Returns a global MediationSettings object, if available, that contains publisher’s passed-in data for rewarded video mediation if supported be the ad network SDK in question. Returns null if no Class is registered.

  • Parameters:

public static T /getInstanceMediationSettings(Class<T> clazz, String adUnitId) /+3.5.0

  • Description: Returns an instance MediationSettings object, if available, that contains publisher’s passed-in data for rewarded video mediation if supported be the ad network SDK in question. Returns null if no Class is registered

  • Parameters:

public static void /onRewardedVideoClicked(Class<T> customEventClass, String thirdPartyId) /+3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has been successfully cached.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.

public static void /onRewardedVideoClosed(Class<T> customEventClass, String thirdPartyId) /+3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has been closed.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.

public static void /onRewardedVideoCompleted(Class<T> customEventClass, String thirdPartyId, MoPubReward moPubReward) /+3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has finished playback.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.
    • moPubReward: A reward to the user for completing a rewarded task like watching a video. It consists of a label and an amount.

public static void /onRewardedVideoLoadFailure(Class<T> customEventClass, String thirdPartyId, MoPubErrorCode errorCode) /+3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has failed to load.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.
    • errorCode: Contains an error constant with an error message explaining the failure.

public static void /onRewardedVideoLoadSuccess(Class<T> customEventClass, String thirdPartyId) /+3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has been successfully cached.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.

public static void /onRewardedVideoPlaybackError(Class<T> customEventClass, String thirdPartyId, MoPubErrorCode errorCode) /+3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has failed to play.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.
    • errorCode: Contains an error constant with an error message explaining the failure.

public static void /onRewardedVideoStarted(Class<T> customEventClass, String thirdPartyId)/ +3.5.0

  • Description: Notifies the MoPub SDK when the rewarded video has begun to play.

  • Parameters:

    • customEventClass: The Class of the third-party custom event object.
    • thirdPartyId: The ad ID of the third-party SDK. This may be an empty String if the SDK does not use ad IDs, zone IDs, or some other similar ID concept.

Last updated May 06, 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.)