Cara Integrasi Gradle/Gradle Integration Appnext
Initialize/Inisialisasi dengan unit Iklan AppNext
Tambahkan satu atau lebih dependensi untuk unit Iklan yang ingin Anda gunakan:
build.gradle
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 ad unit:
implementation 'com.appnext.sdk:native-ads2:2.+'
// For the Actions ad unit:
implementation 'com.appnext.sdk:actions:2.+'
}
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 ad unit:
implementation 'com.appnext.sdk:native-ads2:2.+'
// For the Actions ad unit:
implementation 'com.appnext.sdk:actions:2.+'
}
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 ad unit:
implementation 'com.appnext.sdk:native-ads2:2.+'
// For the Actions ad unit:
implementation 'com.appnext.sdk:actions:2.+'
}
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 ad unit:
implementation 'com.appnext.sdk:native-ads2:2.+'
// For the Actions ad unit:
implementation 'com.appnext.sdk:actions:2.+'
}
Contoh
menambahkan Interstitial dan Fullscreen / Reward akan diimplementasikan dengan cara berikut:
Text
dependencies {
// For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.google.android.gms:play-services-ads:15.0.0' // Mandatory
implementation 'com.google.android.gms:play-services-location:15.0.0' // Mandatory
}
dependencies {
// For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.google.android.gms:play-services-ads:15.0.0' // Mandatory
implementation 'com.google.android.gms:play-services-location:15.0.0' // Mandatory
}
dependencies {
// For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.google.android.gms:play-services-ads:15.0.0' // Mandatory
implementation 'com.google.android.gms:play-services-location:15.0.0' // Mandatory
}
dependencies {
// For the Interstitial and Rewarded/Fullscreen video ad unit:
implementation 'com.appnext.sdk:ads:2.+'
implementation 'com.google.android.gms:play-services-ads:15.0.0' // Mandatory
implementation 'com.google.android.gms:play-services-location:15.0.0' // Mandatory
}
Selesai!
Sekarang ketika Anda mengintegrasikan AppNext SDK dengan aplikasi Anda,Teruskan dan terapkan unit iklan!
0 Response to "Cara Integrasi Gradle/Gradle Integration Appnext"
Post a Comment