0
Ich habe eine native Anzeige mit Facebook-Zielgruppen-Netzwerk implementiert, aber wenn Sie auf Call-to-Action-Schaltfläche oder auf der Anzeige tippen, passiert nichts.Native Facebook Audience Network-Anzeige nicht anklickbar
Ich rufe Methode [nativeAd registerViewForInteraction:self.nativeAdView withViewController:nil];
, aber es tut nichts.
Code, ich verwende Anzeige zu erstellen:
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];