FBAdView Class Reference
Inherits from | UIView |
Declared in | FBAdView.h |
Tasks
-
– initWithPlacementID:adSize:rootViewController:
-
– loadAd
-
– disableAutoRefresh
-
placementID
property -
rootViewController
property -
delegate
property
Properties
delegate
the delegate
@property (nonatomic, weak, nullable) id<FBAdViewDelegate> delegate
Declared In
FBAdView.h
Instance Methods
disableAutoRefresh
@method
- (void)disableAutoRefresh
Discussion
@abstract This is a method to disable auto refresh for the FBAdView instance
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.
Declared In
FBAdView.h
initWithPlacementID:adSize:rootViewController:
@method
- (instancetype)initWithPlacementID:(NSString *)placementID adSize:(FBAdSize)adSize rootViewController:(nullable UIViewController *)viewController
Parameters
- 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.
Discussion
@abstract This is a method to initialize an FBAdView matching the given placement id.
Declared In
FBAdView.h