Commit 4c2bf7e6 authored by wanglei's avatar wanglei

...

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