"No ad to show" with Ad Manager

1,104 views
Skip to first unread message

Nayan Patel

unread,
Feb 25, 2019, 8:46:18 AM2/25/19
to Google Mobile Ads SDK Developers
Hello -- I am stuck trying to validate that my ios integration works with a real ad manager ad unit.  Everything works fine with the test ad unit.  I am not able to get my ad unit to load in the AdManagerBannerExample either.

Below is the log from the example app and the code.

Thanks in advance.

Log:


Google Mobile Ads SDK version: afma-sdk-i-v7.40.0
2019-02-25 08:42:17.439077-0500 AdManagerBannerExample[66189:3466991] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/nayan9/Library/Developer/CoreSimulator/Devices/E77CCC20-28B9-4087-9121-819951FB8DC3/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-02-25 08:42:17.442735-0500 AdManagerBannerExample[66189:3466991] [MC] Reading from private effective user settings.
2019-02-25 08:42:17.463399-0500 AdManagerBannerExample[66189:3467057] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463581-0500 AdManagerBannerExample[66189:3467057] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463595-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463701-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service na2019-02-25 08:42:17.463710-0500 AdManagerBannerExample[66189:3467052] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.463933-0500 AdManagerBannerExample[66189:3467052] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
med com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464423-0500 AdManagerBannerExample[66189:3467052] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464466-0500 AdManagerBannerExample[66189:3467057] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464518-0500 AdManagerBannerExample[66189:3467052] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.464566-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465364-0500 AdManagerBannerExample[66189:3467052] [Client] Synchronous remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465445-0500 AdManagerBannerExample[66189:3467051] [Client] Remote object proxy returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465589-0500 AdManagerBannerExample[66189:3467052] [NetworkInfo] Descriptors query returned error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:17.465748-0500 AdManagerBannerExample[66189:3467051] [Client] Sending selectors failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated." UserInfo={NSDebugDescription=The connection to service named com.apple.commcenter.coretelephony.xpc was invalidated.}
2019-02-25 08:42:18.813890-0500 AdManagerBannerExample[66189:3467065] WF: === Starting WebFilter logging for process AdManagerBannerExample
2019-02-25 08:42:18.814085-0500 AdManagerBannerExample[66189:3467065] WF: _userSettingsForUser : (null)
2019-02-25 08:42:18.814172-0500 AdManagerBannerExample[66189:3467065] WF: _WebFilterIsActive returning: NO
adView:didFailToReceiveAdWithError: Request Error: No ad to show.

Code:

import GoogleMobileAds
import UIKit

class ViewController: UIViewController, GADBannerViewDelegate  {

  /// The AdManager banner view.
  @IBOutlet weak var bannerView: DFPBannerView!

  override func viewDidLoad() {
    super.viewDidLoad()
    print("Google Mobile Ads SDK version: \(DFPRequest.sdkVersion())")
    bannerView.adUnitID = (redacted my adUnitId) // doesn't work
//    bannerView.adUnitID = "/6499/example/banner" // works
    bannerView.rootViewController = self
    let request = DFPRequest()
    request.testDevices = [ kGADSimulatorID, "380da1fadb8ab775d2a6451488972faf" ]
    bannerView.load(request)
    bannerView.delegate = self
  }

    func adView(_ bannerView: GADBannerView,
                didFailToReceiveAdWithError error: GADRequestError) {
        print("adView:didFailToReceiveAdWithError: \(error.localizedDescription)")
    }
}

mobileadssdk...@google.com

unread,
Feb 25, 2019, 12:22:27 PM2/25/19
to Nayan Patel, Google Mobile Ads SDK Developers
Hello there,

Thanks for reaching out to us. Can you please share your Ad unit Id for us to take a look? Is this a newly created Ad unit Id? Have your tired the test Ad unit Id in your app? 

You can use "Reply Privately to Author" option to share the details privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/bfb1420b-fd9f-4e8d-b627-7e8223deb4f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mobileadssdk...@google.com

unread,
Feb 26, 2019, 3:35:55 PM2/26/19
to Nayan Patel, Google Mobile Ads SDK Developers
Hello Nayan,

Thanks for sharing your Ad unit Id. Since you mentioned that you were able to load test ads on your end then it is safe to assume that you SDK code implementation is correct. This seems to be purely an Ad serving issue with the creative and I would suggest that you reachout to Google Ad Manager Help Forum  and they will be able to help you out. That said, I was not able to load Ads with that Ad unit Id as well. 

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

