public abstract class AdColonyNativeAdViewListener
extends java.lang.Object
AdColony.requestNativeAdView(String, AdColonyNativeAdViewListener, AdColonyAdSize)
.Constructor and Description |
---|
AdColonyNativeAdViewListener() |
Modifier and Type | Method and Description |
---|---|
void |
onAudioStarted(AdColonyNativeAdView ad)
Called if the audio for the ad has started due to the user manually unmuting the ad view.
|
void |
onAudioStopped(AdColonyNativeAdView ad)
Called if the audio for the ad has stopped due to the user manually muting the ad view.
|
void |
onClicked(AdColonyNativeAdView ad)
Called when the user has interacted with the ad in a meaningful way, i.e.
|
void |
onClosed(AdColonyNativeAdView ad)
Called when an expanded ad view closes.
|
void |
onIAPEvent(AdColonyNativeAdView ad,
java.lang.String product_id,
int engagement_type)
Called when an in-app purchase (IAP) enabled ad has triggered an IAP event.
|
void |
onLeftApplication(AdColonyNativeAdView ad)
Called when some action during the ad causes the user to leave the application.
|
void |
onNativeVideoFinished(AdColonyNativeAdView ad)
Called if applicable when the native video portion of the ad has finished playback.
|
void |
onNativeVideoStarted(AdColonyNativeAdView ad)
Called if applicable when the native video portion of the ad has started playback.
|
void |
onOpened(AdColonyNativeAdView ad)
Called when the ad view is clicked on and expanded.
|
abstract void |
onRequestFilled(AdColonyNativeAdView ad)
Called in response to an ad request when the request has been successfully filled.
|
void |
onRequestNotFilled(AdColonyZone zone)
Called in response to an ad request when the request failed to fill.
|
public abstract void onRequestFilled(AdColonyNativeAdView ad)
ad
- the ad that is returned in response to the successful ad request.public void onRequestNotFilled(AdColonyZone zone)
zone
- the zone that the failed ad request was made from.public void onOpened(AdColonyNativeAdView ad)
ad
- the ad that was clicked on and expanded.public void onClosed(AdColonyNativeAdView ad)
ad
- the ad that was closed.public void onIAPEvent(AdColonyNativeAdView ad, java.lang.String product_id, int engagement_type)
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 of
AdColonyAdView.ADCOLONY_IAP_ENGAGEMENT_END_CARD
or
AdColonyAdView.ADCOLONY_IAP_ENGAGEMENT_OVERLAY
public void onLeftApplication(AdColonyNativeAdView ad)
ad
- the ad that caused the user to leave the applicationpublic void onNativeVideoStarted(AdColonyNativeAdView ad)
ad
- the ad view whose video has begun playback.public void onNativeVideoFinished(AdColonyNativeAdView ad)
ad
- the ad view whose video has finished playback.public void onAudioStopped(AdColonyNativeAdView ad)
ad
- the ad whose audio has stopped.public void onAudioStarted(AdColonyNativeAdView ad)
ad
- the ad whose audio has started.public void onClicked(AdColonyNativeAdView ad)
ad
- the ad that has been clicked/interacted with.