Ios 如何使间隙广告加载并显示在应用程序上';用户界面?在Xcode10中没有响应
我正试图通过集成Firebase在我的应用程序中加载一个插入式广告。当我点击“IBAction按钮”时,我应该会看到一则广告。但我没有得到任何回应,也没有在屏幕上看到任何广告 Xcode控制台显示以下消息: 1-[I-ACS037005]无法从identity获取有效的应用程序ID 2-您当前使用的是SDK的7.37.0版。请考虑将SDK更新到最新的SDK版本,以获取最新的特性和错误修复。最新的SDK可以从…等下载 这是我的密码:-Ios 如何使间隙广告加载并显示在应用程序上';用户界面?在Xcode10中没有响应,ios,swift,xcode,googlemobileads,Ios,Swift,Xcode,Googlemobileads,我正试图通过集成Firebase在我的应用程序中加载一个插入式广告。当我点击“IBAction按钮”时,我应该会看到一则广告。但我没有得到任何回应,也没有在屏幕上看到任何广告 Xcode控制台显示以下消息: 1-[I-ACS037005]无法从identity获取有效的应用程序ID 2-您当前使用的是SDK的7.37.0版。请考虑将SDK更新到最新的SDK版本,以获取最新的特性和错误修复。最新的SDK可以从…等下载 这是我的密码:- var interstitial: GADInterstiti
var interstitial: GADInterstitial!
@IBAction func rewardedAdBtn(_ sender: Any) {
interstitial = GADInterstitial(adUnitID: "/6499/example/interstitial")
let request = GADRequest()
//request.testDevices = [ kGADSimulatorID, "2077ef9a63d2b398840261c8221a0c9b" ]
interstitial.load(request)
}
我添加了两个有用的函数,第一个被“打印”,但第二个没有
/// Tells the delegate an ad request succeeded.
func interstitialDidReceiveAd(_ ad: GADInterstitial) {
print("interstitialDidReceiveAd")
}
/// Tells the delegate that an interstitial will be presented.
func interstitialWillPresentScreen(_ ad: GADInterstitial) {
print("interstitialWillPresentScreen")
}
请看一看谢谢,但这无助于横幅广告加载精细但间隙不加载您能否确认您确实检查并遵守了答案中所述的实施“规则”?注意。Xcode日志消息“[I-ACS037005]无法从标识获取有效的应用程序ID”可能与此无关。(我在我的应用程序中看到了一条横幅,但仍然使用Google Mobile Ads SDK 7.44.0获得了确切的日志消息)请看一看谢谢,但这并没有帮助横幅广告加载良好但间隙不加载。您能否确认您确实检查并遵守了回答中描述的实施“规则”?注意。Xcode日志消息“[I-ACS037005]无法从标识获取有效的应用程序ID”可能与此无关。(我在我的应用程序中看到了一条横幅,但仍然使用谷歌移动广告SDK 7.44.0获得了确切的日志信息)