Inherits from NSObject
Declared in FBInterstitialAd.h

Overview

@class FBInterstitialAd

Properties

adValid

@property

@property (nonatomic, getter=isAdValid, readonly) BOOL adValid

Discussion

@abstract Returns true if the interstitial ad has been successfully loaded.

You should check isAdValid before trying to show the ad.

Declared In

FBInterstitialAd.h

delegate

the delegate

@property (nonatomic, weak, nullable) id<FBInterstitialAdDelegate> delegate

Declared In

FBInterstitialAd.h

placementID

Typed access to the id of the ad placement.

@property (nonatomic, copy, readonly, nonnull) NSString *placementID

Declared In

FBInterstitialAd.h

Instance Methods

initWithPlacementID:

@method

- (instancetype)initWithPlacementID:(NSString *)placementID

Parameters

placementID

The id of the ad placement. You can create your placement id from Facebook developers page.

Discussion

@abstract This is a method to initialize an FBInterstitialAd matching the given placement id.

Declared In

FBInterstitialAd.h

loadAd

@method

- (void)loadAd

Discussion

@abstract 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.

Declared In

FBInterstitialAd.h

showAdFromRootViewController:

@method

- (BOOL)showAdFromRootViewController:(nullable UIViewController *)rootViewController

Parameters

rootViewController

The view controller that will be used to present the interstitial ad.

Discussion

@abstract 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

Declared In

FBInterstitialAd.h