FBInterstitialAd
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

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

Superclass:NSObject
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, nullable) id<FBInterstitialAdDelegate> delegate;
정의된 값: FBInterstitialAd.h
placementID

Typed access to the id of the ad placement.

@property (nonatomic, copy, readonly, nonnull) 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
NS_DESIGNATED_INITIALIZER;
정의된 값: 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:(nullable 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