0

So i have this app on the market right now, and it doesn't show the ads. I found it weird so I started to debug. The ads worked fine on the emulator and it said something like "You are running a test ad" on the ad banner.

However now that im trying to debug with an actual android device i see that no ad really shows up. I tried everything, all the questions simillar to this etc. But nothing has helped yet.

Currently just trying to see even test ads on my actual device isn't working and giving me this error:

There was a problem getting an ad response. ErrorCode: 0
Failed to load ad: 0

Here is my code:

MainActivity onCreate:

MobileAds.initialize(this, "ca-app-pub-api key stuff");
mAdView = (AdView) findViewById(R.id.adView);
adRequest = new AdRequest.Builder()
          .addTestDevice("74555080... device test id stuff")
          .build();
mAdView.loadAd(adRequest);

XML for adview:

 <com.google.android.gms.ads.AdView
            android:id="@+id/adView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_centerHorizontal="true"
            android:layout_marginBottom="5dp"
            ads:adSize="BANNER" />

And android manifest:

<uses-permission android:name="android.permission.INTERNET" />

I have created my ad banner almost 3 weeks ago, I am aware it takes a while, but 3 weeks is not a while, there must be a problem that I am not seeing.

If anyone know how to contact Google about this, or a fix please let me know because this is really frustrating as to why my ad unit isn't showing up.

My ad unit by the way is just a basic banner i made, 0 mediation groups, 0 campaigns with it (i don't know if that matters.)

ZarifS
  • 467
  • 1
  • 11
  • 20
  • If it shows up on your emulator, it should show in real device. Did you check internet connection? And what do you mean with "no add really show up"? – HB. Sep 23 '17 at 16:15
  • I'd edit out those api keys if they're your real ones. – Drew Szurko Sep 23 '17 at 16:16
  • @H.Brooks what i meant is, in the google play store app, i was hearing the ad banner never showed up, and when i tried it on my new android phone i got to debug, it was indeed true, regardless of being a test ad or not, nothing would show up on the device, but it works on the emulator, this is a big problem.. – ZarifS Sep 23 '17 at 19:55

0 Answers0