com.applovin.nativeAds.AppLovinNativeAdService |
Service which allows loading and pre-caching of native ads.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
hasPreloadedAdForZoneId(String zoneId)
Check whether an ad for a given zone is pre-loaded and ready to be displayed.
| ||||||||||
abstract void |
loadNativeAds(int numAdsToLoad, String zoneId, AppLovinNativeAdLoadListener listener)
Load a batch of native ads, which are guaranteed not to repeat, asynchronously.
| ||||||||||
abstract void |
loadNativeAds(int numAdsToLoad, AppLovinNativeAdLoadListener listener)
Load a batch of native ads, which are guaranteed not to repeat, asynchronously.
| ||||||||||
abstract void |
precacheResources(AppLovinNativeAd ad, AppLovinNativeAdPrecacheListener listener)
Pre-cache image and video resources of a native ad.
| ||||||||||
abstract void |
preloadAdForZoneId(String zoneId)
Pre-load an ad for a given zone in the background, if one is not already available.
|
Check whether an ad for a given zone is pre-loaded and ready to be displayed.
zoneId | Id of the zone for the ad to check for. |
---|
Load a batch of native ads, which are guaranteed not to repeat, asynchronously.
numAdsToLoad | The number of native ads to load. |
---|---|
zoneId | The id of the zone to load the native ads for. |
listener | The listener to notify upon completion. |
Load a batch of native ads, which are guaranteed not to repeat, asynchronously.
numAdsToLoad | The number of native ads to load. |
---|---|
listener | The listener to notify upon completion. |
Pre-cache image and video resources of a native ad.
ad | The native ad whose resources should be cached. |
---|---|
listener | The listener to notify upon completion. |
Pre-load an ad for a given zone in the background, if one is not already available.
zoneId | Id of the zone for the ad to cache. |
---|