gpt4 book ai didi

xcode - 我的亚马逊插页式广告不起作用......我正在调用一个函数来显示它们,但它们没有显示......为什么?

转载 作者:行者123 更新时间:2023-11-30 13:45:24 25 4
gpt4 key购买 nike

这是我第一次添加 Amazon Interstitial 广告,当我尝试加载广告时,我的控制台中出现此错误,并且广告无法加载。这是控制台中显示的错误,下面是代码。谢谢!

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")
}

最佳答案

我猜也是this会有帮助,这些错误/警告消息是由于 iOS9 中的安全更改功能而显示的。它们是在您的应用程序查询方案时生成的,例如ios-日志。您可以通过在应用程序的 plist 文件中添加以下条目来阻止这些警告消息:LSApplicationQueriesSchemes ios-log about tel sms

关于xcode - 我的亚马逊插页式广告不起作用......我正在调用一个函数来显示它们,但它们没有显示......为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35007439/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com