Commit 8db8efca authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 9fcc8e3f
......@@ -5,11 +5,14 @@ import com.mints.goodmoney.MintsApplication
import com.mints.goodmoney.mvp.model.AdcodeBean
/**
* 穿山甲GroMore
*/
object CsjGroMoreManager {
var AD_UNIT_EXPRESS_ID = "946167770"
var AD_UNIT_SPLASH_ID = "887459392"
var AD_UNIT_VIDEO_ID = "946018378"
var AD_UNIT_EXPRESS_ID = "946167770" // 信息流
var AD_UNIT_SPLASH_ID = "887459392" // 开屏
var AD_UNIT_VIDEO_ID = "946018378" // 激励视频
fun init(application: MintsApplication) {
TTGroMoreAdManagerHolder.init(application)
......
......@@ -21,6 +21,7 @@ public class TtCsjAdManager {
/*splash*/
public static String TT_AD_SPLASH = "887441594";// 开屏
public static String TT_AD_GRO_SPLASH = "887486105";// gro兜底开屏
/*banner*/
public static String TT_AD_BANNER_MY = "945661050";// 个人中心
......
......@@ -95,7 +95,7 @@ public class SplashGroMoreActivity extends BaseActivity {
//自定义兜底方案 选择使用
TTNetworkRequestInfo ttNetworkRequestInfo;
//穿山甲兜底
// ttNetworkRequestInfo = new PangleNetworkRequestInfo(TtCsjAdManager.TT_AD_APPID, "887483103");
ttNetworkRequestInfo = new PangleNetworkRequestInfo(TtCsjAdManager.TT_AD_APPID, TtCsjAdManager.TT_AD_GRO_SPLASH);
//gdt兜底
// ttNetworkRequestInfo = new GdtNetworkRequestInfo(YlhAdManager.YLH_AD_APPID, "2001697222975737");
//ks兜底
......@@ -105,8 +105,8 @@ public class SplashGroMoreActivity extends BaseActivity {
//step4:请求广告,调用开屏广告异步请求接口,对请求回调的广告作渲染处理
// mTTSplashAd.loadAd(adSlot, ttNetworkRequestInfo, new TTSplashAdLoadCallback() {
mTTSplashAd.loadAd(adSlot, new TTSplashAdLoadCallback() {
mTTSplashAd.loadAd(adSlot, ttNetworkRequestInfo, new TTSplashAdLoadCallback() {
// mTTSplashAd.loadAd(adSlot, new TTSplashAdLoadCallback() {
@Override
public void onSplashAdLoadFail(AdError adError) {
LogUtil.d(TAG, adError.message);
......
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