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
      • SDK setup
      • Manual setup
      • COPPA compliance
    • Ad unit overview
    • Banners
    • Interstitial
    • ListView ads
    • Extra features
    • Integration with other SDKs
    • Integration policy
    • Javadoc
  • 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
GDPR compliant

Getting started

Integrate the AppBrain SDK in your app in 5 minutes, using these three simple steps:

1. Add Gradle dependency

In your project’s build.gradle file add:

repositories {
    maven {
        url 'https://swisscodemonkeys.github.io/appbrain-sdk/maven'
    }
}

dependencies {
    implementation 'com.appbrain:appbrain-sdk:+'
}

Note: older instructions included an @aar tag in the implementation line but this is wrong. You might get a warning “Couldn’t find dependency. Please check https://bit.ly/2LjzK2N for the correct AppBrain SDK setup.” To fix this, remove @aar from the gradle and rebuild your app.

2. Access your account

If you haven’t done so yet, create an AppBrain developer account to get access to the AppBrain developer dashboard and to register your app for the SDK.

3. Show ads

Show an interstitial ad with InterstitialBuilder, for example when the user completes a level in your game:

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);
}

For more details and examples, see Ad unit overview.

You’re done! For more detailed instructions see SDK setup, or the rest of the AppBrain SDK help pages.

Android App Monetization by AppBrain
Interested in monetizing your app?
Monetize my app
Please contact us directly at
contact@appbrain.com
if you need any assistance.
Relevant links
AppBrain SDK on GitHub
Our policies

More apps

  • Top Android apps being viewed
  • AI Anime Filter - Anime AI APK
  • UC Mini-Download Video Status
  • Paxum for Android

Android Statistics

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

About AppBrain

  • Contact
  • Blog
  • Privacy
  • Documentation
  • Articles
  • Top Free Games Apps for your iPhone or iPad
© 2010-2024 - AppBrain