Test ads not showing

939 views
Skip to first unread message

Peter Rule

unread,
Sep 2, 2021, 6:01:34 AM9/2/21
to Google Mobile Ads SDK Developers
Hello,
Test banner ads have stopped being served in beta versions of my iOS app. This is happening on devices and in the simulator.  Real ads appear ok.  This has started happening in the last few days.
I am using test adUnitID ca-app-pub-3940256099942544/2934735716.
If I request a real ad in the simulator then they appear ok with "Test mode" superimposed.

This brings me to another general question- when beta testing on real devices should I use the test adUnitID or a real one.

regards
Peter

Mobile Ads SDK Forum Advisor

unread,
Sep 2, 2021, 9:20:02 AM9/2/21
to randrd...@gmail.com, google-adm...@googlegroups.com
Hi Peter,

Thank you for bringing this issue to our attention. First let me start by saying that when doing testing in general we suggest using the test ids for both real and simulator devices. It is strongly suggested to not use real ads as it is possible that you can be tagged for invalid traffic. With that in mind the fact hat you have the device setup as a test device and are able to see the real ads, with test superimposed, suggest that the SDK is properly implemented. The fact that you are not getting the test ad could be because you have the device set up as a test device.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2MkuzO:ref

Peter Rule

unread,
Sep 5, 2021, 6:35:42 AM9/5/21
to Google Mobile Ads SDK Developers
Hi William,
Thanks for the response.
Re test ads in the simulator and devices.not showing, in the console I get the following-
To get test ads on this device, set: 
Objective-C
GADMobileAds.sharedInstance.requestConfiguration.testDeviceIdentifiers = @[ kGADSimulatorID ];
Swift
GADMobileAds.sharedInstance().requestConfiguration.testDeviceIdentifiers = [ kGADSimulatorID ]

I didn't have to do this before.  Has something changed in the mobile ads SDK recent updates?
Regards
Peter

Mobile Ads SDK Forum Advisor

unread,
Sep 6, 2021, 3:52:15 AM9/6/21
to randrd...@gmail.com, google-adm...@googlegroups.com

Hello Peter,

Thank you for reaching out to us.

I work with William and will be assisting you on this. With regard to the error you are getting, if you plan to run your app on your tested device, you need to enable the test device and include the test device id in your implementation. You can check this guide on how to enable it and get the test device id. Also, as per checking there are no recent updates with regards to enabling test devices.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2MkuzO:ref

Peter Rule

unread,
Sep 10, 2021, 6:10:31 AM9/10/21
to Google Mobile Ads SDK Developers
Hi,

It is with the Xcode simulator that I suddenly have this problem.
If I request a real ad it appears.
If I request bannerView.adUnitID = "ca-app-pub-3940256099942544/2934735716". The test ID. I no longer receive a test ad or an error message.
I have tried adding GADMobileAds.sharedInstance().requestConfiguration.testDeviceIdentifiers = [ kGADSimulatorID ]

Any ideas?

regards
Peter

Peter Rule

unread,
Sep 10, 2021, 12:25:38 PM9/10/21
to Google Mobile Ads SDK Developers
I forgot to add thatbannerView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: NSError)

is not called

Mobile Ads SDK Forum Advisor

unread,
Sep 10, 2021, 5:28:44 PM9/10/21
to randrd...@gmail.com, google-adm...@googlegroups.com
Hi Peter,

Thank you for responding back. I believe that this has to do with the fact that you have the phone/device setup as the test device, so that could explain why the test ad does not show up. At the same time, since you clearly have the device setup as a test device and are able to receive real ads with the safe test mode. This would make me say that your implementation is fine. 

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2MkuzO:ref

Peter Rule

unread,
Sep 12, 2021, 8:40:29 PM9/12/21
to Google Mobile Ads SDK Developers
Hi William,
The guide states "Key Point: iOS simulators are automatically configured as test devices."
So if I am receiving real ads in the simulator why not test ads suddenly?

Also in reading the guide again to try and solve this I came across this-

"Caution: If you set up an app-ads.txt file for your app, you need to also include this line in your app-ads.txt file in order to load ads using the demo ad units:

google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0"

I have had app-ads.txt set up for a long time and test ads have always appeared until recently.
Should I insert this in my app-ads.txt?
Peter

Peter Rule

unread,
Sep 12, 2021, 8:44:08 PM9/12/21
to Google Mobile Ads SDK Developers
Hi
I still cannot display test ads in the simulator.
I get this message in the console-
" Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target."
Is this the cause and how do I fix it?
regards
Peter
On Friday, 10 September 2021 at 22:28:44 UTC+1 mobileadssdk wrote:

Mobile Ads SDK Forum Advisor

unread,
Sep 13, 2021, 4:34:17 AM9/13/21
to randrd...@gmail.com, google-adm...@googlegroups.com
Hi Peter,

Thank you for reaching out to us.

