MoPubRewardedVideoListener /3.5.0

public interface MoPubRewardedVideoListener

Listener for rewarded video events. Implementers of this interface will receive events for all rewarded video ad units in the app.

Public Methods

public void /onRewardedVideoClicked(String adUnitId) /+4.14.0

  • Description: Called when a rewarded video is clicked.

  • Parameters:

    • adUnitId: A String containing the current ad unit ID associated with this callback

public void /onRewardedVideoClosed(String adUnitId) /+3.5.0

  • Description: Called when a rewarded video is closed. At this point your application should resume.

  • Parameters:

    • adUnitId: A String containing the current ad unit ID associated with this callback

public void /onRewardedVideoCompleted(Set<String> adUnitIds, MoPubReward reward) /+3.5.0

  • Description: Called when a rewarded video is completed and the user should be rewarded.

  • Parameters:

    • adUnitIds: A String containing the current ad unit ID associated with this callback
    • reward: The reward object associated with the current video

public void /onRewardedVideoLoadFailure(String adUnitId, MoPubErrorCode errorCode) /+3.5.0

  • Description: Called when a video fails to load for the given ad unit id. The provided error code will give more insight into the reason for the failure to load.

  • Parameters:

    • adUnitId: A String containing the current ad unit ID associated with this callback
    • errorCode: An error code selected by the MoPub SDK or mediation adapters for the failurse to load the current rewarded video

public void /onRewardedVideoLoadSuccess(String adUnitId) /+3.5.0

public void /onRewardedVideoPlaybackError(String adUnitId, MoPubErrorCode errorCode) /+3.5.0

  • Description: Called when there is an error during video playback.

  • Parameters:

    • adUnitId: A String containing the current ad unit ID associated with this callback
    • errorCode: An error code selected by the MoPub SDK or mediation adapters for the failurse to load the current rewarded video

public void /onRewardedVideoStarted(String adUnitId) /+3.5.0

  • Description: Called when a rewarded video starts playing.

  • Parameters:

    • adUnitId: A String containing the current ad unit ID associated with this callback

Last updated October 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.)