发布我的申请后,Admob Banner Ads不会显示

时间:2018-05-14 08:55:35

标签: android admob ads

我几天前在Play商店发布了我的应用程序,一切正常,广告(横幅和插页式广告)按预期显示。但今天,我发现插页式广告正在出现,但不会出现横幅广告。这是我的第一个申请,我不知道可能是什么问题。

1 个答案:

答案 0 :(得分:0)

由于Google广告资源中缺少广告,有时广告不会展示。您可以检查广告请求响应代码。

mAdView.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
    // Code to be executed when an ad finishes loading.
}

@Override
public void onAdFailedToLoad(int errorCode) {
    // Code to be executed when an ad request fails.
    Log.d("ADMOB_ERROR_CODE", "admob error code: " + errorCode);
}

@Override
public void onAdOpened() {
    // Code to be executed when an ad opens an overlay that
    // covers the screen.
}

@Override
public void onAdLeftApplication() {
    // Code to be executed when the user has left the app.
}

@Override
public void onAdClosed() {
    // Code to be executed when when the user is about to return
    // to the app after tapping on an ad.
}
});

进一步阅读:https://developers.google.com/admob/android/banner