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

A customized UIView to represent a Facebook ad (a.k.a. banner ad).

Inherits from:UIView
Declared in:FBAdView.h
ทรัพย์สิน
delegate

The delegate

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

Typed access to the id of the ad placement.

@property (nonatomic, copy, readonly, nonnull) NSString *placementID;
ให้คำรับรองไว้ใน: FBAdView.h
rootViewController

Typed access to the app's root view controller.

@property (nonatomic, weak, readonly, nullable) UIViewController *rootViewController;
ให้คำรับรองไว้ใน: FBAdView.h
วิธีการทันใจ
disableAutoRefresh

This is a method to disable auto refresh for the FBAdView instance

- (void) disableAutoRefresh;
Discussion:

By default, we read the refresh interval from the placement setting in your Facebook developers page. Once you call this method, the auto refresh will be disabled for this FBAdView instance, and you cannot re-enable the refresh for this instance. A new created FBAdView will still use the default behavior.

This method is designed for ad network mediation. We still recommend you to set the placement refresh interval as 'None' if you're using one of the ad network mediation.

ให้คำรับรองไว้ใน: FBAdView.h
initWithPlacementID:adSize:rootViewController:

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

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

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

adSize

The size of the ad; for example, kFBAdSizeHeight50Banner or kFBAdSizeHeight90Banner.

viewController

The view controller that will be used to present the ad and the app store view.

- (nonnull instancetype)
initWithPlacementID: (nonnull NSString *)placementID
adSize: (FBAdSize)adSize
rootViewController: (nonnull UIViewController *)viewController
NS_DESIGNATED_INITIALIZER;
ให้คำรับรองไว้ใน: FBAdView.h
loadAd

Begins loading the FBAdView content.

- (void) loadAd;
Discussion:

You can implement adViewDidLoad: and adView:didFailWithError: methods of FBAdViewDelegate if you would like to be notified as loading succeeds or fails.

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