几天前,Admob停止了我的一个应用程序内的广告,因为它鼓励用户意外点击
这是我的代码
interstitial = new InterstitialAd(this);
interstitial.setAdUnitId(getResources().getString(R.string.interstitial_ad_unit_id));
AdRequest adRequest2 = new AdRequest.Builder().build();
interstitial.loadAd(adRequest2);
interstitial.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
displayInterstitial();
}
});
和
public void displayInterstitial() {
if (interstitial.isLoaded()) {
interstitial.show();
}
该代码是否应预先加载插页式广告!!