loadAd

open fun loadAd()

Loads an ad using the current ad call listener.

You cannot call loadAd() after destroy() to reuse an already created GfpAdLoader instance. To reuse it, call loadAd() only without destroy().

When loadAd() is called from an already created GfpAdLoader instance, the ad request is performed after the following preprocessing.

1. if loading an ad is in progress, cancel the ad request. 2. if an ad has been loaded, clean up the preloaded ad.


open fun loadAd(@NonNull adParam: AdParam)

Loads an ad based on the given ad parameters.

When loadAd() is called from an already created GfpAdLoader instance, the ad request is performed after the following preprocessing.

1. if loading an ad is in progress, cancel the ad request. 2. if an ad has been loaded, clean up the preloaded ad.

Parameters

adParam

The ad parameters for loading the ad