Interstitials /

API for Interstitials.

Public Methods

public static void /RequestInterstitialAd(string adUnitId, string keywords, string userDataKeywords) /+5.0.0

  • Description: Requests an interstitial ad with the given (optional) keywords to be loaded. The two possible resulting events are MoPubManager.OnInterstitialLoadedEvent and MoPubManager.OnInterstitialFailedEvent. If a user is in a GDPR region and MoPub doesn’t obtain consent from the user, keywords will be sent to the server, but userDataKeywords will be excluded. Refer to CanCollectPersonalInfo.

  • Parameters:

    • adUnitId: A String with the ad unit ID.
    • keywords: An optional comma-separated String with the desired keywords for this ad. Default value is an empty String.
    • userDataKeywords: An optional comma-separated String with user data for this ad. Default value is an empty String.

public static void /ShowInterstitialAd(string adUnitId) /+5.0.0

  • Description: If the interstitial ad has loaded, this will take over the screen and show the ad. MoPubManager.OnInterstitialLoadedEvent must have been triggered already.

  • Parameters:

    • adUnitId: A String with the ad unit ID.

public static void /IsInterstitialReady(string adUnitId) /+5.0.0

  • Description: Whether the interstitial ad is ready to be shown or not.

  • Parameters:

    • adUnitId: A String with the ad unit ID.

public static void /DestroyInterstitialAd(string adUnitId) /+5.0.0

  • Description: Destroys an already-loaded interstitial ad.

  • Parameters:

    • adUnitId: A String with the ad unit ID.

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