[Android] AdMob test ads no longer appear, showing No ad config error message

85 views
Skip to first unread message

mouaadabdelg...@gmail.com

unread,
Nov 19, 2021, 7:30:48 AM11/19/21
to Google Mobile Ads SDK Developers

I'm trying to test the ads in my app, I'm using the following test ads unit :

InterstitialAd.load(activity, StringUtils.getString(R.string.Inter), adRequest, new InterstitialAdLoadCallback() {
  @Override
  public void onAdLoaded(@NonNull InterstitialAd interstitialAd) {
    interstitialAd.show(activity);
    interstitialAd.setFullScreenContentCallback(new FullScreenContentCallback() {
      @Override
      public void onAdDismissedFullScreenContent() {
        adsCallBack.onAdClosed();
        Log.d("TAG", "The ad was dismissed.");
      }

      @Override
      public void onAdShowedFullScreenContent() {
        Log.d("TAG", "The ad was shown.");
      }
    });
  }

  @Override
  public void onAdFailedToLoad(@NonNull LoadAdError loadAdError) {
    Log.d("AdMob", "==> " + loadAdError.getMessage());
  }
});


<string name="APP_ID">ca-app-pub-3940256099942544~3347511713</string>
 <string name="Inter">ca-app-pub-3940256099942544/1033173712</string>

I always get : No ad config

I've added the following line to my app-ads.txt

google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0

AdMob SDK :

implementation 'com.google.android.gms:play-services-ads:20.4.0'


Mobile Ads SDK Forum Advisor

unread,
Nov 21, 2021, 11:55:10 PM11/21/21
to mouaadabdelg...@gmail.com, google-adm...@googlegroups.com

Hello Mouaadabdelghafouraitali,

Thank you for reaching out to us.

For us to further investigate this, could you please provide the following details via Reply privately to author option or send it directly to mobileads...@gmail.com? Kindly inform us on this thread if you sent it directly to the email provided.

  • Sample app implementation
  • Steps to replicate
  • Device and versions used

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2RubuT:ref
Reply all
Reply to author
Forward
0 new messages