2016-09-22 109 views
0

我使用Facebook观众网络实施了原生广告,但是当您点击“号召性用语”按钮或广告时没有任何反应。原生Facebook观众网络广告无法点击

我打电话给方法[nativeAd registerViewForInteraction:self.nativeAdView withViewController:nil];但它什么也没做。

代码,我使用的是制作的广告:

nativeAdView.uxTitle.text = titleForAd; 
nativeAdView.uxDescription.text = bodyTextForAd; 
[coverImage loadImageAsyncWithBlock:^(UIImage * _Nullable image) { 
    nativeAdView.uxImageView.image = image; 
}]; 
//nativeAdView.uxImageView.image = coverImage; 
[nativeAdView.uxCTAButton setTitle:titleForAdButton forState:UIControlStateNormal]; 

FBAdChoicesView *adChoicesView = [[FBAdChoicesView alloc] initWithNativeAd:nativeAd]; 
[nativeAdView addSubview:adChoicesView]; 
[adChoicesView updateFrameFromSuperview]; 


[self.uxScrollView addSubview:nativeAdView]; 

y += nativeAdView.frame.size.height + 30; 
[self.uxScrollView setContentSize:CGSizeMake(self.uxScrollView.frame.size.width, y)]; 


// Register the native ad view and its view controller with the 
// native ad instance 
[nativeAd registerViewForInteraction:self.nativeAdView withViewController:nil]; 

回答

0

解决,例如nativeAd需要保存。