Commit aa9596be authored by wanglei's avatar wanglei

....

parent 83fae7df
...@@ -241,7 +241,6 @@ public class AdDisplayUtils { ...@@ -241,7 +241,6 @@ public class AdDisplayUtils {
editor.apply(); editor.apply();
} }
public void incrementAdClickCount() { public void incrementAdClickCount() {
if (!currentDate.equals(getCurrentDate())) { if (!currentDate.equals(getCurrentDate())) {
currentDate = getCurrentDate(); currentDate = getCurrentDate();
......
...@@ -53,7 +53,7 @@ object AdMaxNativeUtils { ...@@ -53,7 +53,7 @@ object AdMaxNativeUtils {
LogEx.logDebug(TAG, "onNativeAdLoadFailed") LogEx.logDebug(TAG, "onNativeAdLoadFailed")
LogEx.logDebug(TAG, "code=${p1.code}") LogEx.logDebug(TAG, "code=${p1.code}")
LogEx.logDebug(TAG, "message=${p1.message}") 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")
obj2.put("ad_unit", "nativeAd") obj2.put("ad_unit", "nativeAd")
...@@ -63,7 +63,7 @@ object AdMaxNativeUtils { ...@@ -63,7 +63,7 @@ object AdMaxNativeUtils {
override fun onNativeAdClicked(p0: MaxAd) { override fun onNativeAdClicked(p0: MaxAd) {
super.onNativeAdClicked(p0) super.onNativeAdClicked(p0)
LogEx.logDebug(TAG, "onNativeAdClicked") LogEx.logDebug(TAG, "onNativeAdClicked")
AdDisplayUtils.getInstance().incrementAdClickCount() // AdDisplayUtils.getInstance().incrementAdClickCount()
nativeAd?.let { AdMaxEvent.clickAd(it, "nativeAd") } nativeAd?.let { AdMaxEvent.clickAd(it, "nativeAd") }
AdmobCommonUtils.isMultiClick(nativeAd) AdmobCommonUtils.isMultiClick(nativeAd)
} }
...@@ -156,7 +156,7 @@ object AdMaxNativeUtils { ...@@ -156,7 +156,7 @@ object AdMaxNativeUtils {
nativeAdLoader.render(adView, nativeAd) nativeAdLoader.render(adView, nativeAd)
parent.addView(adView) parent.addView(adView)
nativeAd?.let { AdMaxEvent.showAd(it, "nativeAd", activityString) } nativeAd?.let { AdMaxEvent.showAd(it, "nativeAd", activityString) }
AdDisplayUtils.getInstance().incrementAdDisplayCount() // AdDisplayUtils.getInstance().incrementAdDisplayCount()
LogEx.logDebug(TAG, "loadingListener finish") LogEx.logDebug(TAG, "loadingListener finish")
} }
......
...@@ -2,9 +2,6 @@ package com.base.filerecoveryrecyclebin.utils ...@@ -2,9 +2,6 @@ package com.base.filerecoveryrecyclebin.utils
import android.util.Log import android.util.Log
import com.base.filerecoveryrecyclebin.ads.AdDisplayUtils import com.base.filerecoveryrecyclebin.ads.AdDisplayUtils
import com.base.filerecoveryrecyclebin.ads.AdDisplayUtils.DEFAULT_MAX_AD_CLICK_COUNT
import com.base.filerecoveryrecyclebin.ads.AdDisplayUtils.DEFAULT_MAX_AD_DISPLAY_COUNT
import com.base.filerecoveryrecyclebin.ads.AdDisplayUtils.DEFAULT_MAX_AD_REQUEST_COUNT
import com.base.filerecoveryrecyclebin.bean.ConfigBean import com.base.filerecoveryrecyclebin.bean.ConfigBean
import com.base.filerecoveryrecyclebin.help.ConfigHelper import com.base.filerecoveryrecyclebin.help.ConfigHelper
import com.google.gson.Gson import com.google.gson.Gson
...@@ -104,10 +101,6 @@ object NewComUtils { ...@@ -104,10 +101,6 @@ object NewComUtils {
} }
AdDisplayUtils.getInstance().saveSp() AdDisplayUtils.getInstance().saveSp()
} }
} }
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