简体   繁体   中英

Admob Ads are not showing on Real Devices

Test Ad ids are working whenever tried with real ad mob ids ads are not visible

Here check your adView listener

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" , ""+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.
}
});

if error code is 3 that means there is no ads to serve you but your implementation is right.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM