com.applovin.mediation.AppLovinMediationAdapter |
This is an interface that defines a mediation adaptor. The adaptor should wrap a third-party ad SDK will be used by AppLovin to initiate ad loading and displaying.
Created by basil on 12/1/16.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
getVersion()
Get the current version of the third-party SDK
| ||||||||||
abstract void |
initialize(AppLovinMediationAdapterConfig configuration, AppLovinSdk sdk, Activity activity)
Initialize the adapter.
| ||||||||||
abstract boolean |
isReady()
Checks if this adapter is ready to be used.
| ||||||||||
abstract void |
loadIncentivizedAd(AppLovinMediationAdapterConfig configuration, Context context, AppLovinMediationLoadListener loadListener)
Schedule loading of the next incentivized ad.
| ||||||||||
abstract void |
loadInterstitialAd(AppLovinMediationAdapterConfig configuration, Context context, AppLovinMediationLoadListener loadListener)
Schedule loading of the next interstitial ad.
| ||||||||||
abstract void |
prepareIncentivizedAd(AppLovinMediationAdapterConfig configuration, Context context)
Prepare an incentivized ad that could be loaded later via the
loadIncentivizedAd() method. | ||||||||||
abstract void |
prepareInterstitialAd(AppLovinMediationAdapterConfig configuration, Context context)
Prepare an interstitial ad that could be loaded later via the
loadInterstitialAd() method. | ||||||||||
abstract void |
processIncentivizedAdLoadTimeout()
This method is invoked when incentivized ad load was timed-out by the AppLovin SDK
| ||||||||||
abstract void |
processInterstitialAdLoadTimeout()
This method is invoked when interstitial ad load was timed-out by the AppLovin SDK
| ||||||||||
abstract void |
showIncentivizedAd(AppLovinMediatedAdInfo ad, AppLovinMediationAdapterConfig configuration, String placement, Activity activity, AppLovinMediationDisplayListener displayListener)
Show a pre-loaded incentivized ad
| ||||||||||
abstract void |
showInterstitialAd(AppLovinMediatedAdInfo adInfo, AppLovinMediationAdapterConfig configuration, String placement, Activity activity, AppLovinMediationDisplayListener displayListener)
Show a pre-loaded interstitial adInfo
|
Get the current version of the third-party SDK
null
if none is available
Initialize the adapter. This method is guaranteed to be called exactly once before any other methods are invoked.
configuration | Configuration of the current mediation adapter. Guaranteed not to be null. The last known configuration is passed on application re-initialization. |
---|---|
sdk | AppLovin SDK that will be used for this adapter. Guaranteed not to be null. |
activity | Application's root activity. May be null. |
Exception | in case initialization fails. The adapter will be marked disabled in this case. |
---|
Checks if this adapter is ready to be used. This function is guaranteed to be called after initialize was called.
true
If the adapter is ready to be used for fetching ads.
Schedule loading of the next incentivized ad.
configuration | Configuration of the current mediation adapter. May be null. |
---|---|
context | Application context. Guaranteed not to be null. |
loadListener | Listener to be notified when ad was loaded (or failed to load). May be null. |
Schedule loading of the next interstitial ad.
configuration | Configuration of the current mediation adapter. May be null. |
---|---|
context | Application context. Guaranteed not to be null. |
loadListener | Listener to be notified when ad was loaded (or failed to load). May be null. |
Prepare an incentivized ad that could be loaded later via the loadIncentivizedAd()
method.
configuration | Configuration of the current mediation adapter. Guaranteed not to be null. |
---|---|
context | Application context. Guaranteed not to be null. |
Prepare an interstitial ad that could be loaded later via the loadInterstitialAd()
method.
configuration | Configuration of the current mediation adapter. Guaranteed not to be null. |
---|---|
context | Application context. Guaranteed not to be null. |
This method is invoked when incentivized ad load was timed-out by the AppLovin SDK
This method is invoked when interstitial ad load was timed-out by the AppLovin SDK
Show a pre-loaded incentivized ad
ad | Loaded incentivized ad. This is the information that was passed to the @link{AppLovinMediationLoadListener}'s adLoaded> method. May be null. |
---|---|
configuration | Configuration of the current mediation adapter. Guaranteed not to be null. |
placement | Placement over which the incentivized should be shown. May be null. |
activity | Currently active activity. Guaranteed not to be null. |
displayListener | Listener that should be notified when ad was |
Show a pre-loaded interstitial adInfo
adInfo | Loaded interstitial. This is the information that was passed to the @link{AppLovinMediationLoadListener}'s adLoaded> method. May be null. |
---|---|
configuration | Configuration of the current mediation adapter. May be null. |
placement | Placement over which the interstitial should be shown. May be null. |
activity | Currently active activity. Guaranteed not to be null. |