Hi I am working with AdMob in my app.
The following method used to set unit Id and set TestDevice.
public static void getInterstitialAdInstace(final Context mContext) {
// Create the interstitial.
interstitialView = new InterstitialAd(mContext);
interstitialView.setAdUnitId(mContext.getResources().getString(
R.string.GoogleAdMob_interAdUnitId));
AdRequest adRequest = new AdRequest.Builder().addTestDevice(
AdRequest.DEVICE_ID_EMULATOR).build();
interstitialView.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
}
});
// Begin loading your interstitial.
interstitialView.loadAd(adRequest);
}
The following method used to show the interstitial ad.
public static void displayInterstitial() {
if (interstitialView != null) {
if (interstitialView.isLoaded()) {
interstitialView.show();
}
}
}
We successfully uploaded the app into play store. But after few months we are getting zero impressions. We checked with code. The log-cat shows the following errors.
No fill from ad server.
No fill from any mediation ad networks.
I explored some. One of the among them is Link 1
What should I do? Need to create any new AdUnitId? or anything need to do?