load

actual fun load(adUnitId: String, onLoad: () -> Unit, onFailure: (Exception) -> Unit)
expect fun load(adUnitId: String = AdUnitId.INTERSTITIAL_DEFAULT, onLoad: () -> Unit, onFailure: (Exception) -> Unit)

Loads an Interstitial Ad. Note: Make all calls to the Mobile Ads SDK on the main thread.

To load an interstitial ad, call InterstitialAdHandler.load method and pass in an AdUnitId as a String to receive the loaded ad, the onLoad callback, and any possible Exception from the onFailure callback.

Parameters

adUnitId

Your Interstitial Ad AdUnitId String from AdMob

onLoad

Callback after the ad loads

onFailure

Callback sharing the Exception when the ad fail to load

See also

actual fun load(adUnitId: String, onLoad: () -> Unit, onFailure: (Exception) -> Unit)