CustomEventBannerListener

public interface CustomEventBannerListener

An object returned for a MoPub banner ad.

Public Methods

public final void /onBannerClicked()

  • Description: Notifies the MoPub SDK when the user has clicked on the banner ad.

  • Parameters: None.

public final void /onBannerCollapsed()

  • Description: Notifies the MoPub SDK when the ad has collapsed (minimized).

  • Parameters: None.

public final void /onBannerExpanded()

  • Description: Notifies the MoPub SDK when the ad has expanded to fullscreen.

  • Parameters: None.

public final void /onBannerFailed(MoPubErrorCode errorCode)

  • Description: Notifies the MoPub SDK when there is an error loading the banner ad.

  • Parameters:

    • errorCode: Contains an error constant with an error message explaining the failure.

public final void /onBannerImpression()

  • Description: Notifies the MoPub SDK when an impression has occurred if the automatic impression and click tracking has been set to ‘false’ in setAutomaticImpressionAndClickTracking().

  • Parameters: None.

public final void /onBannerLoaded(View bannerView)

  • Description: Notifies the MoPub SDK when the banner ad has been loaded to notify the MoPub SDK.

  • Parameters:

    • bannerView: The view holding the current banner.

public final void /onLeaveApplication()

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