Step 1: Get SDK files
Download the AAR files from
The ZIP file includes the following AAR files;
AppnextAndroidSDKCore.aar
- SDK coreAppnextAndroidSDKAds.aar
- Interstitial and fullscreen/rewarded ad unitsAppnextAndroidSDKBanners.aar
- Banners ad unitAppnextAndroidSDKNativeAds.aar
- Native ads ad unit
Step 2: Add AAR files to Your Project
Extract the ZIP file and add the relevant AAR files to your "libs"
folder in your project;
- You must add the
AppnextAndroidSDKCore.aar
file (make sure to add it only once)
Step 3: Add the relevant AAR files to your project
- Add one or more AAR files according to your relevant ad unit integration
- All AAR files must be from the same version (download the latest ZIP file to be sure)
dependencies {
implementation name:'AppnextAndroidSDKAds.aar', ext:'aar'
implementation name:'AppnextAndroidSDKBanners.aar', ext:'aar'
implementation name:'AppnextAndroidSDKNativeAds.aar', ext:'aar'
implementation name:'AppnextAndroidSDKActions.aar', ext:'aar'
implementation name:'AppnextAndroidSDKCore.aar', ext:'aar' // Mandatory
implementation 'com.google.android.gms:play-services-ads:18.2.0' // Mandatory
}
example
adding the Interstitial and fullscreen/rewarded
will be implemented following way:
dependencies {
implementation name:'AppnextAndroidSDKAds.aar', ext:'aar' // Interstitial and fullscreen/rewarded
implementation name:'AppnextAndroidSDKCore.aar', ext:'aar' // Mandatory
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0' // Mandatory
}
Step 4: Update the ProGuard Configuration
-keep class com.appnext.** { *; }
-dontwarn com.appnext.**
Done !
Now when you integrated AppNext SDK with your app,
Go ahead and implement an ad unit !
Updated 2 months ago
What's Next
Suggested Apps |
Interstitial |
Rewarded and Fullscreen Video |
Banners |
New Native Ads |
Actions Ad Unit |
Admob Adapter Installation |
Mopub Adapter Installation |