miniapp / com.rakuten.tech.mobile.miniapp.ads / AdMobDisplayer19
AdMobDisplayer19
class AdMobDisplayer19 :
MiniAppAdDisplayer
, CoroutineScope
The ad displayer.
Parameters
context
- should use the same activity context for #MiniAppDisplay.getMiniAppView.
Support Interstitial, Reward ads.
Constructors
<init> | The ad displayer.AdMobDisplayer19(context: Activity ) |
Properties
coroutineContext | val coroutineContext: CoroutineContext |
Functions
loadInterstitialAd | Load the interstitial ad when it is ready.fun loadInterstitialAd(adUnitId: String , onLoaded: () -> Unit , onFailed: ( String ) -> Unit ): Unit |
loadRewardedAd | Load the rewarded ad when it is ready.fun loadRewardedAd(adUnitId: String , onLoaded: () -> Unit , onFailed: ( String ) -> Unit ): Unit |
showInterstitialAd | Show the interstitial ad when it is already loaded.fun showInterstitialAd(adUnitId: String , onClosed: () -> Unit , onFailed: ( String ) -> Unit ): Unit |
showRewardedAd | Show the rewarded ad when it is already loaded.fun showRewardedAd(adUnitId: String , onClosed: (reward: Reward ?) -> Unit , onFailed: ( String ) -> Unit ): Unit |