我为客户端开发了一个 android 应用程序,因为我正在使用 mdotm 集成广告。但是在应用程序中无法显示直播广告,如果是测试广告,则显示成功。
代码
adView = (MdotMAdView)findViewById(R.id.mdotm_ad_view);
request = new MdotMAdRequest();
request.setAppKey("1e05e3a737c4f008ed68470d4c312316");// jim
//request.setTestMode("1");// for test ads
request.setTestMode("0");// for live ads
request.setEnableCaching(true);
// request.setAdRefreshInterval(10); // here value is in seconds
// adView.loadAd(this, request);
interstitial.loadInterstitial(this, request);
-------------------------------------------------------------------------------
public void loadInterstitial(MdotMAdEventListener listener, MdotMAdRequest adRequest) {
mAdEventListener = listener;
isInterstitialReady = false;
MdotMNetworkManager mAdManager = MdotMNetworkManager.getInstance(mContext);
mAdManager.setAdNetworkListener(this);
adRequest.setLoadInterstitial(true);
adRequest.setAdSize(MdotMUtils.getUtilsInstance().getDisplaySize(mContext));
/ //TODO remove this
// adRequest.setAdSize(MdotMAdSize.BANNER_320_480);
interstitialResponse = null;
mAdManager.sendRequest(adRequest);
}
如果是测试广告,这很好,但如果是实时广告,我没有得到任何响应,即响应是空的。
请检查上面的代码并帮助我哪里出错了?