GfpInterstitialAdManager

Manager class for handling interstitial ads. This class should be used instead of for interstitial ad implementation.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull adParam: AdParam)
Constructor for GfpInterstitialAdManager.

Properties

Link copied to clipboard
open var adParam: AdParam
Ad parameters for the current ad request

Functions

Link copied to clipboard
open fun destroy()
Destroys the interstitial ad manager and cleans up resources.
Link copied to clipboard
Gets the name of the ad provider after loading.
Link copied to clipboard
Gets the response information after loading the ad.
Link copied to clipboard
Checks if the ad has expired or been invalidated.
Link copied to clipboard
open fun isLoaded(): Boolean
Checks if the ad is loaded and ready to be shown.
Link copied to clipboard
open fun loadAd()
Loads an interstitial ad.
Link copied to clipboard
Sets the listener for interstitial ad events.
Link copied to clipboard
open fun setTimeoutMillis(timeoutMillis: Long)
Sets the timeout duration for ad loading.
Link copied to clipboard
open fun showAd(@NonNull activity: Activity): Boolean
Shows the loaded interstitial ad.