public abstract class

InterstitialAdEventListener

extends Object
java.lang.Object
   ↳ com.inmobi.ads.listeners.InterstitialAdEventListener

Class Overview

Listener for receiving notifications during the lifecycle of an interstitial.

Summary

Public Constructors
InterstitialAdEventListener()
Public Methods
void onAdClicked(InMobiInterstitial ad, Map<Object, Object> params)
Called to indicate that an ad interaction was observed.
void onAdDismissed(InMobiInterstitial ad)
Called to indicate that the fullscreen overlay opened by the ad was closed.
void onAdDisplayFailed(InMobiInterstitial ad)
Called to indicate that a request to show an ad (by calling show() failed.
void onAdDisplayed(InMobiInterstitial ad)
Called to indicate that the fullscreen overlay is now the topmost screen.
void onAdLoadFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)
Callback to signal that a request to fetch an ad (by calling load() failed.
void onAdLoadSucceeded(InMobiInterstitial ad)
Called to indicate that an ad was loaded and it can now be shown.
void onAdReceived(InMobiInterstitial ad)
Called to indicate that an ad is available in response to a request for an ad (by calling load().
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, Map<Object, 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InterstitialAdEventListener ()

Public Methods

public void onAdClicked (InMobiInterstitial ad, Map<Object, Object> params)

Called to indicate that an ad interaction was observed.

Parameters
ad Represents the InMobiInterstitial ad on which user clicked
params Represents the click parameters

public void 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

public void onAdDisplayFailed (InMobiInterstitial ad)

Called to indicate that a request to show an ad (by calling show() failed. You should call load() to request for a fresh ad.

Parameters
ad Represents the InMobiInterstitial ad which failed to show

public void onAdDisplayed (InMobiInterstitial ad)

Called to indicate that the fullscreen overlay is now the topmost screen.

Parameters
ad Represents the InMobiInterstitial ad which is displayed

public void onAdLoadFailed (InMobiInterstitial ad, InMobiAdRequestStatus status)

Callback to signal that a request to fetch an ad (by calling load() failed. The status code indicating the reason for failure is available as a parameter. You should call load() again to request a fresh ad.

Parameters
ad Represents the InMobiInterstitial ad which failed to load
status Represents the InMobiAdRequestStatus status containing error reason

public void onAdLoadSucceeded (InMobiInterstitial ad)

Called to indicate that an ad was loaded and it can now be shown. This will always be called after the onAdReceived(InMobiInterstitial) callback.

Parameters
ad Represents the InMobiInterstitial ad which was loaded

public void onAdReceived (InMobiInterstitial ad)

Called to indicate that an ad is available in response to a request for an ad (by calling 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 isReady() method.

Parameters
ad Represents the InMobiInterstitial ad for which ad content was received

public void onAdWillDisplay (InMobiInterstitial ad)

Called to indicate that the ad will be launching a fullscreen overlay.

Parameters
ad Represents the InMobiInterstitial ad which will display

public void onRequestPayloadCreated (byte[] requestPayload)

Called to notify when the request payload is created

Parameters
requestPayload Represents the request payload

public void onRequestPayloadCreationFailed (InMobiAdRequestStatus status)

Called to notify when the request payload creation fails

Parameters
status Represents the InMobiAdRequestStatus status containing error reason

public void 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 unlocked
rewards Represents the rewards unlocked

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 the InMobiInterstitial ad