Class BannerAdEventListenerAdapter
-
- All Implemented Interfaces:
public final class BannerAdEventListenerAdapter extends BannerAdEventListener
-
-
Field Summary
Fields Modifier and Type Field Description private final BannerAdEventListeneradEventListener
-
Constructor Summary
Constructors Constructor Description BannerAdEventListenerAdapter(BannerAdEventListener adEventListener)
-
Method Summary
Modifier and Type Method Description final BannerAdEventListenergetAdEventListener()UnitonAdFetchFailed(InMobiBanner ad, InMobiAdRequestStatus status)Called to notify that an ad preload has failed. UnitonAdDisplayed(InMobiBanner ad)Called to notify that the banner ad has expanded UnitonAdDismissed(InMobiBanner ad)Called to notify that the User is about to return to the application after closing the ad. UnitonUserLeftApplication(InMobiBanner ad)Called to notify that the user is about to leave the application as a result of interacting with the ad. UnitonRewardsUnlocked(InMobiBanner ad, Map<Object, Object> rewards)Called to notify that a reward was unlocked. UnitonAdFetchSuccessful(InMobiBanner ad, AdMetaInfo info)Called to notify that an ad was received successfully but is not ready to be displayed yet. UnitonAdLoadSucceeded(InMobiBanner ad, AdMetaInfo info)Called to notify that an ad was successfully loaded and is ready to be displayed. UnitonAdLoadFailed(InMobiBanner ad, InMobiAdRequestStatus status)Called to notify that a request to load an ad failed. UnitonAdClicked(InMobiBanner 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(InMobiBanner ad)Called to notify that inmobi has logged an impression for the ad UnitonImraidLog(InMobiBanner ad, String data)-
-
Constructor Detail
-
BannerAdEventListenerAdapter
BannerAdEventListenerAdapter(BannerAdEventListener adEventListener)
-
-
Method Detail
-
getAdEventListener
final BannerAdEventListener getAdEventListener()
-
onAdFetchFailed
Unit onAdFetchFailed(InMobiBanner ad, InMobiAdRequestStatus status)
Called to notify that an ad preload has failed.
Note** This notification is given only when you use
preload()in InMobiBanner.preloadManager- Parameters:
ad- Represents the InMobiBanner ad which was preloadedstatus- Represents the InMobiAdRequestStatus status containing error reason
-
onAdDisplayed
Unit onAdDisplayed(InMobiBanner ad)
Called to notify that the banner ad has expanded
- Parameters:
ad- Represents the InMobiBanner ad which was expanded
-
onAdDismissed
Unit 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
Unit 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
Unit onRewardsUnlocked(InMobiBanner ad, Map<Object, Object> rewards)
Called to notify that a reward was unlocked.
- Parameters:
ad- Represents the InMobiBanner ad for which rewards was unlockedrewards- Represents the rewards unlocked
-
onAdFetchSuccessful
Unit onAdFetchSuccessful(InMobiBanner 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(InMobiBanner 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(InMobiBanner 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(InMobiBanner 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(InMobiBanner ad)
Called to notify that inmobi has logged an impression for the ad
- Parameters:
ad- Represents the ad which was impressed
-
onImraidLog
Unit onImraidLog(InMobiBanner ad, String data)
-
-
-
-