public interface AppLovinAdService
An instance of this class can be obtained from an AppLovinSdk instance via getAdService().
| Modifier and Type | Method and Description |
|---|---|
void |
addAdUpdateListener(AppLovinAdUpdateListener adListener)
Deprecated.
Listening to ad updates has been deprecated. The
AppLovinAdView class for banners, leaderboards, and mrecs no longer automatically refresh contents by itself.
You must explicitly call AppLovinAdView.loadNextAd() or AppLovinAdView.renderAd(AppLovinAd). This method will be removed in a future SDK version. |
void |
addAdUpdateListener(AppLovinAdUpdateListener adListener,
AppLovinAdSize adSize)
Deprecated.
Listening to ad updates has been deprecated. The
AppLovinAdView class for banners, leaderboards, and mrecs no longer automatically refresh contents by itself.
You must explicitly call AppLovinAdView.loadNextAd() or AppLovinAdView.renderAd(AppLovinAd). This method will be removed in a future SDK version. |
java.lang.String |
getBidToken()
Generates a token used for advanced header bidding.
|
boolean |
hasPreloadedAd(AppLovinAdSize adSize)
Deprecated.
Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use
loadNextAd(AppLovinAdSize, AppLovinAdLoadListener) to load ads to display. |
boolean |
hasPreloadedAdForZoneId(java.lang.String zoneId)
Deprecated.
Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use
loadNextAdForZoneId(String, AppLovinAdLoadListener) to load ads to display. |
void |
loadNextAd(AppLovinAdSize adSize,
AppLovinAdLoadListener callback)
Fetch a new ad, of a given size, notifying a supplied listener on completion.
|
void |
loadNextAdForAdToken(java.lang.String adToken,
AppLovinAdLoadListener callback)
Fetch a new ad for the given ad token.
|
void |
loadNextAdForZoneId(java.lang.String zoneId,
AppLovinAdLoadListener callback)
Fetch a new ad, for a given zone, notifying a supplied listener on completion.
|
void |
loadNextAdForZoneIds(java.util.List<java.lang.String> zoneIds,
AppLovinAdLoadListener callback)
Fetch a new ad for any of the provided zone ids.
|
void |
preloadAd(AppLovinAdSize adSize)
Deprecated.
Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use
loadNextAd(AppLovinAdSize, AppLovinAdLoadListener) to load ads to display. |
void |
preloadAdForZoneId(java.lang.String zoneId)
Deprecated.
Manually preloading ads in the background has been deprecated and will be removed in a future SDK version. Please use
loadNextAdForZoneId(String, AppLovinAdLoadListener) to load ads to display. |
void |
removeAdUpdateListener(AppLovinAdUpdateListener adListener,
AppLovinAdSize adSize)
Deprecated.
Listening to ad updates has been deprecated. The
AppLovinAdView class for banners, leaderboards, and mrecs no longer automatically refresh contents by itself.
You must explicitly call AppLovinAdView.loadNextAd() or AppLovinAdView.renderAd(AppLovinAd). This method will be removed in a future SDK version. |
void loadNextAd(AppLovinAdSize adSize, AppLovinAdLoadListener callback)
adSize - Size of an ad to load. Must not be null.callback - A callback to notify of the fact that the ad is loaded. Must not be null. A reference to the callback will be persisted until the ad is loaded.void loadNextAdForZoneId(java.lang.String zoneId,
AppLovinAdLoadListener callback)
zoneId - The zone to load an ad for. Must not be null.callback - A callback to notify of the fact that the ad is loaded.java.lang.String getBidToken()
void loadNextAdForAdToken(java.lang.String adToken,
AppLovinAdLoadListener callback)
Please note: this method is designed to be called by SDK mediation providers. Please use
loadNextAdForZoneId(String, AppLovinAdLoadListener) for regular integrations.
adToken - Ad token returned from AppLovin S2S API. Must not be null.callback - A callback to notify that the ad has been loaded. Must not be null.void loadNextAdForZoneIds(java.util.List<java.lang.String> zoneIds,
AppLovinAdLoadListener callback)
Please note: this method is designed to be called by SDK mediation providers. Please use
loadNextAdForZoneId(String, AppLovinAdLoadListener) for regular integrations.
zoneIds - A list of zone identifiers for which an ad should be loaded. Must not be null.callback - A callback to notify that the ad has been loaded. Must not be null.@Deprecated void preloadAd(AppLovinAdSize adSize)
loadNextAd(AppLovinAdSize, AppLovinAdLoadListener) to load ads to display.@Deprecated void preloadAdForZoneId(java.lang.String zoneId)
loadNextAdForZoneId(String, AppLovinAdLoadListener) to load ads to display.@Deprecated boolean hasPreloadedAd(AppLovinAdSize adSize)
loadNextAd(AppLovinAdSize, AppLovinAdLoadListener) to load ads to display.@Deprecated boolean hasPreloadedAdForZoneId(java.lang.String zoneId)
loadNextAdForZoneId(String, AppLovinAdLoadListener) to load ads to display.@Deprecated
void addAdUpdateListener(AppLovinAdUpdateListener adListener,
AppLovinAdSize adSize)
AppLovinAdView class for banners, leaderboards, and mrecs no longer automatically refresh contents by itself.
You must explicitly call AppLovinAdView.loadNextAd() or AppLovinAdView.renderAd(AppLovinAd). This method will be removed in a future SDK version.@Deprecated void addAdUpdateListener(AppLovinAdUpdateListener adListener)
AppLovinAdView class for banners, leaderboards, and mrecs no longer automatically refresh contents by itself.
You must explicitly call AppLovinAdView.loadNextAd() or AppLovinAdView.renderAd(AppLovinAd). This method will be removed in a future SDK version.@Deprecated
void removeAdUpdateListener(AppLovinAdUpdateListener adListener,
AppLovinAdSize adSize)
AppLovinAdView class for banners, leaderboards, and mrecs no longer automatically refresh contents by itself.
You must explicitly call AppLovinAdView.loadNextAd() or AppLovinAdView.renderAd(AppLovinAd). This method will be removed in a future SDK version.