| com.applovin.sdk.AppLovinAdService |
This class is responsible for loading and displaying advertisements.
An instance of this class can be obtained from an AppLovinSdk instance via getAdService().
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
addAdUpdateListener(AppLovinAdUpdateListener adListener, AppLovinAdSize adSize) instead.
| |||||||||||
Ad a listener that will be updated every time a new ad is loaded.
| |||||||||||
Check whether an ad of a given size is currently preloaded and available for display.
| |||||||||||
Fetch a new ad, of a given size, notifying a supplied listener on completion.
| |||||||||||
Pre-load an ad manually, if there is not already an ad of the given size cached.
| |||||||||||
Remove a listener that was notified every time an ad was loaded.
| |||||||||||
This method is deprecated.
Use addAdUpdateListener(AppLovinAdUpdateListener adListener, AppLovinAdSize adSize) instead.
Overloaded method for addAdUpdateListener(AppLovinAdUpdateListener, AppLovinAdSize), where ad size is defaulted to BANNER.
| adListener | A listener for the new ads. Must not be null. |
|---|
Ad a listener that will be updated every time a new ad is loaded. Each listener only listens to ads that are of the given size.
| adListener | A listener for the new ads. Must not be null. |
|---|---|
| adSize | The size of the ad. |
Check whether an ad of a given size is currently preloaded and available for display.
| adSize | Size of the ad to check pre-load state for. |
|---|
Fetch a new ad, of a given size, notifying a supplied listener on completion.
| 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. |
Pre-load an ad manually, if there is not already an ad of the given size cached.
| adSize | Size of the ad to pre-load. |
|---|
Remove a listener that was notified every time an ad was loaded. The listener must have been added through addAdUpdateListener().
| adListener | Listener to remove. |
|---|---|
| adSize | The size of the ad for which this listener should stop receiving notifications. |