Class InterstitialAdEventListenerAdapter
-
- All Implemented Interfaces:
public final class InterstitialAdEventListenerAdapter extends InterstitialAdEventListener
-
-
Field Summary
Fields Modifier and Type Field Description private final InterstitialAdEventListeneradEventListener
-
Constructor Summary
Constructors Constructor Description InterstitialAdEventListenerAdapter(InterstitialAdEventListener adEventListener)
-
Method Summary
Modifier and Type Method Description final InterstitialAdEventListenergetAdEventListener()UnitonAdFetchFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)Called to notify that an ad preload has failed. UnitonAdWillDisplay(InMobiInterstitial ad)Called to indicate that the ad will be launching a fullscreen overlay. UnitonAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)Called to indicate that the fullscreen overlay is now the topmost screen. UnitonAdDisplayFailed(InMobiInterstitial ad)Called to indicate that a request to show an ad (by calling InMobiInterstitial.show failed. UnitonAdDismissed(InMobiInterstitial ad)Called to indicate that the fullscreen overlay opened by the ad was closed. UnitonUserLeftApplication(InMobiInterstitial ad)Called to indicate that the user may leave the application on account of interacting with the ad. UnitonRewardsUnlocked(InMobiInterstitial ad, Map<Object, Object> rewards)Called to indicate that rewards have been unlocked. UnitonAdFetchSuccessful(InMobiInterstitial ad, AdMetaInfo info)Called to notify that an ad was received successfully but is not ready to be displayed yet. UnitonAdLoadSucceeded(InMobiInterstitial ad, AdMetaInfo info)Called to notify that an ad was successfully loaded and is ready to be displayed. UnitonAdLoadFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)Called to notify that a request to load an ad failed. UnitonAdClicked(InMobiInterstitial ad, Map<Object, Object> params)Called to notify that the user interacted with the ad. UnitonRequestPayloadCreated(ByteArray requestPayload)Called to notify when the request payload is created UnitonRequestPayloadCreationFailed(InMobiAdRequestStatus status)Called to notify when the request payload creation fails UnitonAdImpression(InMobiInterstitial ad)Called to notify that inmobi has logged an impression for the ad UnitonImraidLog(InMobiInterstitial ad, String data)-
-
Constructor Detail
-
InterstitialAdEventListenerAdapter
InterstitialAdEventListenerAdapter(InterstitialAdEventListener adEventListener)
-
-
Method Detail
-
getAdEventListener
final InterstitialAdEventListener getAdEventListener()
-
onAdFetchFailed
Unit onAdFetchFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)
Called to notify that an ad preload has failed.
Note** This notification is given only when you use
preload()in InMobiInterstitial.preloadManager- Parameters:
ad- Represents the InMobiInterstitial ad which was preloadedstatus- Represents the InMobiAdRequestStatus status containing error reason
-
onAdWillDisplay
Unit onAdWillDisplay(InMobiInterstitial ad)
Called to indicate that the ad will be launching a fullscreen overlay.
- Parameters:
ad- Represents the InMobiInterstitial ad which will display
-
onAdDisplayed
Unit onAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)
Called to indicate that the fullscreen overlay is now the topmost screen.
- Parameters:
ad- Represents the InMobiInterstitial ad which is displayedinfo- Represents the meta info for the ad displayed
-
onAdDisplayFailed
Unit onAdDisplayFailed(InMobiInterstitial ad)
Called to indicate that a request to show an ad (by calling InMobiInterstitial.show failed. You should call InMobiInterstitial.load to request for a fresh ad.
- Parameters:
ad- Represents the InMobiInterstitial ad which failed to show
-
onAdDismissed
Unit onAdDismissed(InMobiInterstitial ad)
Called to indicate that the fullscreen overlay opened by the ad was closed.
- Parameters:
ad- Represents the InMobiInterstitial ad which was dismissed
-
onUserLeftApplication
Unit onUserLeftApplication(InMobiInterstitial ad)
Called to indicate that the user may leave the application on account of interacting with the ad.
- Parameters:
ad- Represents the InMobiInterstitial ad
-
onRewardsUnlocked
Unit onRewardsUnlocked(InMobiInterstitial ad, Map<Object, Object> rewards)
Called to indicate that rewards have been unlocked.
- Parameters:
ad- Represents the InMobiInterstitial ad for which rewards was unlockedrewards- Represents the rewards unlocked
-
onAdFetchSuccessful
Unit onAdFetchSuccessful(InMobiInterstitial 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
Unit onAdLoadSucceeded(InMobiInterstitial 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
Unit onAdLoadFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)
Called to notify that a request to load an ad failed.
- Parameters:
ad- Represents the ad which failed to loadstatus- Represents the InMobiAdRequestStatus status containing error reason
-
onAdClicked
Unit onAdClicked(InMobiInterstitial ad, Map<Object, 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
Unit onRequestPayloadCreated(ByteArray requestPayload)
Called to notify when the request payload is created
- Parameters:
requestPayload- Represents the request payload
-
onRequestPayloadCreationFailed
Unit onRequestPayloadCreationFailed(InMobiAdRequestStatus status)
Called to notify when the request payload creation fails
- Parameters:
status- Represents the InMobiAdRequestStatus status containing error reason
-
onAdImpression
Unit onAdImpression(InMobiInterstitial ad)
Called to notify that inmobi has logged an impression for the ad
- Parameters:
ad- Represents the ad which was impressed
-
onImraidLog
Unit onImraidLog(InMobiInterstitial ad, String data)
-
-
-
-