com.google.ads.mediation
Interface MediationAdapter<ADDITIONAL_PARAMETERS,SERVER_PARAMETERS extends MediationServerParameters>

Type Parameters:
ADDITIONAL_PARAMETERS - This is a class that can be used by publishers to pass any additional parameters that the ad network requires.
SERVER_PARAMETERS - This is a class that holds any additional options that the publisher can define in the mediation UI, passed to the ad network (IDs, global configurations, etc.)
All Known Subinterfaces:
MediationBannerAdapter<ADDITIONAL_PARAMETERS,SERVER_PARAMETERS>, MediationInterstitialAdapter<ADDITIONAL_PARAMETERS,SERVER_PARAMETERS>
All Known Implementing Classes:
AdMobAdapter, CustomEventAdapter

public interface MediationAdapter<ADDITIONAL_PARAMETERS,SERVER_PARAMETERS extends MediationServerParameters>

Adapter for third party ad networks.

This class is the parent of MediationBannerAdapter and MediationInterstitialAdapter and defines common methods. There is no reason to implement this interface directly. Instead, adapters should implement MediationBannerAdapter and MediationInterstitialAdapter.


Method Summary
 void destroy()
          Tears down the adapter control.
 Class<ADDITIONAL_PARAMETERS> getAdditionalParametersType()
          Returns the class that provides additional parameters to this adapter.
 Class<SERVER_PARAMETERS> getServerParametersType()
          Returns the class that provides parameters set by the mediation backend to this adapter.
 

Method Detail

destroy

void destroy()
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 an IllegalStateException.

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.


getAdditionalParametersType

Class<ADDITIONAL_PARAMETERS> getAdditionalParametersType()
Returns the class that provides additional parameters to this adapter. This method may return null if there is no additional parameters class.


getServerParametersType

Class<SERVER_PARAMETERS> getServerParametersType()
Returns the class that provides parameters set by the mediation backend to this adapter. This method may return null if there is no server parameters class.