Package com.adcolony.sdk
Class AdColonyInterstitialListener
- java.lang.Object
-
- com.adcolony.sdk.AdColonyInterstitialListener
-
public abstract class AdColonyInterstitialListener extends java.lang.ObjectListener used to notify developer of ad specific events. Passed with an ad request viaAdColony.requestInterstitial(String, AdColonyInterstitialListener).
-
-
Constructor Summary
Constructors Constructor Description AdColonyInterstitialListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidonAudioStarted(AdColonyInterstitial ad)Deprecated.voidonAudioStopped(AdColonyInterstitial ad)Deprecated.voidonClicked(AdColonyInterstitial ad)Called when the user has interacted with the ad in a meaningful way, i.e.voidonClosed(AdColonyInterstitial ad)Called when the interstitial ad closes.voidonExpiring(AdColonyInterstitial ad)Called when an interstitial expires and is no longer valid for playback.voidonIAPEvent(AdColonyInterstitial ad, java.lang.String product_id, int engagement_type)Called when an in-app purchase (IAP) enabled ad has triggered an IAP event.voidonLeftApplication(AdColonyInterstitial ad)Called when some action during the ad causes the user to leave the application.voidonOpened(AdColonyInterstitial ad)Called when the interstitial ad opens.abstract voidonRequestFilled(AdColonyInterstitial ad)Called in response to an ad request when the request has been successfully filled.voidonRequestNotFilled(AdColonyZone zone)Called in response to an ad request when the request failed to fill.
-
-
-
Method Detail
-
onRequestFilled
public abstract void onRequestFilled(AdColonyInterstitial ad)
Called in response to an ad request when the request has been successfully filled.- Parameters:
ad- the ad that is returned in response to the successful ad request.
-
onRequestNotFilled
public void onRequestNotFilled(AdColonyZone zone)
Called in response to an ad request when the request failed to fill.- Parameters:
zone- the zone that the failed ad request was made from.
-
onOpened
public void onOpened(AdColonyInterstitial ad)
Called when the interstitial ad opens.- Parameters:
ad- the ad that has opened.
-
onClosed
public void onClosed(AdColonyInterstitial ad)
Called when the interstitial ad closes. It's recommended to request a new ad within this callback.- Parameters:
ad- the ad that has closed.
-
onIAPEvent
public void onIAPEvent(AdColonyInterstitial ad, java.lang.String product_id, int engagement_type)
Called when an in-app purchase (IAP) enabled ad has triggered an IAP event. Alerts the developer that the opportunity exists to launch a purchase event with the provided information.- Parameters:
ad- the ad that triggered the IAP event.product_id- the product id of the item associated with the IAP event.engagement_type- the engagement that occurred to trigger this IAP event. One ofAdColonyInterstitial.ADCOLONY_IAP_ENGAGEMENT_END_CARDorAdColonyInterstitial.ADCOLONY_IAP_ENGAGEMENT_OVERLAY
-
onExpiring
public void onExpiring(AdColonyInterstitial ad)
Called when an interstitial expires and is no longer valid for playback. This does not get triggered when the expired flag is set because it has been viewed. It's recommended to request a new ad within this callback.- Parameters:
ad- The ad that is expiring.
-
onLeftApplication
public void onLeftApplication(AdColonyInterstitial ad)
Called when some action during the ad causes the user to leave the application.- Parameters:
ad- the ad that caused the user to leave the application
-
onClicked
public void onClicked(AdColonyInterstitial ad)
Called when the user has interacted with the ad in a meaningful way, i.e. a click that led to some underlying tracking or responsive interaction.- Parameters:
ad- the ad that has been clicked/interacted with.
-
onAudioStopped
@Deprecated public void onAudioStopped(AdColonyInterstitial ad)
Deprecated.Called when the audio for the ad has stopped either through user engagement or through an interruption such as the ad pausing or finishing.- Parameters:
ad- the ad whose audio has stopped.
-
onAudioStarted
@Deprecated public void onAudioStarted(AdColonyInterstitial ad)
Deprecated.Called when the audio for the ad has started either through user engagement or through an event that causes the audio to start such as the ad starting or resuming.- Parameters:
ad- the ad whose audio has started.
-
-