Package com.my.target.mediation
Interface MediationStandardAdAdapter
- All Superinterfaces:
MediationAdapter
- All Known Implementing Classes:
MyTargetStandardAdAdapter
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionvoidload(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 Details
-
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:
-