public interface
co.adcel.interstitialads.InterstitialListener
Interface of the event listener display for Interstitial and Rewarded advertising
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 |
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.
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
adType | Advertising type (константы 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
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
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
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
adProvider | Advertising provider string name |
currencyName | The string name of the currency specified in the adcel.co account |
currencyValue | The amount of reward specified in the adcel.co account |
onInterstitialFailedToShow(String adType)
The event is triggered when it is not able to show ads
adType | Advertising type (константы AdCel.INTERSTITIAL, AdCel.IMAGE, AdCel.VIDEO, AdCel.REWARDED, AdCel.NATIVE, AdCel.BANNER) |
Return true to force try to show ad (it is not guaranteed to appear ad) or false to nothing