4

I've setup AdMob on Android to load a test ad unit ca-app-pub-3940256099942544/2247696110, this used to work fine before but now I'm getting an error. I think it is related to app-ads.txt, which is configured fine for my own ads but maybe it fails on the test ad units? Is there a way to get around this when using MoPub to mediate?

{
  "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": []
  }
}
casolorz
  • 8,486
  • 19
  • 93
  • 200

3 Answers3

0

you just need to change the package name in build.gradle (app)

defaultConfig {
        applicationId "com.yourpacket.name"
Alan Kurniadi
  • 139
  • 1
  • 5
0

Solution 1 : You should add a test device to your admob account to see ads on your phone.

Solution 2 : Change package name of your app

defaultConfig {
    applicationId "com.yourpacket.name"
0

I believe this solves the issue https://developers.google.com/admob/android/test-ads

You have to add an entry to your app-ads.txt

casolorz
  • 8,486
  • 19
  • 93
  • 200