Package com.my.target.mediation
Interface MediationRewardedAdAdapter
-
- All Superinterfaces:
MediationAdapter
- All Known Implementing Classes:
MyTargetRewardedAdAdapter
public interface MediationRewardedAdAdapter extends MediationAdapter
Mediation adapter interface for Rewarded ad format. Every mediation adapter for this format should implement this for correct work.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMediationRewardedAdAdapter.MediationRewardedAdListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddismiss()Will be called on attempt to dismiss the ad.voidload(MediationAdConfig mediationAdConfig, MediationRewardedAdAdapter.MediationRewardedAdListener listener, android.content.Context context)Will be called when mediation choose this adapter for loading mediation.voidshow(android.content.Context context)Will be called on attempt to show.-
Methods inherited from interface com.my.target.mediation.MediationAdapter
destroy
-
-
-
-
Method Detail
-
load
void load(@NonNull MediationAdConfig mediationAdConfig, @NonNull MediationRewardedAdAdapter.MediationRewardedAdListener listener, @NonNull android.content.Context context)Will be called when mediation choose this adapter for loading mediation. All of initialization and loading logic should be implemented here. Then should be calledMediationRewardedAdAdapter.MediationRewardedAdListener.onLoad(MediationRewardedAdAdapter)in case of failed loading should be calledMediationRewardedAdAdapter.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.- Parameters:
mediationAdConfig- contains main configuration for mediationlistener- main mediation listenercontext- app context- See Also:
MediationAdConfig
-
show
void show(@NonNull android.content.Context context)Will be called on attempt to show. Rewarded ad should be displayed here. After successful displaying callbackMediationRewardedAdAdapter.MediationRewardedAdListener.onDisplay(MediationRewardedAdAdapter)should be called- Parameters:
context- app context
-
dismiss
void dismiss()
Will be called on attempt to dismiss the ad. Rewarded ad should be closed here. After closing callbackMediationRewardedAdAdapter.MediationRewardedAdListener.onDismiss(MediationRewardedAdAdapter)should be called
-
-