【发布时间】:2017-01-13 17:05:06
【问题描述】:
相反,只是出现了一个空白视图。
这是我加载广告请求的方式:
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)
我已将 Allow Arbitrary Loads 设置为 YES,但这没有帮助。委托方法甚至不会被调用。我错过了什么吗?有没有人能够让 Admob 在 iMessage 扩展中工作?
可以在here找到一个示例项目。
【问题讨论】:
-
有没有想过这个问题?还是您选择了其他广告网络...
-
@edelaney05 不,还是不知道该怎么办。
-
这个有消息吗?
-
Admob 横幅广告在 iMessage 应用程序中也不适合我。使用native ads 运气更好,您可以更好地控制广告的显示方式。
标签: ios admob ios-app-extension ios10 imessage