From cd89367a01870afb5c1e818895abb03ffea42d88 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 15 十月 2020 18:25:52 +0800
Subject: [PATCH] 风行播放器完善

---
 BuWanVideo/src/com/weikou/beibeivideo/util/ad/ExpressAdManager.java |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/ad/ExpressAdManager.java b/BuWanVideo/src/com/weikou/beibeivideo/util/ad/ExpressAdManager.java
index c0af154..03b4bc8 100644
--- a/BuWanVideo/src/com/weikou/beibeivideo/util/ad/ExpressAdManager.java
+++ b/BuWanVideo/src/com/weikou/beibeivideo/util/ad/ExpressAdManager.java
@@ -12,6 +12,7 @@
 import com.bytedance.sdk.openadsdk.TTAdManager;
 import com.bytedance.sdk.openadsdk.TTAdNative;
 import com.bytedance.sdk.openadsdk.TTNativeExpressAd;
+import com.google.gson.Gson;
 import com.qq.e.ads.cfg.VideoOption;
 import com.qq.e.ads.nativ.ADSize;
 import com.qq.e.ads.nativ.NativeExpressAD;
@@ -170,10 +171,11 @@
      * @param adLoadListener
      */
     public void loadVideoDetailPlayerBottomAd(final IAdLoadListener adLoadListener) {
+        Log.i(TAG, "loadVideoDetailPlayerBottomAd");
         //鍔犺浇澶у浘
         String pid = null;
         if (sourceType == AdUtil.AD_TYPE.csj) {
-            pid = "945375047";
+            pid = CSJConstant.VIDEO_DETAIL_PLAYER_BOTTOM;
         } else if (sourceType == AdUtil.AD_TYPE.gdt2) {
             pid = GDTConstant.PID_2_VIDEO_DETAIL_PLAY_EXPRESS1;
         }
@@ -181,7 +183,7 @@
         int deviceWidth = DimenUtils.getScreenWidth(mContext);
         deviceWidth = DimenUtils.px2dip(mContext, deviceWidth);
         int width = (deviceWidth - 20);
-        int height = 80;
+        int height = 100;
         loadAd(width, height, pid, 1, adLoadListener);
     }
 
@@ -195,7 +197,7 @@
         //鍔犺浇澶у浘
         String pid = null;
         if (sourceType == AdUtil.AD_TYPE.csj) {
-            pid = "945375047";
+            pid = CSJConstant.VIDEO_DETAIL_GUESSLIKE_TOP;
         } else if (sourceType == AdUtil.AD_TYPE.gdt2) {
             pid = GDTConstant.PID_2_VIDEO_DETAIL_PLAY_EXPRESS2;
         }
@@ -397,6 +399,9 @@
      * @param context
      */
     private void loadGDT2(String positionId, int widthDP, int heightDP, int count, final IGDTAdLoadListener adLoadListener, Context context) {
+
+        Log.i(TAG, String.format("loadGDT2:positionId-%s  widthDP-%s heightDP-%s", positionId, widthDP, heightDP));
+
         NativeExpressAD2 nativeExpressAD2 = new NativeExpressAD2(context, positionId, new NativeExpressAD2.AdLoadListener() {
             @Override
             public void onLoadSuccess(List<NativeExpressADData2> list) {

--
Gitblit v1.8.0