public interface MediationNativeBannerAdAdapter extends MediationAdapter
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MediationNativeBannerAdAdapter.MediationNativeBannerAdListener |
| Modifier and Type | Method and Description |
|---|---|
android.view.View |
getIconView(android.content.Context context)
Must return view for displaying icon view for correct implementation of Native Ads and
tracking.
|
void |
load(MediationNativeBannerAdConfig mediationAdConfig,
MediationNativeBannerAdAdapter.MediationNativeBannerAdListener 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
MediationNativeBannerAdConfig mediationAdConfig,
@NonNull
MediationNativeBannerAdAdapter.MediationNativeBannerAdListener listener,
@NonNull
android.content.Context context)
com.my.target.core.models.banners.NativeAdBanner from received assets and
then should be called MediationNativeBannerAdAdapter.MediationNativeBannerAdListener.onLoad(NativeBanner, MediationNativeBannerAdAdapter)
in case of failed loading should be called MediationNativeBannerAdAdapter.MediationNativeBannerAdListener.onNoAd(String, MediationNativeBannerAdAdapter)
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 contextMediationNativeBannerAdConfigvoid 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 getIconView(@NonNull
android.content.Context context)
context - app context