Integrate

0. Latest ADX Android SDK

1. Requirements

  • minSdkVersion 23 or later

  • compileSdkVersion 35 or later

2. Integrating the ADX Android SDK

The following content may change with future updates to 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 the android section of your module-level build.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 your AndroidManifest.xml file.

    <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?