| | |
| | | #import <UIKit/UIKit.h> |
| | | #import "BUAdSDKDefines.h" |
| | | #import "BUMaterialMeta.h" |
| | | #import "BUMopubAdMarkUpDelegate.h" |
| | | |
| | | @class BUNativeExpressRewardedVideoAd; |
| | | @class BURewardedVideoModel; |
| | |
| | | @optional |
| | | /** |
| | | This method is called when video ad material loaded successfully. |
| | | And you can call [BUNativeExpressRewardedVideoAd showAdFromRootViewController:]. |
| | | */ |
| | | - (void)nativeExpressRewardedVideoAdDidLoad:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd; |
| | | |
| | |
| | | /** |
| | | This method is called when cached successfully. |
| | | For a better user experience, it is recommended to display video ads at this time. |
| | | And you can call [BUNativeExpressRewardedVideoAd showAdFromRootViewController:]. |
| | | */ |
| | | - (void)nativeExpressRewardedVideoAdDidDownLoadVideo:(BUNativeExpressRewardedVideoAd *)rewardedVideoAd; |
| | | |
| | |
| | | @end |
| | | |
| | | |
| | | @interface BUNativeExpressRewardedVideoAd : NSObject |
| | | @interface BUNativeExpressRewardedVideoAd : NSObject <BUMopubAdMarkUpDelegate> |
| | | @property (nonatomic, strong) BURewardedVideoModel *rewardedVideoModel; |
| | | @property (nonatomic, weak, nullable) id<BUNativeExpressRewardedVideoAdDelegate> delegate; |
| | | /// media configuration parameters. |
| | |
| | | Setted to YES when data is not empty and has not been displayed. |
| | | Repeated display is not billed. |
| | | */ |
| | | @property (nonatomic, getter=isAdValid, readonly) BOOL adValid; |
| | | @property (nonatomic, getter=isAdValid, readonly) BOOL adValid __attribute__((deprecated("Use nativeExpressRewardedVideoAdDidLoad: instead."))); |
| | | |
| | | - (instancetype)initWithSlotID:(NSString *)slotID rewardedVideoModel:(BURewardedVideoModel *)model; |
| | | |
| | | /** |
| | | adload_seq:(针对聚合广告位)传递本次请求是为“自然日内某设备某广告位置第N次展示机会”发出的广告请求,同物理位置在自然日从1开始计数,不同物理位置独立计数;example:某原生广告位置,当天第5次产生展示机会,这次展示机向穿山甲发送了4次广告请求,则这4次广告请求的"adload_seq"的值应为5。第二天重新开始计数。 |
| | | |
| | | prime_rit:(针对聚合广告位)广告物理位置对应的固定穿山甲广告位id,可以使用第一层的广告位id也可以为某一层的广告位id,但要求同一物理位置在该字段固定上报同一广告位id,不频繁更换;example:某原生广告位,当天共发出了1000个请求,这1000个请求中使用了5个不同target的穿山甲rit,用某X rit来作为该位置的标记rit,则这1000次请求的prime_rit都需要上报X rit的rit id。 |
| | | */ |
| | | |
| | | - (instancetype)initWithSlotID:(NSString *)slotID adloadSeq:(NSInteger)adloadSeq primeRit:(NSString * __nullable)primeRit rewardedVideoModel:(nonnull BURewardedVideoModel *)model; |
| | | |
| | | - (void)loadAdData; |
| | | |
| | | /** |