AdMob Banner: No ad to show.

261 views
Skip to first unread message

Никита Гайдуков

unread,
Jul 6, 2017, 1:35:44 PM7/6/17
to Google Mobile Ads SDK Developers
Hi 

I am trying to implement a banner view in my native iOS app. But i am getting this error: Error Domain=com.google.ads Code=1 "Request Error: No ad to show."
Here is my code:

        let bannerView = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait)
        bannerView
.frame = CGRect(x: 0, y: self.view.frame.height - bannerView.bounds.height, width: bannerView.bounds.width, height: bannerView.bounds.height)

       
self.navigationController?.view.addSubview(bannerView)
        bannerView
.adUnitID = Constants.Ad.bannerID
        bannerView
.rootViewController = self.navigationController!
        let request
= GADRequest()
        bannerView
.delegate = self
        bannerView
.load(request)


If i am trying to set a testDevices all is working. But live ads are not working. 


My ids: 
appID = "ca-app-pub-6655661937330636~4150784503"
adUnitID = "ca-app-pub-6655661937330636/7104250906"

Thank you in advance!

Никита Гайдуков

unread,
Jul 6, 2017, 1:37:27 PM7/6/17
to Google Mobile Ads SDK Developers
By the way. Example apps are not working with these id either. Thanks! 

четверг, 6 июля 2017 г., 20:35:44 UTC+3 пользователь Никита Гайдуков написал:

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Jul 6, 2017, 2:14:36 PM7/6/17
to Google Mobile Ads SDK Developers
Hello, 

Thank you for providing all the information. Your implementation looks good to me. However, I was able to reproduce the issue with our sample apps using your Ad Unit ID. It is more likely an issue with the account setup. Can you make sure that you have updated the Payments and Billing information in your AdMob account and try again? 

Let me know how it goes.

Regards,
Bharani Cherukuri
Mobile Ads SDK Team

Никита Гайдуков

unread,
Jul 6, 2017, 2:28:39 PM7/6/17
to Google Mobile Ads SDK Developers
Thank you for the prompt response. Still nothing, is there something specific that needs to be updated in the Payments and Billing? 


четверг, 6 июля 2017 г., 21:14:36 UTC+3 пользователь Bharani Cherukuri (Mobile Ads SDK Team) написал:

Bharani Cherukuri (Mobile Ads SDK Team)

unread,
Jul 6, 2017, 4:25:37 PM7/6/17
to Google Mobile Ads SDK Developers
Hello, 

Thank you for getting back. It might take a few hours for the changes to reflect and start serving live ads. I suggest that you wait up and try again. Also, can you try loading the ads by changing the Bundle Identifier. If changing the Bundle ID works, you will have to reach out to the AdMob Product Support Team to get this resolved. 

Regards,
Bharani Cherukuri
Mobile Ads SDK Team 

On Thursday, July 6, 2017 at 1:35:44 PM UTC-4, Никита Гайдуков wrote:

Никита Гайдуков

unread,
Jul 7, 2017, 5:30:17 AM7/7/17
to Google Mobile Ads SDK Developers
Hi

It seems like it's working now. Thank you!

четверг, 6 июля 2017 г., 23:25:37 UTC+3 пользователь Bharani Cherukuri (Mobile Ads SDK Team) написал:
Reply all
Reply to author
Forward
0 new messages