只是一个简单的问题,在模拟器/真实设备中看到测试广告是否正常,但不是真正的实时广告?我没有收到任何违规或任何内容的电子邮件,我等了2天左右,我无法在模拟器/真实设备上看到真实的直播广告,我只是想知道我是不是没有看到他们,因为Admob政策,他们只让你看到测试广告。(第一次使用admob)
修改
高于tableView:
var googleAd: GADBannerView!
override func viewDidLoad() {
super.viewDidLoad()
googleAd = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait)
self.view.addSubview(googleAd)
googleAd.adUnitID = "I check this already. It's all good"
googleAd.rootViewController = self
googleAd.delegate = self
googleAd.load(GADRequest())
let request:GADRequest = GADRequest()
request.testDevices = [kGADSimulatorID]
googleAd.load(request)
googleAd.translatesAutoresizingMaskIntoConstraints = false
googleAd.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true
googleAd.bottomAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor).isActive = true
googleAd.widthAnchor.constraint(equalTo: self.view.widthAnchor).isActive = true
googleAd.heightAnchor.constraint(equalToConstant: 50).isActive = true
}
我也设置了GADBannerViewDelegate