androidflutteradmobadmob-rewardedvideoadgoogle-mobile-ads

Test Rewarded ad not displaying - Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.)


I'm currently unable to display a test rewarded ad. I am using the rewarded ad Sample ad unit ID provided in the doc: ca-app-pub-3940256099942544/5224354917.

I am getting error code 3, which according to the documentation:

The ad request was successful, but no ad was returned due to lack of ad inventory.

Which doesn't seem to make sense as this is a test ad, and should always be available?

The full error:

Ad failed to load: LoadAdError(code: 3, domain: com.google.android.gms.ads, message: No ad config.) => No ad config.

For reference, I've also opened an issue on the googleads-mobile-flutter repo with the full log outputs.

Any ideas why I wouldn't be able to fetch even a test ad?

Also please leave a comment if you've been able to successfully display test rewarded ads or real rewarded ads with this plugin lately.


Solution

  • UPDATE: The issue has resolved itself without any changes to the code. I can only assume that there was an issue on Google AdMob's side.

    Nonetheless, the answer below still allowed to test ads while the sample ad unit was not working.

    If you get here because the sample ad provided here does not work, see the rest of this answer for an alternative solution.


    It seems that using a real ad unit works, as opposed to the sample rewarded ad unit ca-app-pub-3940256099942544/5224354917. Thank you @Kurt Lee Kalbus

    I am not sure why the sample ad unit doesn't work at the moment, but it seems like an error from the server.

    If you need to test rewarded ads right now, without serving real ads:

    Otherwise, you should add your device to your list of test devices before using a real ad unit. See Add your test device in the AdMob UI