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.7.5.473'
// For the Banners ad unit:
implementation 'com.appnext.sdk:banners:2.7.5.473'
// For the New Native Ads and Suggested Apps ad unit:
implementation 'com.appnext.sdk:native-ads2:2.7.5.473'
// For the Actions ad unit:
implementation 'com.appnext.sdk:actions:2.7.5.473'
// For the MAX-applovin Adapter
implementation "com.appnext.sdk.adapters:max-ads:2.7.5.473"
}
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.7.4.473'
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 9 months ago