MediationAdapter

public interfaceMediationAdapterimplementsMediationExtrasReceiver
Known Indirect Subclasses

This interface is deprecated.
UseAdapter instead.

Adapter for third party ad networks.

This class is the common interface ofMediationBannerAdapter, MediationInterstitialAdapter, andMediationNativeAdapter and it defines common methods. There is no reason to implement this interface directly. Instead, adapters should implementMediationBannerAdapter, MediationInterstitialAdapter and/orMediationNativeAdapter.

Public Method Summary

abstract void
onDestroy()
Tears down the adapter control.
abstract void
onPause()
Called when the application callsonPauseon theAdView.
abstract void
onResume()
Called when the application callsonResumeon theAdView.

Public Methods

public abstract voidonDestroy()

Tears down the adapter control.

This is called at the end of the mediator's life cycle. The adapter is expected to release any resources and shut down. After this method is called, any subsequent calls to any other method on this adapter may throw anIllegalStateException.

This method is not guaranteed to be called. There are a number of reasons that this method can be skipped, such as a force close of the application.

public abstract voidonPause()

Called when the application callsonPauseon theAdView.The adapter is expected to pause any processing associated with the ad being shown.

public abstract voidonResume()

Called when the application callsonResumeon theAdView.The adapter is expected to resume any processing associated with the ad being shown.