Native Ad
fun NativeAd(activity: Any?, nativeAdTemplate: @Composable (NativeAdData) -> Unit, adUnitId: String = AdUnitId.NATIVE_DEFAULT, onDismissed: () -> Unit = {}, onShown: () -> Unit = {}, onImpression: () -> Unit = {}, onClick: () -> Unit = {}, onFailure: (Exception) -> Unit = {}, onLoad: () -> Unit = {})
A composable that displays a native ad.
Parameters
activity
the current Activity (only needed for Android Impl)
native Ad Template
the composable that will be used to display the native ad
ad Unit Id
the ad unit ID for the native ad
on Dismissed
a callback that will be invoked when the ad is dismissed
on Shown
a callback that will be invoked when the ad is shown
on Impression
a callback that will be invoked when an impression is recorded for the ad
on Click
a callback that will be invoked when the ad is clicked
on Failure
a callback that will be invoked when the ad fails to load
on Load
a callback that will be invoked when the ad has loaded
A composable that displays a native ad.
Parameters
loaded Ad
the pre-loaded native ad
native Ad Template
the composable that will be used to display the native ad