public static interface MediationNativeAdAdapter.MediationNativeAdListener
| Modifier and Type | Method and Description |
|---|---|
void |
onClick(MediationNativeAdAdapter adapter)
Must be called when ad view received click.
|
void |
onLoad(NativePromoBanner banner,
MediationNativeAdAdapter adapter)
Must be called when implemented ads network loads successfully inside
MediationNativeAdAdapter.load(MediationNativeAdConfig, MediationNativeAdListener, Context)
method. |
void |
onNoAd(java.lang.String reason,
MediationNativeAdAdapter adapter)
Must be called when implemented ads failed to load for some reason inside
MediationNativeAdAdapter.load(MediationNativeAdConfig, MediationNativeAdListener, Context)
method. |
void |
onShow(MediationNativeAdAdapter adapter)
Must be called when ad view showing / impression must be tracked.
|
void |
onVideoComplete(MediationNativeAdAdapter adapter)
If current ad contains video element, must be called when video completed playing
|
void |
onVideoPause(MediationNativeAdAdapter adapter)
If current ad contains video element, must be called when video paused
|
void |
onVideoPlay(MediationNativeAdAdapter adapter)
If current ad contains video element, must be called when video starts playing
|
void onLoad(@NonNull
NativePromoBanner banner,
@NonNull
MediationNativeAdAdapter adapter)
MediationNativeAdAdapter.load(MediationNativeAdConfig, MediationNativeAdListener, Context)
method.banner - banner should be created from assets, received from ad network. Use
NativePromoBanner.Builder for building itadapter - an instance of current adaptervoid onNoAd(@NonNull
java.lang.String reason,
@NonNull
MediationNativeAdAdapter adapter)
MediationNativeAdAdapter.load(MediationNativeAdConfig, MediationNativeAdListener, Context)
method.reason - a reason of fail to loadadapter - an instance of current adaptervoid onClick(@NonNull
MediationNativeAdAdapter adapter)
adapter - an instance of current adaptervoid onShow(@NonNull
MediationNativeAdAdapter adapter)
adapter - an instance of current adaptervoid onVideoPlay(@NonNull
MediationNativeAdAdapter adapter)
adapter - an instance of current adaptervoid onVideoPause(@NonNull
MediationNativeAdAdapter adapter)
adapter - an instance of current adaptervoid onVideoComplete(@NonNull
MediationNativeAdAdapter adapter)
adapter - an instance of current adapter