2016-09-22 18 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インスタンスを保存する必要があります。

関連する問題