admin
2025-06-16 7f0825f8195a522ed7e8bcdb6347f3a719e06c74
BuWanVideo/src/com/weikou/beibeivideo/util/ad/FullVideoAdManager.java
@@ -3,6 +3,7 @@
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.util.Log;
import android.widget.Toast;
import com.bytedance.sdk.openadsdk.AdSlot;
@@ -50,17 +51,16 @@
    private void loadCSJ(final Context context, final IFullVideoAdListener adListener) {
        int w = DimenUtils.getScreenWidth(context);
        int h = DimenUtils.getScreenHeight(context);
        String channel = AndroidManifestUtil.getChannel(context);
        String pid = "945393854";
        if ("huawei".equalsIgnoreCase(channel)) {
            pid = "948943768";
        }
        String pid =CSJConstant.VIDEO_DETAIL_INTERSTITIALAD;
//        if ("huawei".equalsIgnoreCase(channel)) {
//            pid = "948943768";
//        }
        AdSlot adSlot = new AdSlot.Builder()
                .setCodeId(pid)
                .setSupportDeepLink(true)
                .setExpressViewAcceptedSize(w, h)
                .setExpressViewAcceptedSize(200, 300)
                .setOrientation(TTAdConstant.VERTICAL)
                .build();
        TTAdManager ttAdManager = null;
@@ -75,6 +75,7 @@
        mTTAdNative.loadFullScreenVideoAd(adSlot, new TTAdNative.FullScreenVideoAdListener() {
            @Override
            public void onError(int code, String message) {
                Log.i("loadFullScreenVideoAd","onError");
            }
            @Override
@@ -105,7 +106,7 @@
                });
                if (ad != null && adListener != null)
                if (adListener != null)
                    adListener.onSuccess(ad);
            }