Interstitial Ad
Interface for interstitial ads, a type of full-screen ad.
General usage of insterstitials:
Moloco.createInterstitial() instance first
Fetch ortb bid response
load() bid response. AdLoad.Listener or isLoaded can be used for load status check
show() ad when needed. You can also provide an optional InterstitialAdShowListener.
Once ad is not needed anymore destroy() it to prevent memory leaks
Things to note:
In order to load an another ad, call load() again provided with a new bid response
load() call will force finish and hide the currently displaying ad. Therefore, if there's a need to implement preloading of multiple ads, consider creation of an additional interstitial ad instance via Moloco.createInterstitial()
Samples
com.moloco.sdk.publisher.InterstitialAdActivitySampleProperties
Functions
Loads the ad with the specified bidResponseJson and listener. If the ad is currently being displayed, the underlying ad object will be destroyed before loading a new one.
Shows the ad to the user.