public interface CriteoNativeAdListener
| Modifier and Type | Method and Description |
|---|---|
default void |
onAdClicked()
Callback invoked when a user clicks anywhere on the ad (except on the AdChoice button).
|
default void |
onAdClosed()
Callback invoked when the user is back from the Ad.
|
default void |
onAdFailedToReceive(CriteoErrorCode errorCode)
Callback invoked when a native ad is requested but none may be provided by the SDK.
|
default void |
onAdImpression()
Callback invoked when a native view is detected as being displayed on user screen and ad
impression is triggered.
|
default void |
onAdLeftApplication()
Callback invoked when an ad is opened and the user is redirected outside the application, to
the product web page or to the AdChoice page for instance.
|
void |
onAdReceived(CriteoNativeAd nativeAd)
Callback invoked when a native ad is requested and is successfully received.
|
@UiThread
void onAdReceived(@NonNull
CriteoNativeAd nativeAd)
It is expected that the publisher will display the native ad during this call.
nativeAd - native ad with the native data that may be used to render it@UiThread
default void onAdFailedToReceive(@NonNull
CriteoErrorCode errorCode)
errorCode - error code indicating the reason of the failure@UiThread default void onAdImpression()
Impression can be detected only once per bid. So this method may be invoked at most once.
@UiThread default void onAdClicked()
@UiThread default void onAdLeftApplication()
@UiThread default void onAdClosed()