Native Ad
A composable that loads and displays a native ad.
This function handles the entire lifecycle of a native ad, from loading it using rememberNativeAd to displaying it once it's in the AdState.READY state.
Parameters
The current Activity, required for the Android implementation.
The composable template used to render the native ad UI.
The ad unit ID for the native ad.
A callback invoked when the ad is dismissed.
A callback invoked when the ad is shown.
A callback invoked when an impression is recorded for the ad.
A callback invoked when the ad is clicked.
A callback invoked when the ad fails to load.
A callback invoked when the ad has successfully loaded.
A composable that displays a pre-loaded native ad from a NativeAdHandler.
This function should be used when you have already loaded a native ad and want to display it. It renders the ad data using the provided nativeAdTemplate.
Parameters
The NativeAdHandler containing the pre-loaded native ad.
The composable template used to render the native ad UI.
A composable that displays a native ad.
Parameters
the pre-loaded native ad
the composable that will be used to display the native ad
A composable that displays a native ad.
Parameters
the current Activity (only needed for Android Impl)
the composable that will be used to display the native ad
the ad unit ID for the native ad
a callback that will be invoked when the ad is dismissed
a callback that will be invoked when the ad is shown
a callback that will be invoked when an impression is recorded for the ad
a callback that will be invoked when the ad is clicked
a callback that will be invoked when the ad fails to load
a callback that will be invoked when the ad has loaded
A composable that displays a native ad.
Parameters
the pre-loaded native ad
the composable that will be used to display the native ad
A composable that displays a native ad.
Parameters
the current Activity (only needed for Android Impl)
the composable that will be used to display the native ad
the ad unit ID for the native ad
a callback that will be invoked when the ad is dismissed
a callback that will be invoked when the ad is shown
a callback that will be invoked when an impression is recorded for the ad
a callback that will be invoked when the ad is clicked
a callback that will be invoked when the ad fails to load
a callback that will be invoked when the ad has loaded