remember Interstitial Ad
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Optional CustomTargeting parameters for ad targeting.
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.
Optional CustomTargeting parameters for ad targeting.
Composable function to remember an interstitial ad.
This function creates and manages an InterstitialAdHandler instance, automatically loading an ad when the state is AdState.DISMISSED or AdState.NONE.
Return
A MutableState holding the InterstitialAdHandler. You can use this to control and observe the ad's state (e.g., to show the ad).
Parameters
The ad unit ID for the interstitial ad. Defaults to AdUnitId.INTERSTITIAL_DEFAULT.
A callback function invoked when the ad is successfully loaded.
A callback function invoked when ad loading fails, providing the Exception that occurred.