Commit 34d33492 authored by wanglei's avatar wanglei

...

parent 4713605a
...@@ -10,7 +10,7 @@ android { ...@@ -10,7 +10,7 @@ android {
compileSdk 34 compileSdk 34
defaultConfig { defaultConfig {
applicationId "com.base.filerecoveryrecyclebin" applicationId "com.kk.cleanmaster.file.cleanmaster.master"
minSdk 24 minSdk 24
targetSdk 34 targetSdk 34
versionCode 1 versionCode 1
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"client_info": { "client_info": {
"mobilesdk_app_id": "1:286059626470:android:561dad747cfdbdaac0e027", "mobilesdk_app_id": "1:286059626470:android:561dad747cfdbdaac0e027",
"android_client_info": { "android_client_info": {
"package_name": "com.base.filerecoveryrecyclebin" "package_name": "com.kk.cleanmaster.file.cleanmaster.master"
} }
}, },
"oauth_client": [], "oauth_client": [],
......
...@@ -17,7 +17,8 @@ object AdMaxInit { ...@@ -17,7 +17,8 @@ object AdMaxInit {
fun Context.initAdMax() { 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 // 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 = "05TMDQ5tZabpXQ45_UTbmEGNUtVAzSTzT6KmWQc5_CuWdzccS4DCITZoL3yIWUG3bbq60QC_d4WF28tUC4gVTF"
val YOUR_SDK_KEY="GGPreND6SRmCt1zJgn5faiLGD8c2PVGPLgPpSg7cHanVTud1DhtuI9MmteTqlEviaJ57WnxW68kQDaATJ5z3cW"
val executor = Executors.newSingleThreadExecutor(); val executor = Executors.newSingleThreadExecutor();
executor.execute { executor.execute {
...@@ -26,10 +27,10 @@ object AdMaxInit { ...@@ -26,10 +27,10 @@ object AdMaxInit {
initConfigBuilder.mediationProvider = AppLovinMediationProvider.MAX initConfigBuilder.mediationProvider = AppLovinMediationProvider.MAX
// Enable test mode by default for the current device. Cannot be run on the main thread. // Enable test mode by default for the current device. Cannot be run on the main thread.
val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id // val currentGaid = AdvertisingIdClient.getAdvertisingIdInfo(this).id
if (currentGaid != null) { // if (currentGaid != null) {
initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid) // initConfigBuilder.testDeviceAdvertisingIds = Collections.singletonList(currentGaid)
} // }
// Initialize the AppLovin SDK // Initialize the AppLovin SDK
val sdk = AppLovinSdk.getInstance(this) val sdk = AppLovinSdk.getInstance(this)
......
...@@ -52,6 +52,8 @@ object AdMaxNativeUtils { ...@@ -52,6 +52,8 @@ object AdMaxNativeUtils {
loadingListener?.invoke() loadingListener?.invoke()
loadingListener = null loadingListener = null
LogEx.logDebug(TAG, "onNativeAdLoadFailed") LogEx.logDebug(TAG, "onNativeAdLoadFailed")
LogEx.logDebug(TAG, "code=${p1.code}")
LogEx.logDebug(TAG, "message=${p1.message}")
AdDisplayUtils.getInstance().incrementAdRequestFailCount() AdDisplayUtils.getInstance().incrementAdRequestFailCount()
val obj2 = JSONObject() val obj2 = JSONObject()
obj2.put("reason", "no_ad") obj2.put("reason", "no_ad")
......
...@@ -19,8 +19,8 @@ object ConfigHelper { ...@@ -19,8 +19,8 @@ object ConfigHelper {
const val openAdmobId = "/6499/example/app-open" const val openAdmobId = "/6499/example/app-open"
const val bannerAdmobId = "ca-app-pub-3940256099942544/9214589741" const val bannerAdmobId = "ca-app-pub-3940256099942544/9214589741"
const val interAdMaxId = "YOUR_AD_UNIT_ID" const val interAdMaxId = "b31e7f6d11ee659e"
const val nativeAdMaxId = "YOUR_AD_UNIT_ID" const val nativeAdMaxId = "96e8fe78b0efc5d1"
const val openAdMaxId = "YOUR_AD_UNIT_ID" const val openAdMaxId = "YOUR_AD_UNIT_ID"
const val bannerMaxId = "ca-app-pub-3940256099942544/9214589741" const val bannerMaxId = "ca-app-pub-3940256099942544/9214589741"
......
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