Integrate
0. Latest ADX Android SDK
Version 2.8.0
Release Date : 2025/09/18
1. Requirements
2. Integrating the ADX Android SDK
1) Add the following repository to the allprojects
section of your project-level build.gradle
file.
allprojects {
repositories {
// ... other project repositories
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
2) Add the following dependency to the dependencies
section of your module-level build.gradle
file.
dependencies {
// Include the Entire Library
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library:2.8.0'
// Include Only Native Ads
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library-native:2.8.0'
// Include Only Interstitial and Banner Ads
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library-standard:2.8.0'
// Include Only Rewarded Video Ads
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library-rewarded-video:2.8.0'
// Example: Include Interstitial, Banner, and Native Ads
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library-standard:2.8.0'
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library-native:2.8.0'
// ADX Lite version
implementation 'com.github.adxcorp.ADXLibrary_Android:adx-library-lite:2.8.0'
// Use Google Play Services Ads version 24.3.0
implementation 'com.google.android.gms:play-services-ads:24.3.0'
}
3. Project Setting
To support Java 8 language features, add
compileOptions
to theandroid
section of your module-levelbuild.gradle
file.
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
4. Setting up the AdMob App ID
If you’re not integrating AdMob, you can skip this section.
Add
"com.google.android.gms.ads.APPLICATION_ID"
and your issued AdMob App ID to a<meta-data>
tag in yourAndroidManifest.xml
file.
If you don’t add the <meta-data>
tag, your app will crash with the following error:
The Google Mobile Ads SDK was initialized incorrectly.
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="YOUR_ADMOB_APP_ID"/>
</application>
</manifest>
Last updated
Was this helpful?