"Request Error: No ad to show.." error on Xcode 10 Swift 5

408 views
Skip to first unread message

Pranav Ramesh

unread,
Feb 27, 2019, 4:04:10 PM2/27/19
to Google Mobile Ads SDK Developers
Hello,
I have a problem with the AdMob service. When I set my "adUnitID" in Xcode to the banner app unit ID that I want, I get the following errors:

2019-02-27 16:03:01.812717-0500 GPA Calculator[32542:868329] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/pranavramesh/Library/Developer/CoreSimulator/Devices/D8B99435-B76C-4E13-9EDB-935C6FAC2220/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-02-27 16:03:01.813744-0500 GPA Calculator[32542:868329] [MC] Reading from private effective user settings.
2019-02-27 16:03:01.856595-0500 GPA Calculator[32542:868329] [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-27 16:03:01.856598-0500 GPA Calculator[32542:868317] [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-27 16:03:01.856781-0500 GPA Calculator[32542:868329] [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-27 16:03:01.856789-0500 GPA Calculator[32542:868318] [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-27 16:03:01.856794-0500 GPA Calculator[32542:868317] [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-27 16:03:01.857085-0500 GPA Calculator[32542:868318] [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-27 16:03:01.857517-0500 GPA Calculator[32542:868318] [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-27 16:03:01.857663-0500 GPA Calculator[32542:868328] [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-27 16:03:01.857679-0500 GPA Calculator[32542:868329] [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-27 16:03:01.857772-0500 GPA Calculator[32542:868329] [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-27 16:03:01.858548-0500 GPA Calculator[32542:868329] [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-27 16:03:01.858677-0500 GPA Calculator[32542:868328] [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-27 16:03:01.858807-0500 GPA Calculator[32542:868329] [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-27 16:03:01.858971-0500 GPA Calculator[32542:868318] [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-27 16:03:02.624669-0500 GPA Calculator[32542:868348] WF: === Starting WebFilter logging for process GPA Calculator
2019-02-27 16:03:02.624822-0500 GPA Calculator[32542:868348] WF: _userSettingsForUser : (null)
2019-02-27 16:03:02.624957-0500 GPA Calculator[32542:868348] WF: _WebFilterIsActive returning: NO

adView:didFailToReceiveAdWithError: Request Error: No ad to show..

I don't understand why I am receiving this error. In AdMob, all the payments are set up, I have successfully added a new app to the AdMob account, and when I use the test ad unit ID, everything works fine. Also, I have waited for 36 hours for the ad unit to register, but that doesn't do anything. I want to know why the real ad unit ID doesn't work.

Here is my view controller code:

override func viewDidLoad() {

        super.viewDidLoad()

        

        bottomAdBanner.adUnitID = "--- my ad unit ID ---"

        

        bottomAdBanner.rootViewController = self


        bottomAdBanner.delegate = self


        let request = GADRequest()

        request.testDevices = [kGADSimulatorID]

        bottomAdBanner.load(request)

        

        

    }


And here is the code I use in the App Delegate's didFinishLaunchingWithOptions function:

GADMobileAds.configure(withApplicationID: "--- My app ID ---")


How can I fix this? (Also, do the other errors have anything to do with it, and if so, how do I fix those?)

Thanks

mobileadssdk...@google.com

unread,
Feb 27, 2019, 5:35:22 PM2/27/19
to Pranav Ramesh, Google Mobile Ads SDK Developers
Hello Pranav,

Thanks for reaching out to us. Can you check if you are able to reproduce the issue by testing your Ad Unit ID with our sample appsAlso, can you make sure that your device Limit Ad Settings (Settings > Privacy > Advertising) are turned off? If you are still not able to load ads, please share your Ad unit Ids using "Reply Privately to Author" option for us to take a look.

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/d9e68884-cc8c-4498-86e7-0454d2b2343a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mobileadssdk...@google.com

unread,
Feb 28, 2019, 11:56:20 AM2/28/19
to Pranav Ramesh, Google Mobile Ads SDK Developers
Hello Pranav,

Thanks for sharing your Ad unit Id. I was not able to load ads with your Ad unit Ids using our sample apps. But, I have tried our test Ad unit Ids and few other Ad unit Ids on my device and was able to load ads without any issues. This looks like an account related issue to me as you were not able to load any ads with Ad unit Ids linked to your account. Please check if there are any issues on your account and reachout to our Product Support Team for further assistance on this as we would not be able to help with Ad serving issues with your Ad unit Ids and AdMob Product Support Team folks are more equipped to provide support for such issues.

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.

Pranav Ramesh

unread,
Feb 28, 2019, 3:03:00 PM2/28/19
to google-adm...@googlegroups.com
Hello,
I have created a new Google account and I set everything up, but I still get the same error that there is no ad to show. I had updated the app ID and the ad unit ID in my app as well, but it didn't do anything to fix the error. What should I do now?

Edit:
I figured out that if I put the GADBannerViewDelegate in the class name, then I will get the error that I cannot receive any ad:

class GPACalcHome: UIViewController, UITableViewDelegate, UITableViewDataSource, UIPickerViewDataSource, UIPickerViewDelegate, GADBannerViewDelegate {

Is this the reason it doesn't work, or am I supposed to include it like I did above?
Thanks

mobileadssdk...@google.com

unread,
Feb 28, 2019, 3:56:31 PM2/28/19
to Pranav Ramesh, Google Mobile Ads SDK Developers
Hello Pranav,

This seems to be more of an Ad serving issue rather than an issue with the SDK. I would suggest that you reachout to AdMob Product Support Team via the Help Forum  and please refer to these Account issues FAQs which might be helpful.

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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 02/28/19 15:03:00 pranav....@gmail.com wrote:
Hello,
I have created a new Google account and I set everything up, but I still get the same error that there is no ad to show. I had updated the app ID and the ad unit ID in my app as well, but it didn't do anything to fix the error. What should I do now?

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.

Pranav Ramesh

unread,
Mar 12, 2019, 3:47:29 PM3/12/19
to Google Mobile Ads SDK Developers
Hello,
Sorry I haven't been active here for a while, I was trying to find fixes to the problem.
I tried contacting the AdMob Product Support Team, but when I click "Contact us" on the help community page (that's where I was redirected when I clicked the link) it asks me what I want to change my country to.
I have tried creating multiple new accounts but still have the same problem.
I feel like the problem may be that my app was blacklisted. How do I know if my app itself has been blacklisted, and how can I appeal? I have tried looking this up but I am redirected to the same faulty page I mentioned before where it asks me what I want to change my country to.
Otherwise, is there any other fix to this problem?
Thanks

mobileadssdk...@google.com

unread,
Mar 12, 2019, 5:24:05 PM3/12/19
to Pranav Ramesh, Google Mobile Ads SDK Developers
Hello Pranav,

I suggest that you raise your concern over to the AdMob Help forum or reach out to the Product Support Team via this form. You can also send an appeal form to the Product Support Team.

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.
Reply all
Reply to author
Forward
0 new messages