Tag: facebook audience network

如何使Facebook的广告生活?

我在iOS应用中添加了Facebook受众群体networking,以实现原生广告的整合。 一切工作正常,但只有testing广告。 我添加了testDeviceKey来显示广告,如果我试图删除这个,那么没有广告显示,这也使我感到困惑。 我的代码是 – @implementation AdFeedsView FBNativeAd *nativeAd; static NSString *adPlacementId = @"xxxxxxxxx"; – (void)showNativeAd:(UIViewController *)vc { nativeAd = [[FBNativeAd alloc] initWithPlacementID:adPlacementId]; nativeAd.delegate = self; NSLog(@"isTestMode1: %d",[FBAdSettings isTestMode]); NSString *testDeviceKey = [FBAdSettings testDeviceHash]; if (testDeviceKey) { [FBAdSettings addTestDevice:testDeviceKey]; } [nativeAd loadAd]; } 所以我只想问一下,在我的代码中需要做些什么改变才能看到正确的广告,而不是在我的实时应用程序中testing广告?

FBAudienceNetwork:当显示video时,FBMediaView冻结ui

当我这样做代码时,FbMediaView就像在主线程中加载广告video,但是在显示图像时不会冻结。 我不明白为什么? let nativeAd = self.adsManager.nextNativeAd() let cell : AdHomeCell? = self.collectionView!.dequeueReusableCellWithReuseIdentifier("AdHomeCell", forIndexPath: indexPath) as? AdHomeCell cell?.createForAd(nativeAd) nativeAd?.registerViewForInteraction(cell!, withViewController: self) return cell 我有最新的Facebook SDK(4.8.0)

如何在TestFlight上testingFacebook受众networking广告?

我正在尝试将Audience Network集成到我的应用程序中。 当我在XCode上部署时,广告在模拟器和设备上正常工作。 我想通过TestFlight发布构build,以确保它能在发布模式下工作。 当我尝试从发布模式直接从XCode部署到我的设备时,Facebook返回广告的“无填充”。 广告不会显示在TestFlight上。 对于在TestFlight版本中展示设备的广告有什么想法?