Commit 4911d0ad authored by wanglei's avatar wanglei

...

parent 71079e16
...@@ -27,10 +27,10 @@ object AdMaxInit { ...@@ -27,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)
......
...@@ -133,7 +133,7 @@ object AdMaxInterstitialUtils { ...@@ -133,7 +133,7 @@ object AdMaxInterstitialUtils {
obj2.put("reason", "no ad") obj2.put("reason", "no ad")
obj2.put("ad_unit", "interAd") obj2.put("ad_unit", "interAd")
EventUtils.event("ad_show_error", ext = obj2) EventUtils.event("ad_show_error", ext = obj2)
interstitialAd?.loadAd() loadInterstitialAd(activity)
LogEx.logDebug(TAG, "isReady=false") LogEx.logDebug(TAG, "isReady=false")
showAdDialogAndLoadInterstitial(activity) showAdDialogAndLoadInterstitial(activity)
} }
......
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