代码= 1001“无填充” Facebook观众网络中的错误 [英] Code=1001 "No fill" error in Facebook Audience Network

查看:3151
本文介绍了代码= 1001“无填充” Facebook观众网络中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Facebook观众网络首次整合到我的iOS项目中。每件事情都与官方文档中描述的一样完美。



但是,每次运行应用程序时,仍然会收到此错误。



'BLOCKQUOTE>

错误域= com.facebook.ads.sdk代码= 1001 无填充
的UserInfo = {NSLocalizedDescription =无填充,FBAdErrorDetailKey = {
MSG =不填


我正在用swift btw做我的项目。这是我遵循的观众网络整合的网站:
https:// www .appcoda.com / facebook-ads-integration /



请帮助我解决这个问题。谢谢你。


解决方案

我也面临着同样的问题,使用该娄代码解决它。

  [FBAdSettings addTestDevice:[FBAdSettings testDeviceHash]]; 
FBNativeAd * nativeAd = [[FBNativeAd alloc] initWithPlacementID:@598719620275857_842169869264163];
nativeAd.delegate = self;
nativeAd.mediaCachePolicy = FBNativeAdsCachePolicyAll;
[nativeAd loadAd];

此代码仅用于测试模式ids,
必须删除 [FBAdSettings addTestDevice:[FBAdSettings testDeviceHash]]; while app live。


I am integrating Facebook audience network in my iOS project for the first time. Every thing is as perfect as described in the official documentation.

But still I am getting this error every time I run the app.

Error Domain=com.facebook.ads.sdk Code=1001 "No fill" UserInfo={NSLocalizedDescription=No fill, FBAdErrorDetailKey={ msg = "No fill"

I am doing my project in swift btw. and this is the site I have followed for audience network integration: https://www.appcoda.com/facebook-ads-integration/

Please help me out of this. Thanks.

解决方案

I have also facing the same issue and resolve it using this bellow Code.

[FBAdSettings addTestDevice:[FBAdSettings testDeviceHash]];
    FBNativeAd *nativeAd = [[FBNativeAd alloc] initWithPlacementID:@"598719620275857_842169869264163"];
    nativeAd.delegate = self;
    nativeAd.mediaCachePolicy = FBNativeAdsCachePolicyAll;
    [nativeAd loadAd];

This code in is for test only test mode ids, Have to remove [FBAdSettings addTestDevice:[FBAdSettings testDeviceHash]]; while app live.

这篇关于代码= 1001“无填充” Facebook观众网络中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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