remember Native Ad
fun rememberNativeAd(activity: Any?, adUnitId: String = AdUnitId.NATIVE_DEFAULT, onLoad: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}): MutableState<NativeAdHandler>
Remembers a NativeAdHandler across compositions.
Return
Parameters
activity
the current Activity (only needed for Android Impl)
ad Unit Id
Your AdMob AdUnitId String
on Load
Lambda expression that executes after the NativeAdHandler has fully loaded
on Failure
Lambda expression that executes after the ad fails to load or redirect
on Dismissed
Lambda that executes when the user closes the ad
on Shown
Lambda expression that executes after the ad is presented
on Impression
Lambda expression that executes after the user has seen the ad
on Click
Lambda expression that executes after the user clicks the ad