Class BannerAdEventListener


  • public abstract class BannerAdEventListener
    extends java.lang.Object
    A listener for receiving notifications during the lifecycle of a banner ad.
    • Constructor Detail

      • BannerAdEventListener

        public BannerAdEventListener()
    • Method Detail

      • onAdDisplayed

        public void onAdDisplayed​(InMobiBanner ad)
        Called to notify that the banner ad has expanded
        Parameters:
        ad - Represents the InMobiBanner ad which was expanded
      • onAdDismissed

        public void onAdDismissed​(InMobiBanner ad)
        Called to notify that the User is about to return to the application after closing the ad.
        Parameters:
        ad - Represents the InMobiBanner ad which was closed
      • onUserLeftApplication

        public void onUserLeftApplication​(InMobiBanner ad)
        Called to notify that the user is about to leave the application as a result of interacting with the ad.
        Parameters:
        ad - Represents the InMobiBanner ad
      • onRewardsUnlocked

        public void onRewardsUnlocked​(InMobiBanner ad,
                                      java.util.Map<java.lang.Object,​java.lang.Object> rewards)
        Called to notify that a reward was unlocked.
        Parameters:
        ad - Represents the InMobiBanner ad for which rewards was unlocked
        rewards - Represents the rewards unlocked
      • onAdFetchSuccessful

        public void onAdFetchSuccessful​(T ad,
                                        AdMetaInfo info)
        Called to notify that an ad was received successfully but is not ready to be displayed yet.
        Parameters:
        ad - Represents the ad which was loaded or preloaded
        info - Represents the ad meta information
      • onAdLoadSucceeded

        @Deprecated
        public void onAdLoadSucceeded​(T ad)
        Deprecated.
        This method has been deprecated, please start using onAdFetchSuccessful(Object, AdMetaInfo) instead. Called to notify that an ad was successfully loaded.
        Parameters:
        ad - Represents the ad which was loaded
      • onAdLoadSucceeded

        public void onAdLoadSucceeded​(T ad,
                                      AdMetaInfo info)
        Called to notify that an ad was successfully loaded and is ready to be displayed.
        Parameters:
        ad - Represents the ad which was loaded
        info - Represents the ad meta information
      • onAdLoadFailed

        public void onAdLoadFailed​(T ad,
                                   InMobiAdRequestStatus status)
        Called to notify that a request to load an ad failed.
        Parameters:
        ad - Represents the ad which failed to load
        status - Represents the InMobiAdRequestStatus status containing error reason
      • onAdClicked

        public void onAdClicked​(T ad,
                                java.util.Map<java.lang.Object,​java.lang.Object> params)
        Called to notify that the user interacted with the ad.
        Parameters:
        ad - Represents the ad on which user clicked
        params - Represents the click parameters
      • onRequestPayloadCreated

        public void onRequestPayloadCreated​(byte[] requestPayload)
        Called to notify when the request payload is created
        Parameters:
        requestPayload - Represents the request payload
      • onRequestPayloadCreationFailed

        public void onRequestPayloadCreationFailed​(InMobiAdRequestStatus status)
        Called to notify when the request payload creation fails
        Parameters:
        status - Represents the InMobiAdRequestStatus status containing error reason
      • onAdImpression

        public void onAdImpression​(T ad)
        Called to notify that inmobi has logged an impression for the ad
        Parameters:
        ad - Represents the ad which was impressed