Commit bf2e8dd9 authored by wanglei's avatar wanglei

..

parent f6bca85e
......@@ -18,7 +18,7 @@ object AdMaxInit {
fun Context.initAdMax() {
// If you want to test your own AppLovin SDK key, change the value here and update the package name in the build.gradle
val YOUR_SDK_KEY = "05TMDQ5tZabpXQ45_UTbmEGNUtVAzSTzT6KmWQc5_CuWdzccS4DCITZoL3yIWUG3bbq60QC_d4WF28tUC4gVTF"
val YOUR_SDK_KEY = "GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW"
val executor = Executors.newSingleThreadExecutor();
executor.execute {
......@@ -27,10 +27,10 @@ object AdMaxInit {
initConfigBuilder.mediationProvider = AppLovinMediationProvider.MAX
// Enable test mode by default for the current device. Cannot be run on the main thread.
val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
if (currentGaid != null) {
initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
}
// val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
// if (currentGaid != null) {
// initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
// }
// Initialize the AppLovin SDK
val sdk = AppLovinSdk.getInstance(this)
......
......@@ -19,9 +19,9 @@ object ConfigHelper {
const val openAdmobId = "/6499/example/app-open"
//max广告id
const val interAdMaxId = "a"
const val nativeAdMaxId = "b"
const val openAdMaxId = "c"
const val interAdMaxId = "bda3ff6e90dcf1e6"
const val nativeAdMaxId = "92b665b1d235b7b8"
const val openAdMaxId = "a4e07d8b8295856d"
//一定展示大图广告
var mustShowNativeAd: Boolean = false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment