public abstract class InterstitialAdEventListener
extends java.lang.Object
Constructor and Description |
---|
InterstitialAdEventListener() |
Modifier and Type | Method and 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 calling
InMobiInterstitial.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 |
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 created
|
void |
onRequestPayloadCreationFailed(InMobiAdRequestStatus status)
Called to notify when the request payload creation fails
|
void |
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.
|
@Deprecated public void onAdReceived(InMobiInterstitial ad)
#onAdFetchSuccessful(InMobiInterstitial, AdMetaInfo)
instead.
Called to indicate that an ad is available in response to a request for an ad (by calling
InMobiInterstitial.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 the InMobiInterstitial.isReady()
method.
ad
- Represents the InMobiInterstitial
ad for which ad content was receivedpublic void onAdFetchFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)
Note This
notification is given only when you use preload()
in
InMobiInterstitial.getPreloadManager()
ad
- Represents the InMobiInterstitial
ad which was preloadedstatus
- Represents the InMobiAdRequestStatus
status containing error reasonpublic void onAdWillDisplay(InMobiInterstitial ad)
ad
- Represents the InMobiInterstitial
ad which will display@Deprecated public void onAdDisplayed(InMobiInterstitial ad)
onAdDisplayed(InMobiInterstitial, AdMetaInfo)
instead.
Called to indicate that the fullscreen overlay is now the topmost screen.ad
- Represents the InMobiInterstitial
ad which is displayedpublic void onAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)
ad
- Represents the InMobiInterstitial
ad which is displayedinfo
- Represents the meta info for the ad displayedpublic void onAdDisplayFailed(InMobiInterstitial ad)
InMobiInterstitial.show()
failed. You should call InMobiInterstitial.load()
to request for a fresh ad.ad
- Represents the InMobiInterstitial
ad which failed to showpublic void onAdDismissed(InMobiInterstitial ad)
ad
- Represents the InMobiInterstitial
ad which was dismissedpublic void onUserLeftApplication(InMobiInterstitial ad)
ad
- Represents the InMobiInterstitial
adpublic void onRewardsUnlocked(InMobiInterstitial ad, java.util.Map<java.lang.Object,java.lang.Object> rewards)
ad
- Represents the InMobiInterstitial
ad for which rewards was unlockedrewards
- Represents the rewards unlockedpublic void onAdFetchSuccessful(T ad, AdMetaInfo info)
ad
- Represents the ad which was loaded or preloadedinfo
- Represents the ad meta information@Deprecated public void onAdLoadSucceeded(T ad)
onAdFetchSuccessful(Object, AdMetaInfo)
instead.
Called to notify that an ad was successfully loaded.ad
- Represents the ad which was loadedpublic void onAdLoadSucceeded(T ad, AdMetaInfo info)
ad
- Represents the ad which was loadedinfo
- Represents the ad meta informationpublic void onAdLoadFailed(T ad, InMobiAdRequestStatus status)
ad
- Represents the ad which failed to loadstatus
- Represents the InMobiAdRequestStatus
status containing error reasonpublic void onAdClicked(T ad, java.util.Map<java.lang.Object,java.lang.Object> params)
ad
- Represents the ad on which user clickedparams
- Represents the click parameterspublic void onRequestPayloadCreated(byte[] requestPayload)
requestPayload
- Represents the request payloadpublic void onRequestPayloadCreationFailed(InMobiAdRequestStatus status)
status
- Represents the InMobiAdRequestStatus
status containing error reason