夜间
插屏广告
*插屏广告回调说明
// 插屏广告加载成功
- (void)juHeBaoFullscreenVideoAdDidLoad:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告加载失败
- (void)juHeBaoFullscreenVideoAd:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error;
// 插屏广告即将展示
- (void)juHeBaoFullscreenVideoAdWillVisible:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告已经展示
- (void)juHeBaoFullscreenVideoAdDidVisible:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告被点击
- (void)juHeBaoFullscreenVideoAdDidClick:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告被点击跳过
- (void)juHeBaoFullscreenVideoAdDidClickSkip:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告即将关闭
- (void)juHeBaoFullscreenVideoAdWillClose:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告已经关闭
- (void)juHeBaoFullscreenVideoAdDidClose:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏广告视频播放完成
- (void)juHeBaoFullscreenVideoAdDidPlayFinish:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd didFailWithError:(NSError *_Nullable)error;
// 插屏广告展示失败
- (void)juHeBaoFullscreenVideoAdDidShowFailed:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd error:(NSError *_Nonnull)error;
// 插屏即将弹出广告详情页回调
- (void)juHeBaoFullscreenVideoAdWillPresentFullScreenModal:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd;
// 插屏奖励验证回调成功
- (void)juHeBaoFullscreenVideoAdServerRewardDidSucceed:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd verify:(BOOL)verify;
// 插屏奖励验证回调失败
- (void)juHeBaoFullscreenVideoAdServerRewardDidFail:(JuHeBaoFullscreenVideoAd *_Nonnull)fullscreenVideoAd error:(NSError *_Nullable)error;
*插屏广告使用示例
广告加载
1.Objective-C
- (void)loadFullscreenVideoAd {
JuHeBaoFullscreenVideoAd *juHeBaoFullscreenVideoAd = [[JuHeBaoFullscreenVideoAd alloc] init];
juHeBaoFullscreenVideoAd.slotID = @"";
juHeBaoFullscreenVideoAd.delegate = self;
[juHeBaoFullscreenVideoAd loadJuHeBaoAdData];
}
2.Swift
let juHeBaoFullscreenVideoAd = JuHeBaoFullscreenVideoAd()
func loadFullscreenVideoAd(){
self.juHeBaoFullscreenVideoAd.slotID = ""
self.juHeBaoFullscreenVideoAd.delegate = self
self.juHeBaoFullscreenVideoAd.loadJuHeBaoAdData()
}
广告展示
1.Objective-C
[self.juHeBaoFullscreenVideoAd showFromRootViewController:self];
2.Swift
self.juHeBaoFullscreenVideoAd.show(fromRootViewController: self)