Thanks for reaching out to us. I have tested our test Ad unit Ids with our samples and I don't see any issues with the latest version of the SDK (please see attached file). Can you make sure to import the SDK into an iOS project via CocoaPods again and see if you are still seeing the issue. If you are able to reproduce the issue with our samples, can you send us the complete device logs and also Charles logs for us to take a look? You can use "Reply Privately to Author" option to share the details privately. 

Regards,
Google Logo
Teejay Wennie Pimentel
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2MkuzO:ref
Screen Shot 2021-09-13 at 2.41.53 PM.png

Peter Rule

unread,
Sep 19, 2021, 9:16:11 PM9/19/21
to Google Mobile Ads SDK Developers
Hi 
I have updated the SDK to 8.11.0 after uninstalling the pod then reinstalling but I still get the console warning;
<Google> Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.

I am using the test adunit "ca-app-pub-3940256099942544/2934735716"
Test ads have worked fine for several years but now they have stopped appearing.  There is no error message returned to 
bannerView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: NSError)

Regards
Peter

Mobile Ads SDK Forum Advisor

unread,
Sep 20, 2021, 2:01:41 AM9/20/21
to randrd...@gmail.com, google-adm...@googlegroups.com
Hi Peter,

Thank you for getting back to us.

Could you kindly provide to us a project (or at least a test project) showing the behavior? This will greatly help us in our investigation. Kindly use "Reply Privately to Author" option to share the details privately. 

Peter Rule

unread,
Sep 20, 2021, 2:23:25 PM9/20/21
to Google Mobile Ads SDK Developers
Hi,
The conversation from 2018 is the problem I am seeing.  How was this resolved?
https://groups.google.com/g/google-admob-ads-sdk/c/J6Z0oG_0D5Q/m/AAHXRPH3FwAJ
Peter

Mobile Ads SDK Forum Advisor

unread,
Sep 20, 2021, 5:42:27 PM9/20/21
to randrd...@gmail.com, google-adm...@googlegroups.com
Hi Peter,

Thank you for reaching back out to us with your concern. We are unable to look more into the thread that you mentioned as it is pretty far back and the current SDK is far enough removed from it so as to not be current. What I could find on this, is that it appears to be a message that you have no ads to be served to you. We would also ask how old the file is that is being used, the previous versions were that you saw it? This should not be visible anymore.

Peter Rule

unread,
Sep 24, 2021, 6:00:43 AM9/24/21
to Google Mobile Ads SDK Developers
Hi William,
I have 3 apps. Two iOS and one Android.  All three no longer show test ads but real ads show ok.
The Android one and one of the iOS apps have had no code changes for months.
So I think this must be something at my account level.
What do you think?
Regards
Peter

Mobile Ads SDK Forum Advisor

unread,
Sep 27, 2021, 4:55:34 AM9/27/21
to randrd...@gmail.com, google-adm...@googlegroups.com

Hello Peter,

Thank you for your response.

For us to further investigate this, could you please provide us a sample app with your minimum modification so that we can further check your implementation? You can send it via Reply privately to author option or send it directly to mobileads...@gmail.com. Kindly inform us on this thread if you sent it directly to the email provided.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2MkuzO:ref

Peter Rule

unread,
Sep 27, 2021, 12:43:38 PM9/27/21
to Google Mobile Ads SDK Developers
Test ads have started to appear on all my apps. :)
The only change I made was to my app-ads.txt file.  I re-read the test unit implementation guide and there it states that you must include the following line in the app.ads.txt;
google.com, pub-3940256099942544, DIRECT, f08c47fec0942fa0
So at the moment this issue is solved for me.
Peter

Alexey Mezhevikin

unread,
Oct 14, 2021, 9:57:16 AM10/14/21
to Google Mobile Ads SDK Developers
Hi There. I have the same problem. Test ads not show.
Used to be it worked. The problem arose after update xcode to 13 and Admob to 8.12.0.
The only problem is with the test id.

 ** Mediation line items **

    Entry (1)

    Network: com.google.DummyAdapter

    Credentials:

{

}

    Error: Error Domain=com.google.admob Code=8 "Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target." UserInfo={NSLocalizedDescription=Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.}

    Latency: 0.001

}

понедельник, 27 сентября 2021 г. в 19:43:38 UTC+3, Peter Rule:

Mobile Ads SDK Forum Advisor

unread,
Oct 14, 2021, 11:13:30 AM10/14/21
to mezhe...@gmail.com, google-adm...@googlegroups.com
Hi Alexey.

Thank you for reaching out to us with your concern. In looking over the error log that you show, it would appear that the  SDK is not properly installed into the app. That is why you are seeing an issue with the linker files. We would also ask if you can share with us via the "Reply to Author" button, With a sample of your app, as well as appId and Ad Unit Id. Also include any steps to replicate, Charles logs or error logs.

Regards,
Google Logo
William Pescherine
Mobile Ads SDK Team
 


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