public final class MyTargetRewardedAdAdapter extends java.lang.Object implements MediationRewardedAdAdapter
MediationRewardedAdAdapter.MediationRewardedAdListener| Constructor and Description |
|---|
MyTargetRewardedAdAdapter() |
| 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,
MediationRewardedAdAdapter.MediationRewardedAdListener 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
MediationRewardedAdAdapter.MediationRewardedAdListener listener,
@NonNull
android.content.Context context)
MediationRewardedAdAdapterMediationRewardedAdAdapter.MediationRewardedAdListener.onLoad(MediationRewardedAdAdapter)
in case of failed loading should be called
MediationRewardedAdAdapter.MediationRewardedAdListener.onNoAd(String, MediationRewardedAdAdapter)
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 MediationRewardedAdAdaptermediationAdConfig - contains main configuration for mediationlistener - main mediation listenercontext - app contextMediationAdConfigpublic void show(@NonNull
android.content.Context context)
MediationRewardedAdAdapterMediationRewardedAdAdapter.MediationRewardedAdListener.onDisplay(MediationRewardedAdAdapter)
should be calledshow in interface MediationRewardedAdAdaptercontext - app contextpublic void dismiss()
MediationRewardedAdAdapterMediationRewardedAdAdapter.MediationRewardedAdListener.onDismiss(MediationRewardedAdAdapter)
should be calleddismiss in interface MediationRewardedAdAdapterpublic void destroy()
MediationAdapterdestroy in interface MediationAdapter