【问题标题】:Native Facebook Audience Network ad not clickable原生 Facebook Audience Network 广告不可点击
【发布时间】:2016-09-22 09:18:25
【问题描述】:

我使用 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];

【问题讨论】:

    标签: ios objective-c swift facebook facebook-audience-network


    【解决方案1】:

    已解决,nativeAd 实例需要保存。

    【讨论】:

    • 我在 swift 中遇到了可点击的问题,请您帮帮我。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多