load
Load an ad response instance cached through prefetch from disk, propagating adParam to the auto-prefetch ad call when autoPrefetchNext is enabled.
Note: adParam does not affect the served cached response itself (the response was filled at prefetch time); it only carries publisher targeting forward into the next prefetch.
Parameters
context
ad parameters used for the next prefetch. AdParam.adUnitId must be set.
ad cache type
callback for loading cached adCallResponse
whether to prefetch the next ad automatically after the current ad response is retrieved
callback for auto prefetching. Only used when autoPrefetchNext is true
Deprecated
Use load(context, adParam, ...) instead to propagate publisher targeting to the next prefetch.
Replace with
import com.naver.gfpsdk.AdParam
load(context, AdParam.Builder().setAdUnitId(adUnitId).build(), type, callback, autoPrefetchNext, prefetchCallback)Load an ad response instance cached through GfpAdCacheManager.prefetch from disk. All resources required to load the ad in that response are also cached on disk. You can load the ad directly using com.naver.gfpsdk.GfpAdLoader.loadAd with the returned com.naver.gfpsdk.internal.services.adcall.AdCallResponse.
Parameters
context
ad unit ID for ad request
callback for loading cached adCallResponse
whether to prefetch the next ad automatically after the current ad response is retrieved
callback for auto prefetching. Only used when autoPrefetchNext is true