Add the Audience Network SDK to your Android App

This guide explains how to include the Audience Network SDK in your Android app so that you can call Audience Network APIs. The preferred method is to use Maven to manage the dependencies; however, download locations for manual integration are also provided below. Be sure to keep your app up to date with the latest Audience Network SDK version for stability and continued format improvements. We are continuing to work towards enabling automatic SDK updates.

You may also refer to one of our mediation partner's documentation websites for more targeted information:

Maven (Preferred Download Method)

In Android Studio, make sure that mavenCentral() is included in your project's list of repositories. Repositories are defined in your project's module-level build.gradle file.

repositories {
    mavenCentral()
}

Next, add the following implementation dependencies to your project's list of dependencies. Dependencies are also defined in your project's module-level build.gradle file. Note that annotation support is required by the Audience Network SDK.

dependencies { 
    implementation 'androidx.annotation:annotation:1.0.0'
    implementation 'com.facebook.android:audience-network-sdk:6.+'
}

Manual Download

If using Maven is not an option, you can download the Audience Network SDK from one of the locations in the following table.

Next Steps