Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS9 self.canDisplayBannerAds = true is not showing any ads [closed]

Very simple iAd code:

import UIKit
import iAd

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.canDisplayBannerAds = true
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
}

iAd.framework is loaded.

It used to work. After iOS9, not working. Simulator settings for iAd set to 100% with refresh rate 15secs. Not showing any ads. Tried on actual iPhone 6, 5S, 4S and iPad Air2. Not showing any ads. Am I missing something here? About to lose my mind... All my apps that used to show iAds with no issues are now showing no iAds at all.

like image 462
Mehmet Avatar asked Sep 17 '15 16:09

Mehmet


1 Answers

This is no longer an issue. self.canDisplayBannerAds = true works as expected on devices and simulators running iOS 9 or later.

like image 88
Daniel Storm Avatar answered Nov 18 '22 05:11

Daniel Storm