Dash Stats Docs

Ad unit overview

The AppBrain SDK has several ad units that can be built into your Android app. They promote free apps to your users, earning you money for each install.

Preview

Select an ad unit to preview:

Interstitial

Promote free apps to your users in a non-intrusive way using our interstitial.

  • Shown during natural pause moments in your app
  • Built-in rate limiting

More information is available on the Interstitial documentation page.

Example code:

private InterstitialBuilder interstitialBuilder;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    // Preload the AppBrain interstitial. Settings the AdId is optional,
    // but highly recommended. You can also create a custom AdId for your
    // publisher app on our dashboard under "Ad settings".
    interstitialBuilder = InterstitialBuilder.create()
        .setAdId(AdId.LEVEL_COMPLETE)
        .setOnDoneCallback(new Runnable() {
            @Override
            public void run() {
                // Preload again, so we can use interstitialBuilder again.
                interstitialBuilder.preload(getContext());
                loadNextLevel();
            })
        .preload(this);
}

public void onLevelCompleted() {
    interstitialBuilder.show(this);
}