Package ru.buzzoola.ads.nativeads
Interface NativeAdEventListener
-
- All Implemented Interfaces:
@MainThread() public interface NativeAdEventListener
Listener interface for receiving native ad lifecycle events.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonAdLoaded()Called when the ad is successfully shown. abstract UnitonAdFailed(AdException adException)Called when the ad fails to show. abstract UnitonImpression(ImpressionData impressionData)Called when an ad impression is recorded. abstract UnitonAdClicked()Called when the user clicks on the ad. abstract UnitonCloseAd()Called when the user requests to close or hide the ad. abstract UnitonLeftApplication()Called when the user is about to leave the application as a result of interacting with the ad. abstract UnitonReturnedToApplication()Called when the user returns to the application after interacting with the ad. -
-
Method Detail
-
onAdLoaded
abstract Unit onAdLoaded()
Called when the ad is successfully shown.
-
onAdFailed
abstract Unit onAdFailed(AdException adException)
Called when the ad fails to show.
- Parameters:
adException- An exception describing the reason for the failure.
-
onImpression
abstract Unit onImpression(ImpressionData impressionData)
Called when an ad impression is recorded.
- Parameters:
impressionData- Optional impression data.
-
onAdClicked
abstract Unit onAdClicked()
Called when the user clicks on the ad.
-
onCloseAd
abstract Unit onCloseAd()
Called when the user requests to close or hide the ad.
You must remove or hide the ad in response to this callback.
-
onLeftApplication
abstract Unit onLeftApplication()
Called when the user is about to leave the application as a result of interacting with the ad.
-
onReturnedToApplication
abstract Unit onReturnedToApplication()
Called when the user returns to the application after interacting with the ad.
-
-
-
-