FBInterstitialAd Class Reference
Inherits from | NSObject |
Declared in | FBInterstitialAd.h |
Tasks
-
placementID
property -
delegate
property -
– initWithPlacementID:
-
adValid
property -
– loadAd
-
– showAdFromRootViewController:
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
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