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);
}
Banner
Use industry-standard banners to promote free apps to your users and monetize your app.
Customizable look and feel
Responsive designs
Compatible with mediation solutions
More information is available on the Banner documentation page.
Example code:
<com.appbrain.AppBrainBanner
android:layout_width="match_parent"
android:layout_height="wrap_content" />
More apps button
Promote free apps to your users with a “More apps” button or menu item. It will take the user to our AppBrain offerwall, where they can download free apps.
More information is available at Opening the offerwall directly.
Example code:
AdService ads = AppBrain.getAds();
Button button = new Button(context);
button.setText(ads.getOfferWallButtonLabel(context));
ads.setOfferWallClickListener(context, button);
More apps
Android Statistics