FBInterstitialAd
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

A modal view controller to represent a Facebook interstitial ad. This is a full-screen ad shown in your application.

Conforms to:FBAdViewDelegate
Inherits from:UIViewController
Declared in:FBInterstitialAd.h
ทรัพย์สิน
adValid

Returns true if the interstitial ad has been successfully loaded.

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

You should check isAdValid before trying to show the ad.

ให้คำรับรองไว้ใน: FBInterstitialAd.h
delegate

The delegate

@property (nonatomic, weak) id<FBInterstitialAdDelegate> delegate;
ให้คำรับรองไว้ใน: FBInterstitialAd.h
placementID

Typed access to the id of the ad placement.

@property (nonatomic, copy, readonly) NSString *placementID;
ให้คำรับรองไว้ใน: FBInterstitialAd.h
วิธีการทันใจ
initWithPlacementID:

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

พารามิเตอร์คำอธิบาย
placementID

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

- (instancetype) initWithPlacementID:(NSString *)placementID;
ให้คำรับรองไว้ใน: FBInterstitialAd.h
loadAd

Begins loading the FBInterstitialAd content.

- (void) loadAd;
Discussion:

You can implement interstitialAdDidLoad: and interstitialAd:didFailWithError: methods of FBInterstitialAdDelegate if you would like to be notified as loading succeeds or fails.

ให้คำรับรองไว้ใน: FBInterstitialAd.h
showAdFromRootViewController:

Presents the interstitial ad modally from the specified view controller.

พารามิเตอร์คำอธิบาย
rootViewController

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

- (BOOL) showAdFromRootViewController:(UIViewController *)rootViewController;
Discussion:

You can implement interstitialAdDidClick:, interstitialAdWillClose: and interstitialAdWillClose methods of FBInterstitialAdDelegate if you would like to stay informed for thoses events

ให้คำรับรองไว้ใน: FBInterstitialAd.h