简体   繁体   中英

Firebase Banner Ad not loading

I've implemented Firebase and originally had ad banners loading fine. But at some point along the way they have stopped showing up and i've tried everything i can think of. I have no idea what i could have changed as not much is different and certainly nothing with the Firebase or AdMob code has changed.

print("Google Mobile Ads SDK version: " + GADRequest.sdkVersion())
bannerView.adUnitID = "ca-app-pub-6956068899232786/3635179951"
bannerView.rootViewController = self
let request = GADRequest()
request.testDevices = [kGADSimulatorID]
bannerView.loadRequest(request)

I have also tried implementing the adViewDidReceiveAd() delegate function and i'm not seeing that get called either.

adViewDidReceiveAd没有调用,因为您忘记了添加

bannerView.delegate = self

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM