Gradle Integration
(Recommended)
Initialize with AppNext Ad units
Add one or more dependencies for the Ad units you wish to use:
dependencies {
// For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.+'
// For the Banners ad unit:
implementation 'com.appnext.sdk:banners:2.+'
// For the New Native Ads and Suggested Apps ad unit:
implementation 'com.appnext.sdk:native-ads2:2.+'
// For the Actions ad unit:
implementation 'com.appnext.sdk:actions:2.+'
}
example
adding the Interstitial and fullscreen/rewarded
will be implemented following way:
dependencies {
// For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0' // Mandatory
}
Done !
Now when you integrated AppNext SDK with your app,
Go ahead and implement an ad unit !
Updated about 2 years ago