Reputation: 510
I had a game which I designed using libgdx.
It was displaying ads before publishing it on Google Play as I tested it by this code:
adView = new AdView(this);
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId(AD_UNIT_ID);
AdRequest adRequest = new AdRequest.Builder().addTestDevice(TEST_DEVICE).build();
adView.loadAd(adRequest);
Before publishing the game I changed some lines of my code to be like this:
adView = new AdView(this);
adView.setAdSize(AdSize.BANNER);
adView.setAdUnitId(AD_UNIT_ID);
AdRequest.Builder builder = new AdRequest.Builder();
adView.loadAd(builder.build());
but it shows no ads now.
Is there a problem in my code or it may be in my admob or adsense accounts which I have recently made for the first time ?
Upvotes: 2
Views: 2442
Reputation: 20140
Test Ad working fine but not getting live Ads.
Follow these steps :
Wait for some times/hours.
If you're able to load test ads but not live ads, It sounds like an issue with your AdMob account.
After waiting still having problem then you need to cross check Ad unit Id and AppId from AdMob account.
Upvotes: 1
Reputation: 158
Upvotes: 0