CustomEventInterstitialListener

public interface CustomEventInterstitialListener

Events in this interface contain code specific to the ad’s lifecycle events.

Public Methods

pubic void /onInterstitialClicked()

  • Description: Notifies the MoPub SDK when a user clicks on an interstitial ad.

  • Parameters: None.

pubic void /onInterstitialDismissed()

  • Description: Notifies the MoPub SDK when an interstitial ad has been closed to notify the MoPub SDK.

  • Parameters: None.

pubic void /onInterstitialFailed(MoPubErrorCode errorCode)

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

  • Parameters:

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

pubic void /onInterstitialImpression()

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

  • Parameters: None.

pubic void /onInterstitialLoaded()

  • Description: Notifies the MoPub SDK when the interstitial ad has been cached.

  • Parameters: None.

pubic void /onInterstitialShown()

  • Description: Notifies the MoPub SDK when the interstitial ad has been displayed.

  • Parameters: None.

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