FBNativeAdView Class Reference
Inherits from | UIView |
Declared in | FBNativeAdView.h |
Overview
@class FBNativeAdView
@abstract The FBNativeAdView creates prebuilt native ad template views and manages native ads.
Properties
Class Methods
nativeAdViewWithNativeAd:withType:
@method @abstract This is a method to create a native ad template using the given placement id and type.
+ (nonnull instancetype)nativeAdViewWithNativeAd:(nonnull FBNativeAd *)nativeAd withType:(FBNativeAdViewType)type
Parameters
- nativeAd
The native ad to use to create this view.
- type
The type of this native ad template. For more information, consult FBNativeAdViewType.
Declared In
FBNativeAdView.h
nativeAdViewWithNativeAd:withType:withAttributes:
@method @abstract This is a method to create a native ad template using the given placement id and type.
+ (nonnull instancetype)nativeAdViewWithNativeAd:(nonnull FBNativeAd *)nativeAd withType:(FBNativeAdViewType)type withAttributes:(nonnull FBNativeAdViewAttributes *)attributes
Parameters
- nativeAd
The native ad to use to create this view.
- type
The type of this native ad template. For more information, consult FBNativeAdViewType.
- attributes
The attributes to render this native ad template with.
Declared In
FBNativeAdView.h