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.)public interface MediationAdapter<ADDITIONAL_PARAMETERS,SERVER_PARAMETERS extends MediationServerParameters>
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
.
Modifier and Type | Method and Description |
---|---|
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.
|
void destroy()
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.
Class<ADDITIONAL_PARAMETERS> getAdditionalParametersType()
Class<SERVER_PARAMETERS> getServerParametersType()