load
expect fun load(adUnitId: String = AdUnitId.BANNER_DEFAULT, adSize: AdSize = AdSize.FULL_BANNER, onLoad: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {})
Loads an Banner Ad. Note: Make all calls to the Mobile Ads SDK on the main thread.
To load an banner ad, call BannerAdHandler.load method and pass in an AdUnitId as a String and an AdSize to receive the loaded ad.
Parameters
ad Unit Id
Your Banner Ad AdUnitId String from AdMob
ad Size
Your Banner Ad AdSize, which defaults to AdSize.FULL_BANNER
on Load
Callback after the ad loads
on Failure
Callback with Exception when ad fails to display
on Dismissed
Callback when ad is dismissed
on Shown
Callback after ad is shown
on Impression
Callback after the ad makes an impression
on Click
Callback on ad click