public interface
InterstitialListener
co.adcel.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 - onInterstitialFailLoad(String adType, String error) - The event is triggered when loading ads failed from all networks, 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 AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.BANNER)
provider - Advertising provider string name
void onInterstitialFailLoad(String adType, String error)
The event is triggered when loading ads failed from all networks, once for the each type of advertising
Parameters
adType - Advertising type (constants AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.BANNER)
error - error text
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 AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.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(константы AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.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 (константы AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.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 adcel.com account currencyValue - The amount of reward specified in the adcel.com account
onInterstitialFailedToShow(String adType)
The event is triggered when it is not able to show ads
Parameters
adType - Advertising type (константы AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.BANNER)
Returns
Return true to force try to show ad (it is not guaranteed to appear ad) or false to nothing