public interface

AdService

com.appbrain.AdService

Class Overview

The AdService provides methods to show the AppBrain offerwall and interstitial

Summary

Public Methods
abstract boolean maybeShowInterstitial(Context context)
Shows an interstitial activity sometimes (at most once per 3 days by default, and only when there is an internet connection).
abstract boolean shouldShowInterstitial(Context context)
Query whether maybeShowInterstitial would show an interstitial now or not.
abstract boolean showInterstitial(Context context)
Shows the interstitial (if there is an internet connection).
abstract void showOfferWall(Context context)
Shows the offer wall with the list of promoted apps.

Public Methods

public abstract boolean maybeShowInterstitial (Context context)

Shows an interstitial activity sometimes (at most once per 3 days by default, and only when there is an internet connection).

Parameters
context The current context
Returns
  • true if the interstitial was shown

public abstract boolean shouldShowInterstitial (Context context)

Query whether maybeShowInterstitial would show an interstitial now or not.

Parameters
context The current context
Returns
  • Whether maybeShowInterstitial would show an interstitial or not.

public abstract boolean showInterstitial (Context context)

Shows the interstitial (if there is an internet connection).

Parameters
context The current context
Returns
  • true if the interstitial was shown

public abstract void showOfferWall (Context context)

Shows the offer wall with the list of promoted apps. You need to request explicit approval to use this method through contact@appbrain.com otherwise it won't generate any revenue for you. See http://www.appbrain.com/info/sdk for more information.

Parameters
context the current Context