Facebook受众网络频繁加载错误 [英] Facebook Audience Network Frequent Load Error
问题描述
首先,让我向您展示我对FBNativeAd的实现:
Firstly let me show you my implementation of FBNativeAd:
func getNativeAd()
{
self.FBnativeAd = FBNativeAd(placementID: PLACEMENT_ID)
self.FBnativeAd.delegate = self
self.FBnativeAd.loadAd()
}
override func viewDidLoad() {
super.viewDidLoad()
func nativeAdDidLoad(nativeAd: FBNativeAd!) {
if ((self.FBnativeAd) != nil) {
self.FBnativeAd.unregisterView()
}
self.FBnativeAd = nativeAd
println(nativeAd.title)
}
使用此代码,我始终会遇到错误:频繁加载".但是在测试模式下它可以正常工作.你能帮我吗?
With this code I always have the error : "Frequent Load". But it is working when I am in test mode. Could you help me?
推荐答案
此外,您的代码段不包含函数调用registerViewForInteraction.
Also, your code snippet doesn't include the function call registerViewForInteraction.
这与您刚刚描述的问题无关,但是请确保调用了函数registerViewForInteraction(请参见
This isn't related with the issue you just described, but please make sure function registerViewForInteraction is called (see https://developers.facebook.com/docs/audience-network/ios/native-api for more details); otherwise, the impression logging as well as click won't be handled correctly.
这篇关于Facebook受众网络频繁加载错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!