RewardedInterstitialAd

fun RewardedInterstitialAd(adUnitId: String = AdUnitId.REWARDED_INTERSTITIAL_DEFAULT, onRewardEarned: () -> Unit, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onLoad: () -> Unit = {}, customTargeting: CustomTargeting? = null)

Loads and displays a Rewarded Interstitial Ad using a Composable.

Parameters

adUnitId

Your AdMob AdUnitId String

onRewardEarned

Lambda that executes when the user has earned an ad-related reward

onDismissed

Lambda that executes when the user closes the ad

onShown

Lambda expression that executes after the ad is presented

onImpression

Lambda expression that executes after the user has seen the ad

onClick

Lambda expression that executes after the user clicks the ad

onFailure

Lambda expression that executes after the ad fails to load or redirect

onLoad

Lambda expression that executes after the InterstitialAdHandler has fully loaded

customTargeting

Optional CustomTargeting parameters for ad targeting

See also


fun RewardedInterstitialAd(loadedAd: RewardedInterstitialAdHandler, onRewardEarned: () -> Unit, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {})

Displays a pre-loaded Rewarded Interstitial Ad using a Composable.

Parameters

loadedAd

an RewardedInterstitialAdHandler pre-loaded before the call

onRewardEarned

Lambda that executes when the user has earned an ad-related reward

onDismissed

Lambda that executes when the user closes the ad

onShown

Lambda expression that executes after the ad is presented

onImpression

Lambda expression that executes after the user has seen the ad

onClick

Lambda expression that executes after the user clicks the ad

onFailure

Lambda expression that executes after the ad fails to load or redirect

See also