Home / Android / Interstitials/Full Screen for Static or Video ads / Listeners

Interstitials/Full Screen for Static or Video ads

Listeners

You can add listener events into the interstitial to be notified when a specific event happens in the ad. To be able to listen to the events, we have to set a listener with the interstitial.setListener() method:

tappxInterstitial.setListener(new TappxInterstitialListener() {
@Override
public void onInterstitialLoaded(TappxInterstitial tappxInterstitial) {
Log.v("Tappx", "Tappx: onInterstitialLoaded");
}

@Override
public void onInterstitialLoadFailed(TappxInterstitial tappxInterstitial, TappxAdError tappxAdError) {
Log.v("Tappx", "Tappx: onInterstitialLoadFailed");
}

@Override
public void onInterstitialShown(TappxInterstitial tappxInterstitial) {
Log.v("Tappx", "Tappx: onInterstitialShown");
}

@Override
public void onInterstitialClicked(TappxInterstitial tappxInterstitial) {
Log.v("Tappx", "Tappx: onInterstitialClicked");
}

@Override
public void onInterstitialDismissed(TappxInterstitial tappxInterstitial) {
Log.v("Tappx", "Tappx: onInterstitialDismissed");
}
});