Interface NativeAdEventListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onAdLoaded() Called when the ad is successfully shown.
      abstract Unit onAdFailed(AdException adException) Called when the ad fails to show.
      abstract Unit onImpression(ImpressionData impressionData) Called when an ad impression is recorded.
      abstract Unit onAdClicked() Called when the user clicks on the ad.
      abstract Unit onCloseAd() Called when the user requests to close or hide the ad.
      abstract Unit onLeftApplication() Called when the user is about to leave the application as a result of interacting with the ad.
      abstract Unit onReturnedToApplication() Called when the user returns to the application after interacting with the ad.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.