// // KSNativeAdsManager.h // KSAdSDK // // Created by 徐志军 on 2019/10/11. // Copyright © 2019 KuaiShou. All rights reserved. // #import #import "KSNativeAd.h" NS_ASSUME_NONNULL_BEGIN @protocol KSNativeAdsManagerDelegate; @interface KSNativeAdsManager : NSObject @property (nonatomic, strong, nullable) NSArray *data; /// The delegate for receiving state change messages such as requests succeeding/failing. @property (nonatomic, weak, nullable) id delegate; - (id)initWithPosId:(NSString *)posId; /** The number of ads requested,The maximum is 5 */ - (void)loadAdDataWithCount:(NSInteger)count; /** server bidding load ad data */ - (void)loadAdDataWithResponse:(NSDictionary *)response; /** server bidding load ad data plan 2 */ - (void)loadAdDataWithResponseV2:(NSDictionary *)response; @end @protocol KSNativeAdsManagerDelegate @optional - (void)nativeAdsManagerSuccessToLoad:(KSNativeAdsManager *)adsManager nativeAds:(NSArray *_Nullable)nativeAdDataArray; - (void)nativeAdsManager:(KSNativeAdsManager *)adsManager didFailWithError:(NSError *_Nullable)error; @end NS_ASSUME_NONNULL_END