Commit 60ffef06 authored by wanglei's avatar wanglei

...广告限制类型

parent 63ca874e
...@@ -74,12 +74,21 @@ public class AdDisplayUtils { ...@@ -74,12 +74,21 @@ public class AdDisplayUtils {
if (BuildConfig.DEBUG) { if (BuildConfig.DEBUG) {
return true; return true;
} }
boolean s = shouldDisplayAd() && shouldIncrementClickCount() && shouldIncrementRequestFailAd(); boolean shouldDisplayAd = shouldDisplayAd();
boolean shouldIncrementClickCount = shouldIncrementClickCount();
boolean shouldIncrementRequestFailAd = shouldIncrementRequestFailAd();
boolean s = shouldDisplayAd && shouldIncrementClickCount && shouldIncrementRequestFailAd;
if (!s) { if (!s) {
LogEx.INSTANCE.logDebug("glc", "!shouldShowAd", false); LogEx.INSTANCE.logDebug("glc", "!shouldShowAd", false);
JSONObject obj2 = new JSONObject(); JSONObject obj2 = new JSONObject();
try { try {
obj2.put("reason", "ad limit"); obj2.put("reason", "ad limit");
obj2.put("shouldDisplayAd",shouldDisplayAd);
obj2.put("shouldIncrementClickCount",shouldIncrementClickCount);
obj2.put("shouldIncrementRequestFailAd",shouldIncrementRequestFailAd);
obj2.put("ad_unit", ad_unit); obj2.put("ad_unit", ad_unit);
EventUtils.INSTANCE.event("ad_show_error", null, obj2, false); EventUtils.INSTANCE.event("ad_show_error", null, obj2, false);
} catch (JSONException e) { } catch (JSONException e) {
......
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