BannerAdListener

public static interface MoPubView.BannerAdListener

A listener interface publishers can implement to be notified of banner ad lifecycle events.

Public Methods

public void /onBannerClicked(MoPubView banner)

  • Description: The callback that is fired when the current banner ad has been clicked

  • Parameters:

    • banner: The current banner ad object

public void /onBannerCollapsed(MoPubView banner)

  • Description: The callback that is fired when the current banner ad has collapsed

  • Parameters:

    • banner: The current banner ad object

public void /onBannerExpanded(MoPubView banner)

  • Description: The callback that is fired when the current banner ad has expanded

  • Parameters:

    • banner: The current banner ad object

public void /onBannerFailed(MoPubView banner, MoPubErrorCode errorCode)

  • Description: The callback that is fired when the current banner ad has failed to load

  • Parameters:

    • banner: The current banner ad object
    • errorCode: An error code selected by the MoPub SDK or mediation adapters associated with the failures to load the current banner

public void / onBannerLoaded(MoPubView banner)

  • Description: The callback that is fired when the current banner ad has been loaded

  • Parameters:

    • banner: The current banner ad object

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.)