iOS SDK Version

FBInterstitialAd

@interfaceFBInterstitialAd:NSObject
A modal view controller to represent a Facebook interstitial ad. This is a full-screen ad shown in your application.
  • Typed access to the id of the ad placement.

    Declaration

    Objective-C
    @property(nonatomic,copy,readonly)NSString*_NonnullplacementID;
    Swift
    varplacementID:String{get}
  • the delegate

    Declaration

    Objective-C
    @property(nonatomic,weak,readwrite,nullable)id<FBInterstitialAdDelegate>delegate;
    Swift
    weakvardelegate:FBInterstitialAdDelegate?{getset}
  • FBAdExtraHint to provide extra info

    Declaration

    Objective-C
    @property(nonatomic,strong,readwrite,nullable)FBAdExtraHint*extraHint;
    Swift
    varextraHint:FBAdExtraHint?{getset}
  • This is a method to initialize an FBInterstitialAd matching the given placement id.

    Declaration

    Objective-C
    -(nonnullinstancetype)initWithPlacementID:(nonnullNSString*)placementID;
    Swift
    init(placementID:String)

    Parameters

  • Returns true if the interstitial ad has been successfully loaded.
    You should check isAdValid before trying to show the ad.

    Declaration

    Objective-C
    @property(nonatomic,readonly,getter=isAdValid)BOOLadValid;
    Swift
    varisAdValid:Bool{get}
  • Begins loading the FBInterstitialAd content.
    You can implement interstitialAdDidLoad: and interstitialAd:didFailWithError: methods of FBInterstitialAdDelegate if you would like to be notified as loading succeeds or fails.

    Declaration

    Objective-C
    -(void)loadAd;
    Swift
    funcload()
  • Begins loading the FBInterstitialAd content from a bid payload attained through a server side bid.
    You can implement adViewDidLoad: and adView:didFailWithError: methods of FBAdViewDelegate if you would like to be notified as loading succeeds or fails.

    Declaration

    Objective-C
    -(void)loadAdWithBidPayload:(nonnullNSString*)bidPayload;
    Swift
    funcload(withBidPayloadbidPayload:String)

    Parameters

  • Presents the interstitial ad modally from the specified view controller.
    You can implement interstitialAdDidClick:, interstitialAdWillClose: and interstitialAdWillClose methods of FBInterstitialAdDelegate if you would like to stay informed for thoses events

    Declaration

    Objective-C
    -(BOOL)showAdFromRootViewController:(nullableUIViewController*)rootViewController;
    Swift
    funcshow(fromRootViewControllerrootViewController:UIViewController?)->Bool

    Parameters