我已经实施了Facebook广告在我的Android应用程序P和使用下面的代码显示广告后,每40秒,我也加入了我的测试设备,但当我测试我的应用程序在我的设备,广告不显示。请帮助我,提前感谢。
@Override
protected void onStart(){
super.onStart();
isVisible = true;
if(scheduler == null){
scheduler = Executors.newSingleThreadScheduledExecutor();
scheduler.scheduleAtFixedRate(new Runnable() {
public void run() {
Log.i("hello", "world");
runOnUiThread(new Runnable() {
public void run() {
if(interstitialAd.isAdLoaded() )
{interstitialAd.show();}
else
{Log.d("TAG"," Interstitial not loaded");}
prepareAd();
}
});
}
}, 8, 40, TimeUnit.SECONDS);
}
}