Commit b71cb344 authored by mengcuiguang's avatar mengcuiguang

添加打点

parent da332a98
...@@ -176,6 +176,10 @@ class InSceneExpress : GMSettingConfigCallback { ...@@ -176,6 +176,10 @@ class InSceneExpress : GMSettingConfigCallback {
*/ */
mTTAdNative?.loadAd(adSlotNative, object : GMNativeAdLoadCallback { mTTAdNative?.loadAd(adSlotNative, object : GMNativeAdLoadCallback {
override fun onAdLoadedFail(adError: AdError) { override fun onAdLoadedFail(adError: AdError) {
adError?.let {
AdReportManager.lazyRegister(Constant.GRO_MORE_ADTYPE1, AdReportManager.REQUEST_FAIL, it.code!!.toString(), it.message)
}
LogUtil.e( LogUtil.e(
TAG, TAG,
"gromore应用内非网赚信息流--> 3、load feed ad error : " + adError.code + ", " + adError.message "gromore应用内非网赚信息流--> 3、load feed ad error : " + adError.code + ", " + adError.message
...@@ -228,6 +232,8 @@ class InSceneExpress : GMSettingConfigCallback { ...@@ -228,6 +232,8 @@ class InSceneExpress : GMSettingConfigCallback {
AppConfig.isPreExpressAwardActivity = true AppConfig.isPreExpressAwardActivity = true
if (ads.size > 0) { if (ads.size > 0) {
AdReportManager.lazyRegister(Constant.GRO_MORE_ADTYPE1, AdReportManager.REQUEST_SUC)
frameLayout?.removeAllViews() frameLayout?.removeAllViews()
frameLayout?.addView(createAdView(ads[0])) frameLayout?.addView(createAdView(ads[0]))
......
...@@ -129,6 +129,7 @@ public class InSceneFull { ...@@ -129,6 +129,7 @@ public class InSceneFull {
@Override @Override
public void onFullVideoLoadFail(AdError adError) { public void onFullVideoLoadFail(AdError adError) {
AdReportManager.INSTANCE.lazyRegister(Constant.GRO_MORE_ADTYPE4,AdReportManager.REQUEST_FAIL,String.valueOf(adError.code), adError.message);
LogUtil.d(TAG, "gromore应用内全屏广告--> 3、onFullVideoLoadFail onError " + adError.code + adError.message); LogUtil.d(TAG, "gromore应用内全屏广告--> 3、onFullVideoLoadFail onError " + adError.code + adError.message);
AdReportManager.INSTANCE.eventFull( AdReportManager.INSTANCE.eventFull(
...@@ -161,6 +162,8 @@ public class InSceneFull { ...@@ -161,6 +162,8 @@ public class InSceneFull {
@Override @Override
public void onFullVideoCached() { public void onFullVideoCached() {
AdReportManager.INSTANCE.lazyRegister(Constant.GRO_MORE_ADTYPE4,AdReportManager.REQUEST_SUC,"","");
isLoadSuccess = 2; isLoadSuccess = 2;
adLoadTime = System.currentTimeMillis(); adLoadTime = System.currentTimeMillis();
......
...@@ -58,12 +58,11 @@ class AppOutWifiAdManager private constructor() { ...@@ -58,12 +58,11 @@ class AppOutWifiAdManager private constructor() {
val bundle = Bundle() val bundle = Bundle()
bundle.putInt(TransSceneActivity.TIMING_TYPE, mType) bundle.putInt(TransSceneActivity.TIMING_TYPE, mType)
IntentUtils.startActivity3( IntentUtils.startActivity3(
Constant.CARRIER_OUT_TEN_TIME, Constant.CARRIER_OUT_TEN_TIME,
bundle, bundle,
BoostFastActivity::class.java, BoostFastActivity::class.java,
null, true,
true, IntentUtils.TIME_TYPE_ANIM
IntentUtils.TIME_TYPE_ANIM
) )
} }
...@@ -105,7 +104,7 @@ class AppOutWifiAdManager private constructor() { ...@@ -105,7 +104,7 @@ class AppOutWifiAdManager private constructor() {
fun tempShowAd(_activity: Activity) { fun tempShowAd(_activity: Activity) {
// 前台 // 前台 正常
if (ForegroundOrBackground.isForeground2()) { if (ForegroundOrBackground.isForeground2()) {
UmengManager.onEvent(AdReportManager.EventType.EVENT_TYPE_TIME10_NEW_CSJ_CACHE_SUC_FOREGROUND.name) UmengManager.onEvent(AdReportManager.EventType.EVENT_TYPE_TIME10_NEW_CSJ_CACHE_SUC_FOREGROUND.name)
...@@ -113,17 +112,17 @@ class AppOutWifiAdManager private constructor() { ...@@ -113,17 +112,17 @@ class AppOutWifiAdManager private constructor() {
return return
} }
// 用户手动 最小化 调用sdk展示广告
UmengManager.onEvent(AdReportManager.EventType.EVENT_TYPE_TIME10_NEW_CSJ_CACHE_SUC_BACKGROUND.name) UmengManager.onEvent(AdReportManager.EventType.EVENT_TYPE_TIME10_NEW_CSJ_CACHE_SUC_BACKGROUND.name)
val bundle = Bundle() val bundle = Bundle()
bundle.putBoolean(TempTransparentActivity.TEMP_TYPE, true) bundle.putBoolean(TempTransparentActivity.TEMP_TYPE, true)
IntentUtils.startActivity3( IntentUtils.startActivity3(
Constant.CARRIER_OUT_TRANSPARENT_ACTIVITY, Constant.CARRIER_OUT_TRANSPARENT_ACTIVITY,
bundle, bundle,
TempTransparentActivity::class.java, TempTransparentActivity::class.java,
null, true,
true, IntentUtils.TIME_TYPE_HANDS_TRANS
IntentUtils.TIME_TYPE_TRANS
) )
} }
......
...@@ -239,7 +239,6 @@ class WifiAdManager private constructor() { ...@@ -239,7 +239,6 @@ class WifiAdManager private constructor() {
carrier, carrier,
bundle, bundle,
TriggerActivity::class.java, TriggerActivity::class.java,
null,
false, false,
IntentUtils.TIME_TYPE_ANIM IntentUtils.TIME_TYPE_ANIM
) )
...@@ -247,7 +246,6 @@ class WifiAdManager private constructor() { ...@@ -247,7 +246,6 @@ class WifiAdManager private constructor() {
carrier, carrier,
bundle, bundle,
ApkActivity::class.java, ApkActivity::class.java,
null,
false, false,
IntentUtils.TIME_TYPE_ANIM IntentUtils.TIME_TYPE_ANIM
) )
......
...@@ -682,7 +682,7 @@ public class AlarmManager implements Handler.Callback { ...@@ -682,7 +682,7 @@ public class AlarmManager implements Handler.Callback {
Bundle bundle = new Bundle(); Bundle bundle = new Bundle();
bundle.putInt(TransparentActivity.TIMING_TYPE, currentType++); bundle.putInt(TransparentActivity.TIMING_TYPE, currentType++);
bundle.putString(TransparentActivity.TRANSPARENT_TYPE, TransparentActivity.TRANSPARENT_TYPE_TIMER); bundle.putString(TransparentActivity.TRANSPARENT_TYPE, TransparentActivity.TRANSPARENT_TYPE_TIMER);
IntentUtils.startActivity3(Constant.CARRIER_OUT_TRANSPARENT_ACTIVITY, bundle, TransparentActivity.class, true); IntentUtils.startActivity3(Constant.CARRIER_OUT_TRANSPARENT_ACTIVITY, bundle, TransparentActivity.class, true, IntentUtils.TIME_TYPE_TRANS);
} }
public void setAppOutTimingMinter(int timingMinter) { public void setAppOutTimingMinter(int timingMinter) {
......
...@@ -61,7 +61,6 @@ object OutAppRouter { ...@@ -61,7 +61,6 @@ object OutAppRouter {
tempType, tempType,
bundle, bundle,
TransSceneActivity::class.java, TransSceneActivity::class.java,
null,
false, false,
IntentUtils.TIME_TYPE_TRANS IntentUtils.TIME_TYPE_TRANS
) )
...@@ -174,11 +173,13 @@ object OutAppRouter { ...@@ -174,11 +173,13 @@ object OutAppRouter {
TransSceneActivity.TRANSPARENT_TYPE, TransSceneActivity.TRANSPARENT_TYPE,
TransSceneActivity.TRANSPARENT_TYPE_TRIGGER TransSceneActivity.TRANSPARENT_TYPE_TRIGGER
) )
IntentUtils.startActivity3(tempType, bundle, TransSceneActivity::class.java, false) IntentUtils.startActivity3(tempType, bundle, TransSceneActivity::class.java, false,
IntentUtils.SCENE_TYPE_TRANS)
} else { } else {
bundle.putString(TriggerActivity.CALL_PHONE_NUM, phone) bundle.putString(TriggerActivity.CALL_PHONE_NUM, phone)
bundle.putInt(TriggerActivity.CALL_PHONE_TIME, time) bundle.putInt(TriggerActivity.CALL_PHONE_TIME, time)
IntentUtils.startActivity3(tempType, bundle, TriggerActivity::class.java, false) IntentUtils.startActivity3(tempType, bundle, TriggerActivity::class.java, false,
IntentUtils.SCENE_TYPE_ANIM)
} }
} }
......
...@@ -1031,7 +1031,7 @@ object WifiDataManager { ...@@ -1031,7 +1031,7 @@ object WifiDataManager {
} timing -> 定时次数=${sp.getInt(TIMING, 0)} 定时阈值=" + TIMING_TIMES } timing -> 定时次数=${sp.getInt(TIMING, 0)} 定时阈值=" + TIMING_TIMES
) )
if (isBlackOrClose()) { if (isTimerBlackOrClose()) {
AdReportManager.eventScene( AdReportManager.eventScene(
AdReportManager.INNER_OUT, AdReportManager.INNER_OUT,
System.currentTimeMillis(), System.currentTimeMillis(),
...@@ -1057,7 +1057,7 @@ object WifiDataManager { ...@@ -1057,7 +1057,7 @@ object WifiDataManager {
if (!sp.getBoolean(TIMING_SWITCH, SCENE_SWITCH_DEFAULT)) { if (!sp.getBoolean(TIMING_SWITCH, SCENE_SWITCH_DEFAULT)) {
// 场景开关关闭 // 场景开关关闭
UmengManager.onEventArgs( UmengManager.onEventArgs(
AdReportManager.EventType.EVENT_TYPE_SCENCE_SWITCH_CLOSE.name, AdReportManager.EventType.EVENT_TYPE_SCENCE_OUT_TIME10_SWITCH.name,
TIMING_SWITCH TIMING_SWITCH
) )
AdReportManager.eventScene( AdReportManager.eventScene(
...@@ -1761,6 +1761,34 @@ object WifiDataManager { ...@@ -1761,6 +1761,34 @@ object WifiDataManager {
return false return false
} }
/**
* 定时是否黑名单
*
* APP_OUT_MAIN_SWITCH=false 表示 关闭总开关
* isBlack=true 表示 是反策略黑名单
* @return true 不弹 false 弹
*/
fun isTimerBlackOrClose(): Boolean {
// 是否是黑名单
val isBlack = AntiAuditManager.instance.isBlack()
if (isBlack) {
LogUtil.d(TAG, "是否命中黑名单 -> isBlack=${isBlack}")
UmengManager.onEvent(AdReportManager.EventType.EVENT_TYPE_SCENCE_OUT_TIME10_BLACK.name)
return true
}
// 场景总开关
val allSwitch = sp.getBoolean(APP_OUT_SWITCH, true)
if (!allSwitch) {
LogUtil.d(TAG, "是否命中黑名单 -> 应用外总开关=${allSwitch} , isBlack=${isBlack}")
UmengManager.onEvent(AdReportManager.EventType.EVENT_TYPE_SCENCE_OUT_TIME10_OUTALLSWITCH.name)
return true
}
return false
}
/** /**
* 弹出成功 次数加一 * 弹出成功 次数加一
* *
......
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