public interface MediationNativeAdAdapter extends MediationAdapter
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MediationNativeAdAdapter.MediationNativeAdListener |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getMediaView(android.content.Context context)
Must return view for displaying media view (large picture or video) for correct
implementation of Native Ads and tracking.
|
void |
load(MediationNativeAdConfig mediationAdConfig,
MediationNativeAdAdapter.MediationNativeAdListener listener,
android.content.Context context)
Will be called when mediation choose this adapter for loading mediation.
|
void |
registerView(android.view.View view,
java.util.List<android.view.View> clickableViews,
int adChoicesPlacement)
Will be called when view becomes ready to be shown.
|
void |
unregisterView()
Will be called when view appears invisible and unused.
|
destroyvoid load(@NonNull
MediationNativeAdConfig mediationAdConfig,
@NonNull
MediationNativeAdAdapter.MediationNativeAdListener listener,
@NonNull
android.content.Context context)
NativePromoBanner from received assets and
then should be called MediationNativeAdAdapter.MediationNativeAdListener.onLoad(NativePromoBanner, MediationNativeAdAdapter)
in case of failed loading should be called MediationNativeAdAdapter.MediationNativeAdListener.onNoAd(String, MediationNativeAdAdapter)
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.mediationAdConfig - contains main configuration for mediationlistener - main mediation listenercontext - app contextMediationNativeAdConfigvoid registerView(@NonNull
android.view.View view,
@Nullable
java.util.List<android.view.View> clickableViews,
int adChoicesPlacement)
view - view to be registeredclickableViews - optional views want to be clickableadChoicesPlacement - placement of AdChoices icon. Possible values in
AdChoicesPlacementvoid unregisterView()
@Nullable
android.view.View getMediaView(@NonNull
android.content.Context context)
context - app context