Package com.my.target.mediation
Interface MediationStandardAdAdapter
-
- All Superinterfaces:
MediationAdapter
- All Known Implementing Classes:
MyTargetStandardAdAdapter
public interface MediationStandardAdAdapter extends MediationAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMediationStandardAdAdapter.MediationStandardAdListener
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidload(MediationAdConfig mediationAdConfig, MyTargetView.AdSize adSize, MediationStandardAdAdapter.MediationStandardAdListener listener, android.content.Context context)Will be called when mediation choose this adapter for loading mediation.-
Methods inherited from interface com.my.target.mediation.MediationAdapter
destroy
-
-
-
-
Method Detail
-
load
void load(@NonNull MediationAdConfig mediationAdConfig, @NonNull MyTargetView.AdSize adSize, @NonNull MediationStandardAdAdapter.MediationStandardAdListener 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 calledMediationStandardAdAdapter.MediationStandardAdListener.onLoad(View, MediationStandardAdAdapter)in case of failed loading should be calledMediationStandardAdAdapter.MediationStandardAdListener.onNoAd(IAdLoadingError, MediationStandardAdAdapter)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 mediationadSize- banner sizelistener- main mediation listenercontext- app context- See Also:
MediationAdConfig,MyTargetView.AdSize
-
-