Fea*_*ill 1 java android admob
我正在编写应用程序并使用插页式广告单元(使用 Google-AdMob)。我想对其进行编程,以便广告会在特定时间后自动关闭广告。这是我正在谈论的代码:
private void showInterstitial() {
// Show the ad if it's ready. Otherwise toast and reload the ad.
if (mInterstitialAd != null && mInterstitialAd.isLoaded()) {
mInterstitialAd.show();
try {
Thread.sleep(1);
} catch (InterruptedException e) {
e.printStackTrace();
}
//here I need to close the ad
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
925 次 |
| 最近记录: |