Instead, just a blank view is appearing.
Here's how I load the ad request:
GADMobileAds.configure(withApplicationID: "ca-app-pub-9213331484438711~8534798836") // actual app id
bannerView.delegate = self
bannerView.rootViewController = self
bannerView.adSize = kGADAdSizeLargeBanner
// unit id taken from guide: https://firebase.google.com/docs/admob/ios/quick-start
// Actual unit id doesn't work either.
bannerView.adUnitID = "ca-app-pub-3940256099942544/2934735716"
let request = GADRequest()
request.testDevices = [kDFPSimulatorID]
bannerView.layoutIfNeeded()
bannerView.load(request)
I've set Allow Arbitrary Loads
to YES
, but this didn't help. Delegate methods don't even get called. Am I missing something? Has anyone been able to get Admob working in an iMessage extension?
A sample project can be found here.