// // KSFeedAd.h // KSAdSDK // // Created by xuzhijun on 2019/11/22. // #import #import "KSAd.h" #import "KSAdInteractionType.h" NS_ASSUME_NONNULL_BEGIN @protocol KSFeedAdDelegate; @interface KSFeedAd : KSAd @property (nonatomic, readonly) UIView *feedView; @property (nonatomic, weak) id delegate; - (void)updatePlayStatusWithPercent:(CGFloat)percent; @end @protocol KSFeedAdDelegate @optional /** This method is called when feed ad show everytime. Please don‘t use for exposure count. Please use 'feedAdDidShow' for exposure count. */ - (void)feedAdViewWillShow:(KSFeedAd *)feedAd; - (void)feedAdDidClick:(KSFeedAd *)feedAd; - (void)feedAdDislike:(KSFeedAd *)feedAd; - (void)feedAdDidShowOtherController:(KSFeedAd *)nativeAd interactionType:(KSAdInteractionType)interactionType; - (void)feedAdDidCloseOtherController:(KSFeedAd *)nativeAd interactionType:(KSAdInteractionType)interactionType; /** This method is called when feed ad show. Each ad is called back only once */ - (void)feedAdDidShow:(KSFeedAd *)feedAd; @end NS_ASSUME_NONNULL_END