From 4dd49bfb8ecf4823194a45882ce8b2c15a15e501 Mon Sep 17 00:00:00 2001 From: reskin-aliendroid Date: Fri, 23 Aug 2024 14:44:57 +0700 Subject: [PATCH] update SDK Admob --- AlienAdsV2/build.gradle | 16 +++---- .../alienads/AliendroidInitialize.java | 44 +++++-------------- 2 files changed, 20 insertions(+), 40 deletions(-) diff --git a/AlienAdsV2/build.gradle b/AlienAdsV2/build.gradle index 6557638..ca9b4ed 100644 --- a/AlienAdsV2/build.gradle +++ b/AlienAdsV2/build.gradle @@ -36,23 +36,23 @@ dependencies { implementation "androidx.multidex:multidex:2.0.1" //implementation fileTree(include: ['*.jar', '*.aar'], dir: 'libs') //Main Sdk Ads - implementation 'com.google.android.gms:play-services-ads:23.2.0' + implementation 'com.google.android.gms:play-services-ads:23.3.0' implementation 'com.facebook.android:audience-network-sdk:6.17.0' - implementation 'com.applovin:applovin-sdk:12.5.0' - implementation 'com.startapp:inapp-sdk:5.0.0' - implementation 'com.unity3d.ads:unity-ads:4.12.0' + implementation 'com.applovin:applovin-sdk:12.6.0' + implementation 'com.startapp:inapp-sdk:5.0.2' + implementation 'com.unity3d.ads:unity-ads:4.12.1' //Applovin implementation 'com.applovin.mediation:facebook-adapter:6.17.0.0' implementation 'com.applovin.mediation:google-adapter:23.2.0.0' - implementation 'com.applovin.mediation:unityads-adapter:4.12.0.0' + implementation 'com.applovin.mediation:unityads-adapter:4.12.1.0' //Admob implementation 'com.google.ads.mediation:facebook:6.17.0.0' - implementation 'com.google.ads.mediation:applovin:12.5.0.1' - implementation 'com.google.ads.mediation:unity:4.12.0.0' + implementation 'com.google.ads.mediation:applovin:12.6.0.0' + implementation 'com.google.ads.mediation:unity:4.12.2.0' - implementation("com.google.android.ump:user-messaging-platform:2.2.0") + implementation("com.google.android.ump:user-messaging-platform:3.0.0") implementation 'com.google.android.gms:play-services-appset:16.1.0' implementation 'com.google.android.gms:play-services-ads-identifier:18.1.0' diff --git a/AlienAdsV2/src/main/java/com/aliendroid/alienads/AliendroidInitialize.java b/AlienAdsV2/src/main/java/com/aliendroid/alienads/AliendroidInitialize.java index 31878d5..724e3d4 100644 --- a/AlienAdsV2/src/main/java/com/aliendroid/alienads/AliendroidInitialize.java +++ b/AlienAdsV2/src/main/java/com/aliendroid/alienads/AliendroidInitialize.java @@ -96,9 +96,7 @@ public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "UNITY": if (BuildConfig.DEBUG) { @@ -186,9 +184,7 @@ public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "UNITY": if (BuildConfig.DEBUG) { @@ -277,9 +273,7 @@ public void onInitializationComplete(InitializationStatus initializationStatus) public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "UNITY": if (BuildConfig.DEBUG) { @@ -344,9 +338,7 @@ public static void SelectAdsApplovinDis(Activity activity, String selectAdsBacku public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "UNITY": if (BuildConfig.DEBUG) { @@ -418,7 +410,7 @@ public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); + } switch (selectAdsBackup) { case "APPLOVIN-D": @@ -487,9 +479,7 @@ public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "ALIEN-M": PropsAdsManagement.initializeAdsMapping(activity); @@ -521,9 +511,7 @@ public static void SelectAdsStartApp(Activity activity, String selectAdsBackup, public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "UNITY": if (BuildConfig.DEBUG) { @@ -614,9 +602,7 @@ public void onInitializationFailed(UnityAds.UnityAdsInitializationError error, S public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "STARTAPP": StartAppSDK.init(activity, idInitializeBackupAds, true); @@ -684,9 +670,7 @@ public static void SelectAdsFAN(Activity activity, String selectAdsBackup, Strin public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "STARTAPP": StartAppSDK.init(activity, idInitializeBackupAds, true); @@ -760,7 +744,7 @@ public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); + } switch (selectAdsBackup) { case "APPLOVIN-D": @@ -773,9 +757,7 @@ public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "STARTAPP": StartAppSDK.init(activity, idInitializeBackupAds, true); @@ -853,9 +835,7 @@ public static void SelectAdsAlienMediation(Activity activity, String selectAdsBa public void onSdkInitialized(final AppLovinSdkConfiguration configuration) { } }); - if(BuildConfig.DEBUG){ - AppLovinSdk.getInstance(activity).showMediationDebugger(); - } + break; case "STARTAPP": StartAppSDK.init(activity, idInitializeBackupAds, true);