Nayan Patel

unread,
Feb 26, 2019, 8:30:50 PM2/26/19
to mobileadssdk...@google.com, Google Mobile Ads SDK Developers
Ok thanks.  I will reach out to the ad manager forum.

-N


To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

FullStack Coach

unread,
Mar 1, 2019, 12:09:43 PM3/1/19
to google-adm...@googlegroups.com
Hi, Mobileadssdk-forumadvisor!
Same issue to me.
Please take a look at my app and unit it.
App Id:             ca-app-pub-XXXXXXXXXX~XXXXXXXXX
Banner Unit Id:     ca-app-pub-XXXXXXXXXX/XXXXXXXXX

mobileadssdk...@google.com

unread,
Mar 1, 2019, 1:27:35 PM3/1/19
to FullStack Coach, Google Mobile Ads SDK Developers
Hello there,

Thanks for reaching out to us. Please note that I have masked the Ad unit Ids as you have posted them on public forum. If you want to share your Ad unit Ids with us in furture, please use "Reply Privately to Author" option. That said, I was able to load ads with your Ad unit Id without any issues using our sample apps.  Have you tried your Ad unit Ids with our sample apps? Please note that if you have made any recent changes to your account, I would suggest that you wait for few hours and try to load ads again. And, please send us your complete device logs so that we can check what error code is being triggered in the logs.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

FullStack Coach

unread,
Mar 1, 2019, 2:15:12 PM3/1/19
to Google Mobile Ads SDK Developers
Thanks for your reply.
I was able to load ads with test Ad unit id using sample apps. But with my Ad unit Ids, i am not able to load any ads at all. And my account is just approved 3 hours ago.
Let me attach my logo - it says that 'No ad to show.'
------------------------------------------------------------------------------------------
2019-03-01 12:10:27.364154-0700 BannerExample[1873:184788] [DYMTLInitPlatform] platform initialization successful
2019-03-01 12:10:27.530300-0700 BannerExample[1873:184646] [Accessibility] ***************** Loading GAX Client Bundle ***************
2019-03-01 12:10:28.016129-0700 BannerExample[1873:184646] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-03-01 12:10:28.018133-0700 BannerExample[1873:184646] [MC] Reading from public effective user settings.
2019-03-01 12:10:28.229573-0700 BannerExample[1873:184816] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x281ac7220, domain=1, instance=1>
2019-03-01 12:10:28.360266-0700 BannerExample[1873:184646] [avas] AVAudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)
2019-03-01 12:10:28.404923-0700 BannerExample[1873:184777] Metal GPU Frame Capture Enabled
2019-03-01 12:10:28.416697-0700 BannerExample[1873:184777] Metal API Validation Enabled
2019-03-01 12:10:30.662230-0700 BannerExample[1873:184814] WF: === Starting WebFilter logging for process BannerExample
2019-03-01 12:10:30.662360-0700 BannerExample[1873:184814] WF: _userSettingsForUser mobile: {
    filterBlacklist =     (
    );
    filterWhitelist =     (
    );
    noOverridingAllowed = 1;
    restrictWeb = 1;
    useContentFilter = 0;
    useContentFilterOverrides = 0;
    whitelistEnabled = 0;
}
2019-03-01 12:10:30.662795-0700 BannerExample[1873:184814] WF: _WebFilterIsActive returning: NO
2019-03-01 12:10:32.735878-0700 BannerExample[1873:184646] adView:didFailToReceiveAdWithError: Request Error: No ad to show.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Looking forward to your help. Thanks!

mobileadssdk...@google.com

unread,
Mar 1, 2019, 4:20:31 PM3/1/19
to FullStack Coach, Google Mobile Ads SDK Developers
Hello there,

As your account is newly approved, it might be the reason for "No Ad to show" error. My suggestion would be to wait few more hours and try again as the newly created Ad unit Ids might take sometime to start serving Ads. Could you also confirm us if you're loading the ads by turning of the Limit Ad Tracking settings in the device? Please share the Charles Proxy logs with SSL Proxy enabled, it will help us troubleshoot the issue further. You can refer to this Help Center Article on how to properly set it up. You can reply back via Reply privately to author option. 

Regards,
Deepika Uragayala
Mobile Ads SDK Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+ page:
    http://googleadsdeveloper.blogspot.com
    https://plus.google.com/115658573333388777174/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages