我已经在我的IOS app.All中实现了google admob,其他的添加工作,例如横幅,原生。在调试mode.But期间,当我将测试密钥替换为在crashlytics上获得的实际密钥时,Interstitial add也可以很好地使用测试id

GADInterstitial.m line 306
__49-[GADInterstitial presentFromRootViewController:]_block_invoke我有交叉检查的钥匙和代码从官方谷歌site.Below是我正在使用的代码
interstitial = GADInterstitial(adUnitID: "ca-app-pub-.....") //test
interstitial.delegate = self
let request = GADRequest()
interstitial.load(request)
if interstitial.isReady {
interstitial.present(fromRootViewController: self)
} else {
print("Ad wasn't ready")
}发布于 2020-09-22 16:58:58
interstitial变量是类的属性,还是仅仅是一个局部函数变量?)对不起,我没有足够的代表。评论)
https://stackoverflow.com/questions/63992901
复制相似问题