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

This class provides a mechanism to fetch a set of ads and then use them within your application. The recommended usage is to call nextNativeAd: at the moment when you are about to render an ad. The native ads manager supports giving out as many ads as needed by cloning over the set of ads it got back from the server which can be useful for feed scenarios.

Inherits from:NSObject
Declared in:FBNativeAdsManager.h
속성
delegate

The delegate

@property (nonatomic, weak) id <FBNativeAdsManagerDelegate> delegate;
정의된 값: FBNativeAdsManager.h
mediaCachePolicy

Set the native ads manager caching policy. This controls which media from the native ads are cached before the native ads manager calls nativeAdsLoaded on its delegate. The default is to not block on caching.

@property (nonatomic, assign) FBNativeAdsCachePolicy mediaCachePolicy;
정의된 값: FBNativeAdsManager.h
uniqueNativeAdCount

Number of unique native ads that can be accessed through nextNativeAd:. This is not valid until the nativeAdsLoaded: message has been sent.

@property (nonatomic, assign, readonly) NSUInteger uniqueNativeAdCount;
정의된 값: FBNativeAdsManager.h
valid

Returns YES after nativeAdsLoaded: message has been sent.

@property (nonatomic, assign, getter=isValid, readonly) BOOL valid;
정의된 값: FBNativeAdsManager.h
인스턴스 메서드
disableAutoRefresh

By default the native ads manager will refresh its ads periodically. This does not mean that any ads which are shown in the application's UI will be refreshed but simply that calling nextNativeAd: may return different ads at different times. This method disables that functionality.

- (void) disableAutoRefresh;
정의된 값: FBNativeAdsManager.h
initWithPlacementID:forNumAdsRequested:

Initialize the native ads manager.

매개변수설명
placementID

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

numAdsRequested

The number of ads you would like the native ads manager to retrieve.

- (instancetype)
initWithPlacementID: (NSString *)placementID
forNumAdsRequested: (NSUInteger)numAdsRequested
NS_DESIGNATED_INITIALIZER;
정의된 값: FBNativeAdsManager.h
loadAds

The method that kicks off the loading of ads. It may be called again in the future to refresh the ads manually.

- (void) loadAds;
정의된 값: FBNativeAdsManager.h
nextNativeAd

Retrieve the next native ad to be used from the batch. It is highly recommended that the caller wait until immediately before rendering the ad content to call this method to ensure the best ad for the given context is used. If more than uniqueNativeAdCount ads are requested cloned ads will be returned. Periodically the native ads manager will refresh and new ads will be returned.

- (FBNativeAd *) nextNativeAd;
정의된 값: FBNativeAdsManager.h