Rewarded Interstitial Ad
Interface for rewarded interstitial ads, a type of full-screen ad that provides a reward to the user after they interact with it.
General usage of rewarded insterstitials:
Moloco.createRewardedInterstitial 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 rewarded interstitial ad instance via Moloco.createRewardedInterstitial()
Samples
com.moloco.sdk.publisher.RewardedInterstitialAdSampleProperties
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.