Admob 横幅广告在发布我的应用程序后没有出现
Admob Banner Ads are not appearing after publishing my application
我几天前在 Play 商店发布了我的应用程序,一切正常,广告(横幅广告和插页式广告)按预期出现。但是今天,我发现出现了插页式广告,但没有出现横幅广告。这是我的第一个应用程序,我不知道可能是什么问题。
有时,由于 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.
}
});
我几天前在 Play 商店发布了我的应用程序,一切正常,广告(横幅广告和插页式广告)按预期出现。但是今天,我发现出现了插页式广告,但没有出现横幅广告。这是我的第一个应用程序,我不知道可能是什么问题。
有时,由于 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.
}
});