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.
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.
More information is available on the Banner documentation page.
Example code:
<com.appbrain.AppBrainBanner
android:layout_width="match_parent"
android:layout_height="wrap_content" />