iOS SDK Version
FBNativeAdView
Objective-C
@interfaceFBNativeAdView:FBNativeAdBaseView
Swift
classFBNativeAdView:FBNativeAdBaseView
The FBNativeAdView creates prebuilt native ad template views and manages native ads.
- The type of the view, specifies which template to use
Declaration
Objective-C@property(nonatomic,readonly)FBNativeAdViewTypetype;
Swiftvartype:FBNativeAdViewType{get}
- This is a method to create a native ad template using the given native ad and using default ad view attributes.
Declaration
Objective-C+(nonnullinstancetype)nativeAdViewWithNativeAd:(nonnullFBNativeAd*)nativeAd;
Swiftconvenienceinit(nativeAd:FBNativeAd)
Parameters
- This is a method to create a native ad template using the given native ad and ad view attributes.
Declaration
Objective-C+(nonnullinstancetype)nativeAdViewWithNativeAd:(nonnullFBNativeAd*)nativeAdwithAttributes:(nonnullFBNativeAdViewAttributes*)attributes;
Swiftconvenienceinit(nativeAd:FBNativeAd,withattributes:FBNativeAdViewAttributes)
Parameters
- This is a method to create a native ad template using the given placement id and type.
Declaration
Objective-C+(nonnullinstancetype)nativeAdViewWithNativeAd:(nonnullFBNativeAd*)nativeAdwithType:(FBNativeAdViewType)type;
Swiftconvenienceinit(nativeAd:FBNativeAd,withtype:FBNativeAdViewType)
Parameters
- This is a method to create a native ad template using the given placement id and type.
Declaration
Objective-C+(nonnullinstancetype)nativeAdViewWithNativeAd:(nonnullFBNativeAd*)nativeAdwithType:(FBNativeAdViewType)typewithAttributes:(nonnullFBNativeAdViewAttributes*)attributes;
Swiftconvenienceinit(nativeAd:FBNativeAd,withtype:FBNativeAdViewType,withattributes:FBNativeAdViewAttributes)
Parameters