NativeAdView uses FBMediaView to create an ad. Your rating for nativeAdView 300 is too low to load any type of FBMediaView.
If you want to use a height of 300 hundred, create your own view (iOS) and use the properties returned by fbNativeAd. for example do this in your nativeAdDidLoad:
customView.titleLabel = nativeAd.title; FFBAdImage *icon = nativeAd.icon; [icon loadImageAsyncWithBlock:^(UIImage * _Nullable image) { [customView.imageView setImage:image]; //image returned by fb is 128x128 }]; customView.fbAdBtn.titleLabel.text = nativeAd.callToAction; [self.view addSubView:customView];
if you want the whole custom view to be clickable and then
[nativeAd registerViewForInteraction:customView withViewController:self]
if you want the action to be performed only by a button in your user view, do it.
NSArray *clikAble = [NSArray alloc] initWithObjects:customView.fbAdBtn]; [nativeAd registerViewForInteraction:customView withViewController:self withClickableViews:clikAble];
There are a number of other properties that you can use to suit your needs.
And don't forget to follow these guidelines: https://developers.facebook.com/docs/audience-network/guidelines/native-ads
And try to make the full screen size FBNativeAdView, I think it will definitely load the view.
ibnetariq
source share