Hibit_iOS/Pods/BaiduMobAdSDK/BaiduMobAdSDK.framework/Headers/BaiduMobAdExpressFullScreenVideo.h
2024-06-07 11:41:02 +08:00

120 lines
3.4 KiB
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// BaiduMobAdExpressFullScreenVideo.h
// BaiduMobAdSDK
//
// Created by Sun,Mingzhe on 2020/9/29.
// Copyright © 2020 Baidu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BaiduMobAdExpressFullScreenVideoDelegate.h"
#import "BaiduMobAdFeedRequestParameters.h"
@interface BaiduMobAdExpressFullScreenVideo : NSObject
/**
* 委托对象
*/
@property (nonatomic, weak) id <BaiduMobAdExpressFullScreenVideoDelegate> delegate;
/**
* 全屏视频传参
*/
@property (nonatomic, strong) BaiduMobAdFeedRequestParameters *requestParameters;
/**
* 应用的APPID
*/
@property (nonatomic, copy) NSString *publisherId;
/**
* 设置/获取代码位(广告位)id
*/
@property (nonatomic, copy) NSString *AdUnitTag;
/**
* 启动位置信息 如果enableplist 需要增加NSLocationWhenInUseUsageDescription
*/
@property (nonatomic, assign) BOOL enableLocation;
/**
* 广告类型请在request请求之前赋值
*/
@property (nonatomic, assign) BaiduMobAdType adType;
/**
* 设置底价过滤支持客户端与服务端bidding配置
* 仅支持整数值,单位:分
*/
@property (nonatomic, assign) int bidFloor;
/**
* 预加载视频广告,并缓存物料信息到本地。
* 注意广告的展示存在有效期,单次检索后须在一定时间内展示在页面上
*/
- (void)load;
/**
* 全屏视频广告的展示存在有效期,单次检索后须在一定时间内展示在页面上
* 返回本地是否有可用广告 YES代表本地有缓存成功且未过期的广告NO代表不可用
*/
- (BOOL)isReady;
/**
* 展示全屏视频默认RootViewController present
* 默认使用本地缓存,本地缓存失效则在线请求播放
*/
- (void)show;
/**
* 展示全屏视频使用controller present
* 默认使用本地缓存,本地缓存失效则在线请求播放
*/
- (void)showFromViewController:(UIViewController *)controller;
/**
* 广告价格标签
*/
- (NSString *)getECPMLevel;
/**
* 竞价成功,上报竞价失败排名第二的信息
* @param secondInfo 竞败方,排名第二的信息
* Keyecpm Value为本次竞败方排名第二的价格单位类型为Integer。选填
* Keyadn Value为本次竞败方排名第二的渠道ID类型为Integer。具体ID枚举见文档
* @param completion 发送成功或失败回调
*/
- (void)biddingSuccessWithSecondInfo:(NSDictionary *)secondInfo completion:(void (^)(BOOL success, NSString *errorInfo))completion;
/**
* 反馈竞价失败及原因,无广告返回时也可用此接口上报竞胜方信息
* @param winInfo 竞胜方的信息
* Keyecpm Value为本次竞胜方出价单位类型为Integer。选填
* Keyadn Value为本次竞胜方渠道ID类型为Integer。具体ID枚举见文档
* @param completion 发送成功或失败回调
*/
- (void)biddingFailWithWinInfo:(NSDictionary *)winInfo completion:(void (^)(BOOL success, NSString *errorInfo))completion;
/**
* 获取Bidding token
* @return 媒体ADX请求广告所需的token
*/
- (NSString *)getBiddingToken;
/**
* 请求bidding广告
* @param bidId 媒体传入竞价成功的广告id
*/
- (void)loadBiddingAd:(NSString *)bidId;
#pragma mark - DEPRECATED_ATTRIBUTE
- (void)setBiddingData:(NSString *)data BaiduMobAdDEPRECATED_MSG("已废弃请接入最新的服务端bidding渲染方式");
@end