这是我第一次添加亚马逊非页内广告,当我尝试加载广告时,我在控制台中收到此错误,并且广告未加载。这是在控制台和下面显示的错误,即代码。谢谢!
2016-01-26 00:09:08.362 RacingGame[8095:2664641] -canOpenURL: failed for
URL: "about:blank" - error: "(null)"
2016-01-26 00:09:08.499 RacingGame[8095:2664641] -canOpenURL: failed for
URL: "ios-log:%20preloading" - error: "(null)"
2016-01-26 00:09:08.503 RacingGame[8095:2664641] -canOpenURL: failed for
URL: "ios-log:%20in%20update%20viewport" - error: "(null)"
2016-01-26 00:09:08.506 RacingGame[8095:2664641] -canOpenURL: failed for
URL: "ios-log:%20adding%20ios%20viewport" - error: "(null)"
Ad loaded
override func didMoveToView(view: SKView) {
loadAd()
}
func loadAd() {
let interstitialAd = AmazonAdInterstitial()
let adOptions = AmazonAdOptions()
adOptions.isTestRequest = true
interstitialAd.load(adOptions)
interstitialAd.delegate = self
}
//MARK:AmazonAdInterstitialDelegate
func interstitialDidLoad(interstitial: AmazonAdInterstitial!) {
print("Ad loaded")
}
func interstitialDidFailToLoad(interstitial: AmazonAdInterstitial!, withError error: AmazonAdError!) {
print("Interstitial failed to load with error \(error.description)")
}
func interstitialDidPresent(interstitial: AmazonAdInterstitial!) {
print("Interstitial presented")
}
func interstitialWillDismiss(interstitial: AmazonAdInterstitial!) {
print("Interstitial will dismiss")
}
答案 0 :(得分:0)
我猜this也会有所帮助,由于iOS9中的安全更改功能,会显示这些错误/警告消息。当您的应用查询有关方案时会生成它们,例如IOS-日志。您可以通过在应用程序的plist文件中添加以下条目来阻止这些警告消息:LSApplicationQueriesSchemes ios-log about tel sms