Package com.inmobi.ads.listeners
Class InterstitialAdEventListener
- java.lang.Object
-
- com.inmobi.ads.listeners.InterstitialAdEventListener
-
public abstract class InterstitialAdEventListener extends java.lang.Object
Listener for receiving notifications during the lifecycle of an interstitial.
-
-
Constructor Summary
Constructors Constructor Description InterstitialAdEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
onAdClicked(T ad, java.util.Map<java.lang.Object,java.lang.Object> params)
Called to notify that the user interacted with the ad.void
onAdDismissed(InMobiInterstitial ad)
Called to indicate that the fullscreen overlay opened by the ad was closed.void
onAdDisplayed(InMobiInterstitial ad)
Deprecated.void
onAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)
Called to indicate that the fullscreen overlay is now the topmost screen.void
onAdDisplayFailed(InMobiInterstitial ad)
Called to indicate that a request to show an ad (by callingInMobiInterstitial.show()
failed.void
onAdFetchFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)
Called to notify that an ad preload has failed.void
onAdFetchSuccessful(T ad, AdMetaInfo info)
Called to notify that an ad was received successfully but is not ready to be displayed yet.void
onAdImpression(T ad)
Called to notify that inmobi has logged an impression for the advoid
onAdLoadFailed(T ad, InMobiAdRequestStatus status)
Called to notify that a request to load an ad failed.void
onAdLoadSucceeded(T ad)
Deprecated.void
onAdLoadSucceeded(T ad, AdMetaInfo info)
Called to notify that an ad was successfully loaded and is ready to be displayed.void
onAdReceived(InMobiInterstitial ad)
Deprecated.void
onAdWillDisplay(InMobiInterstitial ad)
Called to indicate that the ad will be launching a fullscreen overlay.void
onRequestPayloadCreated(byte[] requestPayload)
Called to notify when the request payload is createdvoid
onRequestPayloadCreationFailed(InMobiAdRequestStatus status)
Called to notify when the request payload creation failsvoid
onRewardsUnlocked(InMobiInterstitial ad, java.util.Map<java.lang.Object,java.lang.Object> rewards)
Called to indicate that rewards have been unlocked.void
onUserLeftApplication(InMobiInterstitial ad)
Called to indicate that the user may leave the application on account of interacting with the ad.
-
-
-
Method Detail
-
onAdReceived
@Deprecated public void onAdReceived(InMobiInterstitial ad)
Deprecated.This method has been deprecated, please start using#onAdFetchSuccessful(InMobiInterstitial, AdMetaInfo)
instead. Called to indicate that an ad is available in response to a request for an ad (by callingInMobiInterstitial.load()
.Note This does not indicate that the ad can be shown yet. Your code should show an ad after the
#onAdLoadSucceeded(InMobiInterstitial)
method is called. Alternately, if you do not want to handle this event, you must test if the ad is ready to be shown by checking the result of calling theInMobiInterstitial.isReady()
method.- Parameters:
ad
- Represents theInMobiInterstitial
ad for which ad content was received
-
onAdFetchFailed
public void onAdFetchFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)
Called to notify that an ad preload has failed.Note This notification is given only when you use
preload()
inInMobiInterstitial.getPreloadManager()
- Parameters:
ad
- Represents theInMobiInterstitial
ad which was preloadedstatus
- Represents theInMobiAdRequestStatus
status containing error reason
-
onAdWillDisplay
public void onAdWillDisplay(InMobiInterstitial ad)
Called to indicate that the ad will be launching a fullscreen overlay.- Parameters:
ad
- Represents theInMobiInterstitial
ad which will display
-
onAdDisplayed
@Deprecated public void onAdDisplayed(InMobiInterstitial ad)
Deprecated.This method has been deprecated, please start usingonAdDisplayed(InMobiInterstitial, AdMetaInfo)
instead. Called to indicate that the fullscreen overlay is now the topmost screen.- Parameters:
ad
- Represents theInMobiInterstitial
ad which is displayed
-
onAdDisplayed
public void onAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)
Called to indicate that the fullscreen overlay is now the topmost screen.- Parameters:
ad
- Represents theInMobiInterstitial
ad which is displayedinfo
- Represents the meta info for the ad displayed
-
onAdDisplayFailed
public void onAdDisplayFailed(InMobiInterstitial ad)
Called to indicate that a request to show an ad (by callingInMobiInterstitial.show()
failed. You should callInMobiInterstitial.load()
to request for a fresh ad.- Parameters:
ad
- Represents theInMobiInterstitial
ad which failed to show
-
onAdDismissed
public void onAdDismissed(InMobiInterstitial ad)
Called to indicate that the fullscreen overlay opened by the ad was closed.- Parameters:
ad
- Represents theInMobiInterstitial
ad which was dismissed
-
onUserLeftApplication
public void onUserLeftApplication(InMobiInterstitial ad)
Called to indicate that the user may leave the application on account of interacting with the ad.- Parameters:
ad
- Represents theInMobiInterstitial
ad
-
onRewardsUnlocked
public void onRewardsUnlocked(InMobiInterstitial ad, java.util.Map<java.lang.Object,java.lang.Object> rewards)
Called to indicate that rewards have been unlocked.- Parameters:
ad
- Represents theInMobiInterstitial
ad for which rewards was unlockedrewards
- 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 preloadedinfo
- Represents the ad meta information
-
onAdLoadSucceeded
@Deprecated public void onAdLoadSucceeded(T ad)
Deprecated.This method has been deprecated, please start usingonAdFetchSuccessful(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 loadedinfo
- 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 loadstatus
- Represents theInMobiAdRequestStatus
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 clickedparams
- 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 theInMobiAdRequestStatus
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
-
-