FBInterstitialAd
@interfaceFBInterstitialAd:NSObject
A modal view controller to represent a Facebook interstitial ad. This is a full-screen ad shown in your application.
@interfaceFBInterstitialAd:NSObject
@property(nonatomic,copy,readonly)NSString*_NonnullplacementID;
varplacementID:String{get}
@property(nonatomic,weak,readwrite,nullable)id<FBInterstitialAdDelegate>delegate;
weakvardelegate:FBInterstitialAdDelegate?{getset}
@property(nonatomic,strong,readwrite,nullable)FBAdExtraHint*extraHint;
varextraHint:FBAdExtraHint?{getset}
-(nonnullinstancetype)initWithPlacementID:(nonnullNSString*)placementID;
init(placementID:String)
isAdValid
before trying to show the ad.@property(nonatomic,readonly,getter=isAdValid)BOOLadValid;
varisAdValid:Bool{get}
interstitialAdDidLoad:
and interstitialAd:didFailWithError:
methods of FBInterstitialAdDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAd;
funcload()
adViewDidLoad:
and adView:didFailWithError:
methods of FBAdViewDelegate
if you would like to be notified as loading succeeds or fails.-(void)loadAdWithBidPayload:(nonnullNSString*)bidPayload;
funcload(withBidPayloadbidPayload:String)
interstitialAdDidClick:
, interstitialAdWillClose:
and interstitialAdWillClose
methods of FBInterstitialAdDelegate
if you would like to stay informed for thoses events-(BOOL)showAdFromRootViewController:(nullableUIViewController*)rootViewController;
funcshow(fromRootViewControllerrootViewController:UIViewController?)->Bool