Facebook受众网络频繁加载错误 [英] Facebook Audience Network Frequent Load Error

查看:254
本文介绍了Facebook受众网络频繁加载错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,让我向您展示我对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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