public final class MyTargetInterstitialAdAdapter extends java.lang.Object implements MediationInterstitialAdAdapter
MediationInterstitialAdAdapter.MediationInterstitialAdListener| Constructor and Description |
|---|
MyTargetInterstitialAdAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys adapter and cleans resources.
|
void |
dismiss()
Will be called on attempt to dismiss the ad.
|
void |
load(MediationAdConfig mediationAdConfig,
MediationInterstitialAdAdapter.MediationInterstitialAdListener listener,
android.content.Context context)
Will be called when mediation choose this adapter for loading mediation.
|
void |
setSection(InterstitialAdSection section) |
void |
show(android.content.Context context)
Will be called on attempt to show.
|
public void setSection(@Nullable
InterstitialAdSection section)
public void load(@NonNull
MediationAdConfig mediationAdConfig,
@NonNull
MediationInterstitialAdAdapter.MediationInterstitialAdListener listener,
@NonNull
android.content.Context context)
MediationInterstitialAdAdapterMediationInterstitialAdAdapter.MediationInterstitialAdListener.onLoad(MediationInterstitialAdAdapter)
in case of failed loading should be called
MediationInterstitialAdAdapter.MediationInterstitialAdListener.onNoAd(String, MediationInterstitialAdAdapter)
with the reason of fail. If no callbacks will be called, adapter will be removed from loading
queue, and next adapter or no ad will be called.load in interface MediationInterstitialAdAdaptermediationAdConfig - contains main configuration for mediationlistener - main mediation listenercontext - app contextMediationAdConfigpublic void show(@NonNull
android.content.Context context)
MediationInterstitialAdAdapterMediationInterstitialAdAdapter.MediationInterstitialAdListener.onDisplay(MediationInterstitialAdAdapter)
should be calledshow in interface MediationInterstitialAdAdaptercontext - app contextpublic void dismiss()
MediationInterstitialAdAdapterMediationInterstitialAdAdapter.MediationInterstitialAdListener.onDismiss(MediationInterstitialAdAdapter)
should be calleddismiss in interface MediationInterstitialAdAdapterpublic void destroy()
MediationAdapterdestroy in interface MediationAdapter