Package com.my.target.mediation
Interface MediationStandardAdAdapter
-
- All Implemented Interfaces:
-
com.my.target.mediation.MediationAdapter
public interface MediationStandardAdAdapter implements MediationAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceMediationStandardAdAdapter.MediationStandardAdListener
-
Method Summary
Modifier and Type Method Description abstract voidload(@NonNull() MediationAdConfig mediationAdConfig, @NonNull() MyTargetView.AdSize adSize, @NonNull() MediationStandardAdAdapter.MediationStandardAdListener listener, @NonNull() Context context)Will be called when mediation choose this adapter for loading mediation. -
-
Method Detail
-
load
abstract void load(@NonNull() MediationAdConfig mediationAdConfig, @NonNull() MyTargetView.AdSize adSize, @NonNull() MediationStandardAdAdapter.MediationStandardAdListener listener, @NonNull() 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 called MediationStandardAdAdapter.MediationStandardAdListener.onLoad(View, MediationStandardAdAdapter) in case of failed loading should be called MediationStandardAdAdapter.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
-
-
-
-