Problem showing admob ads on iOS - (Real ads, test device set)

444 views
Skip to first unread message

Lukas

unread,
Apr 10, 2022, 6:23:26 AM4/10/22
to Google Mobile Ads SDK Developers
I have tested my app extensively using Test Ad Unit IDs supplied by Google. 
I believe my implementation is correct because ads show correctly with Test Ad Unit IDs.

However I run into problems when I change to Real Ad Unit IDs and set my iPhone to be a test device in admob settings.
Under these conditions, my game hangs at start up. I get a black screen  shortly after the app starts up. As soon as I go back to test ads, the app loads with no problems.

I have a suspicion this may be happening because in the admob dashboard, my iOS app is not linked to the app on the Apple App Store. But I can't link it because when I search for the app it cannot be found. The app has not been published / made public. Its only on TestFlight for internal testing therefore I dont think it can yet be linked? Is that right?

Also, Im not sure if this is even the problem, because even if app is unlinked, ads are only limited right? Not disabled completely... so test ads should still show even in an unlinked app? (provided the device is added as a test device)Im confused on this point?

Anyway, can someone please help me with. I can provide debugging data privately from Xcode if it helps?



Mobile Ads SDK Forum Advisor

unread,
Apr 11, 2022, 10:35:47 AM4/11/22
to littlegam...@gmail.com, google-adm...@googlegroups.com

Hi Lukas,

Thank you for reaching out to us.

Since you mentioned that our test ad unit id's are working properly in your app means that your implementation is correct. If you're unable to show ads on your real ad units id you can check this common reason for ads not showing for additional scenarios, as well as the fixes for those. You can try to link your app by following this guide, but if your app is not yet available for production then you can't find it when you're searching it. You can also try linking your app using your app link.

For the black screen behavior in your test device, it seems that you set up your test device programmatically, can you try setting it up via AdMob UI? In addition to that, you can check this article that provides you with a unified, at-a-glance view of all your apps and their approval status with actionable feedback. Also, we suggest to use our test ad unit when testing your app and make sure that your test device is enable to avoid invalid traffic.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


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