| | |
| | | loadAd(width, height, pid, count, adLoadListener); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 视频详情页信息流广告 |
| | | * @param count |
| | | * @param adLoadListener |
| | | */ |
| | | public void loadVideoDetailAd(int count, final IAdLoadListener adLoadListener) { |
| | | //加载大图 |
| | | String pid = null; |
| | | if (sourceType == SOURCE_CSJ) { |
| | | pid = "945379581"; |
| | | } else if (sourceType == SOURCE_GDT) { |
| | | pid = BeibeiConstant.GDT_SEARCH_RESULT_MIN_NATIVE; |
| | | } |
| | | //获取屏幕的宽 |
| | | int deviceWidth = DimenUtils.getScreenWidth(mContext); |
| | | deviceWidth = DimenUtils.px2dip(mContext, deviceWidth); |
| | | int width = (deviceWidth - 20); |
| | | int height = 75; |
| | | loadAd(width, height, pid, count, adLoadListener); |
| | | } |
| | | |
| | | /** |
| | | * 加载广点通广告 |
| | | * |