App Open Ads on admob - No ad config on test ads

Viewed 9479

We are trying to add a new format to our app. We used a test ad ca-app-pub-3940256099942544/1033173712. And in the onAppOpenAdFailedToLoad callback we get this

{
      "Code": 3,
      "Message": "No ad config.",
      "Domain": "com.google.android.gms.ads",
      "Cause": "null",
      "Response Info": {
        "Response ID": "null",
        "Mediation Adapter Class Name": "",
        "Adapter Responses": []
      }
    }

debug build.

What could be the problem?

Thanx

5 Answers

I have changed the application id in the app .gradle file. (change the example to a different one)

 defaultConfig {
    applicationId "com.____._____"
}

Before running the app, delete the Build folder and uninstall the previously installed app.

According to their doc, AdMob has new requirements in order to receive test ads:

Option 1 (worked for us): Add this line to the app-ads.txt file for your app, and wait 24h for the AdMob crawler to update it:

google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0

Option 2: Enable test devices as explained here for iOS and Android

I faced the same problem. Try to recreate RewardedAd object immediately before calling loadAd() like this:

rewardedVideoAd = new RewardedAd(mActivity, ADMOB_UNIT_ID);
rewardedVideoAd.loadAd(new AdRequest.Builder().build(), adLoadCallback);

Also make sure u did fresh install, and AndroidManifest contains your app id:

<meta-data
     android:name="com.google.android.gms.ads.APPLICATION_ID"
     android:value="ca-app-pub-0000000000~000000000"/>

In my case, I removed the ad unit id from the campaign I had associated it with. The error was immediately gone.

Not sure why, but it seems using the same ad unit id for ad serving and campaign(s) might also cause this issue. enter image description here

When you sure about your Android settings on your project, you have to check your Admob request counts whether you can successfully made a proper request or not.

enter image description here

So, according to the image above, go to Admob, choose your app, go to app overview page, and check your Request numbers probably ought to be different from zeros. If you can see only Zeros, you are making mistakes in your app. If it's different than zero, you have to wait your app must be get downloads from Google Play and users should stay in the app at least more than two minutes. Automatically every 30 seconds in a row, user will set a new ad request automatically, and probably they should make at least four requests by the app. Which means users are actively using your app and they might get an adview soon.

To sum up, wait new users to use your app and download from Google Play in the time.

Related