iOS SDK Version
FBNativeBannerAdView
Objective-C
@interfaceFBNativeBannerAdView:FBNativeAdBaseView
Swift
classFBNativeBannerAdView:FBNativeAdBaseView
The FBNativeBannerAdView creates prebuilt native banner ad template views and manages native banner ads.
- The type of the view, specifies which template to use
Declaration
Objective-C@property(nonatomic,readonly)FBNativeBannerAdViewTypetype;
Swiftvartype:FBNativeBannerAdViewType{get}
- This is a method to create a native ad template using the given placement id and type.
Declaration
Objective-C+(nonnullinstancetype)nativeBannerAdViewWithNativeBannerAd:(nonnullFBNativeBannerAd*)nativeBannerAdwithType:(FBNativeBannerAdViewType)type;
Swiftconvenienceinit(nativeBannerAd:FBNativeBannerAd,withtype:FBNativeBannerAdViewType)
Parameters
- This is a method to create a native ad template using the given placement id and type.
Declaration
Objective-C+(nonnullinstancetype)nativeBannerAdViewWithNativeBannerAd:(nonnullFBNativeBannerAd*)nativeBannerAdwithType:(FBNativeBannerAdViewType)typewithAttributes:(nonnullFBNativeAdViewAttributes*)attributes;
Swiftconvenienceinit(nativeBannerAd:FBNativeBannerAd,withtype:FBNativeBannerAdViewType,withattributes:FBNativeAdViewAttributes)
Parameters