public interface

AppLovinNativeAdService

com.applovin.nativeAds.AppLovinNativeAdService

Class Overview

Service which allows loading and pre-caching of native ads.

Summary

Public Methods
abstract boolean hasPreloadedAdForZoneId(String zoneId)
This method is deprecated. Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) to load ads.
abstract void loadNativeAds(int numAdsToLoad, String zoneId, AppLovinNativeAdLoadListener listener)
This method is deprecated. Loading multiple native ads has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) instead.
abstract void loadNativeAds(int numAdsToLoad, AppLovinNativeAdLoadListener listener)
This method is deprecated. Loading multiple native ads has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) instead.
abstract void loadNextAd(AppLovinNativeAdLoadListener callback)
Load a native ad asynchronously.
abstract void precacheResources(AppLovinNativeAd ad, AppLovinNativeAdPrecacheListener listener)
Pre-cache image and video resources of a native ad.
abstract void preloadAdForZoneId(String zoneId)
This method is deprecated. Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) to load ads.

Public Methods

public abstract boolean hasPreloadedAdForZoneId (String zoneId)

This method is deprecated.
Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) to load ads.

public abstract void loadNativeAds (int numAdsToLoad, String zoneId, AppLovinNativeAdLoadListener listener)

This method is deprecated.
Loading multiple native ads has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) instead.

public abstract void loadNativeAds (int numAdsToLoad, AppLovinNativeAdLoadListener listener)

This method is deprecated.
Loading multiple native ads has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) instead.

public abstract void loadNextAd (AppLovinNativeAdLoadListener callback)

Load a native ad asynchronously.

Parameters
callback The native ad load callback to notify upon completion.

public abstract void precacheResources (AppLovinNativeAd ad, AppLovinNativeAdPrecacheListener listener)

Pre-cache image and video resources of a native ad.

Parameters
ad The native ad whose resources should be cached.
listener The listener to notify upon completion.

public abstract void preloadAdForZoneId (String zoneId)

This method is deprecated.
Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use loadNextAd(AppLovinNativeAdLoadListener) to load ads.