// // BUNativeAdsManager.h // BUAdSDK // // Copyright © 2017 bytedance. All rights reserved. // /** BUNativeAdsManager : for multiple requests at the same time. */ #import #import #import "BUAdSlot.h" #import "BUMaterialMeta.h" #import "BUNativeAd.h" #import "BUNativeExpressAdViewDelegate.h" @protocol BUNativeAdsManagerDelegate; NS_ASSUME_NONNULL_BEGIN /// Bunativeadsmanager class can request multiple ad data per time. @interface BUNativeAdsManager : NSObject @property (nonatomic, strong, nullable) BUAdSlot *adslot; @property (nonatomic, strong, nullable) NSArray *data; /// The delegate for receiving state change messages such as requests succeeding/failing. /// The delegate can be set to any object which conforming to . @property (nonatomic, weak, nullable) id delegate; /// The delegate for receiving messages when is render template @property (nonatomic, weak, nullable) id nativeExpressAdViewDelegate; /// Valid only in native Feed @property (nonatomic, assign, readwrite) CGSize adSize; - (instancetype)initWithSlot:(BUAdSlot * _Nullable) slot; /** It is recommended to request no more than 3 ads. The maximum is 10. */ - (void)loadAdDataWithCount:(NSInteger)count; @end @protocol BUNativeAdsManagerDelegate @optional - (void)nativeAdsManagerSuccessToLoad:(BUNativeAdsManager *)adsManager nativeAds:(NSArray *_Nullable)nativeAdDataArray; - (void)nativeAdsManager:(BUNativeAdsManager *)adsManager didFailWithError:(NSError *_Nullable)error; @end NS_ASSUME_NONNULL_END