Commit 4c2bf7e6 authored by wanglei's avatar wanglei

...

parent ccbf4a69
...@@ -180,23 +180,16 @@ object AdMaxInterstitialUtils { ...@@ -180,23 +180,16 @@ object AdMaxInterstitialUtils {
if (!AdDisplayUtils.getInstance().shouldShowAd("interAd")) { if (!AdDisplayUtils.getInstance().shouldShowAd("interAd")) {
return false return false
} }
if (interstitialAd?.isReady == true) {
return false LogEx.logDebug(TAG, "loadInterstitialAd")
} val reqId = UUID.randomUUID().toString()
if (isAdInit.get()) { val obj = JSONObject()
LogEx.logDebug(TAG, "loadInterstitialAd") obj.put("req_id", reqId)
val reqId = UUID.randomUUID().toString() obj.put("ad_type", "interAd")
val obj = JSONObject() EventUtils.event("ad_pull_start", ext = obj)
obj.put("req_id", reqId) interstitialAd?.loadAd()
obj.put("ad_type", "interAd") AdDisplayUtils.getInstance().incrementAdRequestCount()
EventUtils.event("ad_pull_start", ext = obj) return true
interstitialAd?.loadAd()
AdDisplayUtils.getInstance().incrementAdRequestCount()
return true
} else {
EventUtils.event("isAdInit", value = "loadInterstitialAd isAdInit=${isAdInit.get()}")
}
return false
} }
......
...@@ -160,10 +160,6 @@ object AdMaxOpenUtils { ...@@ -160,10 +160,6 @@ object AdMaxOpenUtils {
LogEx.logDebug(TAG, "!shouldShowAd") LogEx.logDebug(TAG, "!shouldShowAd")
return false return false
} }
if (appOpenAd?.isReady == true) {
LogEx.logDebug(TAG, "appOpenAd?.isReady == true")
return false
}
val reqId = UUID.randomUUID().toString() val reqId = UUID.randomUUID().toString()
val obj = JSONObject() val obj = JSONObject()
......
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