Commit ba384c21 authored by mengcuiguang2's avatar mengcuiguang2

添加日志

parent 79677b7a
...@@ -165,9 +165,9 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -165,9 +165,9 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
//展示广告,并传入广告展示的场景 //展示广告,并传入广告展示的场景
mttRewardAd.showRewardAd(activity, mTTRewardedAdListener); mttRewardAd.showRewardAd(activity, mTTRewardedAdListener);
Log.e(TAG, "adNetworkPlatformId: " + mttRewardAd.getAdNetworkPlatformId()); //获取展示广告对应的adn的值 具体值见NetworkPlatformConst类 -3: 无权限 -2: 暂无数据 LogUtil.d(TAG, "adNetworkPlatformId: " + mttRewardAd.getAdNetworkPlatformId()); //获取展示广告对应的adn的值 具体值见NetworkPlatformConst类 -3: 无权限 -2: 暂无数据
Log.e(TAG, "adNetworkRitId:" + mttRewardAd.getAdNetworkRitId()); //获取展示广告对应的代码位 具体值见NetworkPlatformConst类 "-3": 无权限 "-2" LogUtil.d(TAG, "adNetworkRitId:" + mttRewardAd.getAdNetworkRitId()); //获取展示广告对应的代码位 具体值见NetworkPlatformConst类 "-3": 无权限 "-2"
Log.e(TAG, "preEcpm: " + mttRewardAd.getPreEcpm()); //获取展示广告预估ecpm价格,单位是分 具体值见NetworkPlatformConst类 "-3": 无权限 "-2": 暂无数据 "-1":平台未有填写的预估ecpm价格 LogUtil.d(TAG, "preEcpm: " + mttRewardAd.getPreEcpm()); //获取展示广告预估ecpm价格,单位是分 具体值见NetworkPlatformConst类 "-3": 无权限 "-2": 暂无数据 "-1":平台未有填写的预估ecpm价格
} else { } else {
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_ONE, "999999", "Cached Fail"); TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_ONE, "999999", "Cached Fail");
...@@ -190,7 +190,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -190,7 +190,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
* 广告的展示回调 每个广告仅回调一次 * 广告的展示回调 每个广告仅回调一次
*/ */
public void onRewardedAdShow() { public void onRewardedAdShow() {
Log.d(TAG, "onRewardedAdShow"); LogUtil.d(TAG, "onRewardedAdShow");
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_ZERO, "", ""); TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_ZERO, "", "");
...@@ -201,7 +201,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -201,7 +201,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
*/ */
@Override @Override
public void onRewardClick() { public void onRewardClick() {
Log.d(TAG, "onRewardClick"); LogUtil.d(TAG, "onRewardClick");
if (AppConfig.needReportClickAdEvent) { if (AppConfig.needReportClickAdEvent) {
TrackManager.getInstance().reportClickAdEvent(); TrackManager.getInstance().reportClickAdEvent();
...@@ -223,7 +223,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -223,7 +223,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
* 广告关闭的回调 * 广告关闭的回调
*/ */
public void onRewardedAdClosed() { public void onRewardedAdClosed() {
Log.d(TAG, "onRewardedAdClosed"); LogUtil.d(TAG, "onRewardedAdClosed");
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_THREE, "", ""); TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_THREE, "", "");
...@@ -239,7 +239,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -239,7 +239,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
* 视频播放完毕的回调 Admob广告不存在该回调 * 视频播放完毕的回调 Admob广告不存在该回调
*/ */
public void onVideoComplete() { public void onVideoComplete() {
Log.d(TAG, "onVideoComplete"); LogUtil.d(TAG, "onVideoComplete");
} }
...@@ -247,7 +247,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -247,7 +247,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
* 视频播放失败的回调 - Mintegral GDT Admob广告不存在该回调 * 视频播放失败的回调 - Mintegral GDT Admob广告不存在该回调
*/ */
public void onVideoError() { public void onVideoError() {
Log.d(TAG, "onVideoError"); LogUtil.d(TAG, "onVideoError");
TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_ONE, "999999", "VideoError"); TrackManager.getInstance().addCallImp(Constant.AD_SOURCE_GROMORE, Constant.EVENT_TYPE_ONE, "999999", "VideoError");
if (videoAdStatusListener != null) { if (videoAdStatusListener != null) {
...@@ -264,7 +264,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd { ...@@ -264,7 +264,7 @@ public class CsjGroMoreVideoAdManager extends BaseVideoAd {
String adnName = (String) customData.get(RewardItem.KEY_ADN_NAME); String adnName = (String) customData.get(RewardItem.KEY_ADN_NAME);
switch (adnName) { switch (adnName) {
case RewardItem.KEY_GDT: case RewardItem.KEY_GDT:
Log.d(TAG, "rewardItem gdt: " + customData.get(RewardItem.KEY_GDT_TRANS_ID)); LogUtil.d(TAG, "rewardItem gdt: " + customData.get(RewardItem.KEY_GDT_TRANS_ID));
break; break;
} }
} }
......
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