public interface

InterstitialListener

com.appintop.interstitialads.InterstitialListener

Class Overview

Interface of the event listener display for Interstitial and Rewarded advertising

Summary

Public Methods

void onFirstInterstitialLoad(String adType, String provider) The event is triggered when the given type of advertising is loaded and becomes ready to show, once for the each type of advertising.
void onInterstitialStarted(String adType, String provider) The event is triggered at the beginning of the showing Image, Video, or Rewarded advertising
void onInterstitialClicked(String adType, String provider) The event is triggered when clicked on Image advertising or when clicked on the banner that appears at the end of Video advertising
void onInterstitialClosed(String adType, String provider) The event is triggered when the advertising is closed by the user
void onRewardedCompleted(String adProvider, String currencyName, String currencyValue) The event is triggered when the full view of Rewarded advertising is successfully completed
boolean onInterstitialFailedToShow(String adType) The event is triggered when it is not able to show ads

Public Methods

void onFirstInterstitialLoad(String adType, String provider)

The event is triggered when the given type of advertising is loaded and becomes ready to show, once for the each type of advertising.

Parameters

adType Advertising type (constants AdToApp.INTERSTITIAL, AdToApp.IMAGE, AdToApp.VIDEO, AdToApp.REWARDED, AdToApp.NATIVE, AdToApp.BANNER)
provider Advertising provider string name

onInterstitialStarted(String adType, String provider)

The event is triggered at the beginning of the showing Image, Video, or Rewarded advertising

Parameters

adType Advertising type (constants AdToApp.INTERSTITIAL, AdToApp.IMAGE, AdToApp.VIDEO, AdToApp.REWARDED, AdToApp.NATIVE, AdToApp.BANNER)
provider Advertising provider string name

onInterstitialClicked(String adType, String provider)

The event is triggered when clicked on Image advertising or when clicked on the banner that appears at the end of Video advertising

Parameters

adType Advertising type(константы AdToApp.INTERSTITIAL, AdToApp.IMAGE, AdToApp.VIDEO, AdToApp.REWARDED, AdToApp.NATIVE, AdToApp.BANNER)
provider Advertising provider string name

onInterstitialClosed(String adType, String provider)

The event is triggered when the advertising is closed by the user

Parameters

adType Advertising type (константы AdToApp.INTERSTITIAL, AdToApp.IMAGE, AdToApp.VIDEO, AdToApp.REWARDED, AdToApp.NATIVE, AdToApp.BANNER)
provider Advertising provider string name

onRewardedCompleted(String adProvider, String currencyName, String currencyValue)

The event is triggered when the full Rewarded advertising view is successfully completed

Parameters

adProvider Advertising provider string name
currencyName The string name of the currency specified in the adtoapp.com account
currencyValue The amount of reward specified in the adtoapp.com account

onInterstitialFailedToShow(String adType)

The event is triggered when it is not able to show ads

Parameters

adType Advertising type (константы AdToApp.INTERSTITIAL, AdToApp.IMAGE, AdToApp.VIDEO, AdToApp.REWARDED, AdToApp.NATIVE, AdToApp.BANNER)

Returns

Return true to force try to show ad (it is not guaranteed to appear ad) or false to nothing

Contact support