AppBrain Best Android Apps
AppBrain | Docs
  • Apps
  • Statistics
  • Docs
  • Developers
  • Get SDK
  • Sign up
  • Log in

General

  • Introduction
  • Privacy policy
  • About AppBrain
  • HTML widgets
  • Embeddable Android app widgets

Publishers

  • AppBrain SDK
    • Getting started
    • Ad unit overview
    • Banners
    • Interstitial
    • ListView ads
    • Extra features
    • Integration with other SDKs
    • Integration policy
    • Javadoc
      • AdId
      • AdListAdapter
      • AdListAdapter.AdLayoutCreator
      • AdOptions
      • AdOptions.ScreenType
      • AdService
      • AdService.BorderSize
      • AdService.ReturnToAppConfig
      • AdvertiserService
      • AppBrain
      • AppBrainBanner
      • AppBrainBanner.BannerSize
      • AppBrainInitProvider
      • AppBrainUserData
      • AppBrainUserData.Gender
      • BannerListener
      • InterstitialBuilder
      • InterstitialListener
      • InterstitialListener.InterstitialError
      • KeepClass
      • ReferrerReceiver
      • RemoteSettings
  • Resources
  • Terms of service
  • FAQ

Advertisers

  • Resources
  • Terms of service
  • FAQ

Intelligence

  • Insights
  • Subscriptions
  • SDK downloads
  • Phone downloads
  • Terms of service

AppBrain API

  • Using the AppBrain API
  • API specification
  • Pricing
  • Promotion campaigns
  • Reporting
  • AppLinks TOS
Search

InterstitialListener

public interface InterstitialListener

This is a listener interface to be notified when someone clicks on an AppBrain interstitial, and when it’s shown and dismissed. This is purely for reporting purposes, the implementation takes care of opening the offerwall etc.

Author

AppBrain

Methods

void onAdFailedToLoad(InterstitialError error)

Gets called after the interstitial failed to load. This method gets called on the UI thread. Either onAdLoaded or onAdFailedToLoad will be called after requesting an interstitial through InterstitialBuilder‘s preload or show methods and before actually showing it.

Parameters
  • error – if InterstitialError.NO_FILL loading the interstitial failed because there was no suitable ad available, otherwise (InterstitialError.ERROR) loading failed for some other reason.

void onAdLoaded()

Gets called after the interstitial was loaded successfully. This method gets called on the UI thread. Either onAdLoaded or onAdFailedToLoad will be called after requesting an interstitial through InterstitialBuilder‘s preload or show methods and before actually showing it. Only if you call InterstitialBuilder.preload(Context) multiple times in a row, onAdLoaded() will only be called once.

void onClick()

Gets called when an interstitial receives a click from the user. This method gets called on the UI thread.

void onDismissed(boolean wasClicked)

Gets called after the interstitial is dismissed. This method gets called on the UI thread.

Parameters
  • wasClicked – if true, the interstitial is dismissing for the user to go on after clicking an ad, if false, the user just closed the interstitial.

void onPresented()

Called when the interstitial is shown to the user. This method gets called on the UI thread.

Android App Monetization by AppBrain
Interested in monetizing your app?
Monetize my app

More apps

  • Top Android apps being viewed
  • Download Evangelical Music
  • Premier Inn Hotels
  • Moon live- 18+ video chat&Meet

Android Statistics

  • Android statistics
  • Google Play Developer stats
  • Trending Android Apps
  • Top popular Apps

About AppBrain

  • Contact
  • Blog
  • Privacy
  • Documentation
  • Articles
  • The AppBrain advertising system
© 2010-2024 - AppBrain