FBNativeAdBase
@interfaceFBNativeAdBase:NSObject
The Internal representation of an Ad
@interfaceFBNativeAdBase:NSObject
@property(nonatomic,copy,readonly)NSString*_NonnullplacementID;
varplacementID:String{get}
@property(nonatomic,copy,readonly,nullable)NSString*headline;
varheadline:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*linkDescription;
varlinkDescription:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*advertiserName;
varadvertiserName:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*socialContext;
varsocialContext:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*callToAction;
varcallToAction:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*rawBodyText;
varrawBodyText:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*bodyText;
varbodyText:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*sponsoredTranslation;
varsponsoredTranslation:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*adTranslation;
varadTranslation:String?{get}
@property(nonatomic,copy,readonly,nullable)NSString*promotedTranslation;
varpromotedTranslation:String?{get}
FBAdImage
for details. See FBAdChoicesView
for an included implementation.@property(nonatomic,strong,readonly,nullable)UIImage*iconImage;
variconImage:UIImage?{get}
@property(nonatomic,assign,unsafe_unretained,readonly)CGFloataspectRatio;
varaspectRatio:CGFloat{get}
FBAdChoicesView
for an included implementation.@property(nonatomic,copy,readonly,nullable)NSURL*adChoicesLinkURL;
varadChoicesLinkURL:URL?{get}
FBAdChoicesView
for an included implementation.@property(nonatomic,copy,readonly,nullable)NSString*adChoicesText;
varadChoicesText:String?{get}
FBAdFormatType
enum for more details.@property(nonatomic,assign,unsafe_unretained,readonly)FBAdFormatTypeadFormatType;
varadFormatType:FBAdFormatType{get}
@property(nonatomic,readonly)FBNativeAdsCachePolicymediaCachePolicy;
varmediaCachePolicy:FBNativeAdsCachePolicy{get}
@property(nonatomic,readonly,getter=isAdValid)BOOLadValid;
varisAdValid:Bool{get}
@property(nonatomic,getter=isRegistered,readonly)BOOLregistered
varisRegistered:Bool{get}
@property(nonatomic,strong,readwrite,nullable)FBAdExtraHint*extraHint;
varextraHint:FBAdExtraHint?{getset}
-(void)unregisterView;
funcunregisterView()
nativeAdDidLoad:
and nativeAd:didFailWithError:
methods of FBNativeAdDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAd;
funcloadAd()
nativeAdDidLoad:
and nativeAd:didFailWithError:
methods of FBNativeAdDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAdWithMediaCachePolicy:(FBNativeAdsCachePolicy)mediaCachePolicy;
funcloadAd(withMediaCachePolicymediaCachePolicy:FBNativeAdsCachePolicy)
-(void)loadAdWithBidPayload:(nonnullNSString*)bidPayload;
funcloadAd(withBidPayloadbidPayload:String)
-(void)loadAdWithBidPayload:(nonnullNSString*)bidPayloadmediaCachePolicy:(FBNativeAdsCachePolicy)mediaCachePolicy;
funcloadAd(withBidPayloadbidPayload:String,mediaCachePolicy:FBNativeAdsCachePolicy)
+(nullableinstancetype)nativeAdWithPlacementId:(nonnullNSString*)placementIdbidPayload:(nonnullNSString*)bidPayloaderror:(NSError*_Nullable*_Nullable)error;
classfuncnativeAd(withPlacementIdplacementId:String,bidPayload:String)throws->Self