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

119 lines
3.1 KiB
Objective-C
Raw 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.

//
// BaiduMobAdExpressInterstitial.h
// BaiduMobAdSDK
//
// Created by yangdingjia on 2021/9/18.
// Copyright © 2021 Baidu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "BaiduMobAdExpressIntDelegate.h"
#import "BaiduMobAdFeedRequestParameters.h"
NS_ASSUME_NONNULL_BEGIN
@interface BaiduMobAdExpressInterstitial : NSObject
/**
* 委托对象
*/
@property (nonatomic, weak) id <BaiduMobAdExpressIntDelegate> delegate;
/**
* 应用的APPID
*/
@property (nonatomic, copy) NSString *publisherId;
/**
* 模版插屏传参
*/
@property (nonatomic, strong) BaiduMobAdFeedRequestParameters *requestParameters;
/**
* 设置/获取代码位(广告位)id
*/
@property (nonatomic, copy) NSString *adUnitTag;
/**
* 启动位置信息 如果enableplist 需要增加NSLocationWhenInUseUsageDescription
*/
@property (nonatomic, assign) BOOL enableLocation;
/**
* 设置底价过滤支持客户端与服务端bidding配置
* 仅支持整数值,单位:分
*/
@property (nonatomic, assign) int bidFloor;
/**
* 预加载插屏广告,并缓存物料信息到本地。
* 注意广告的展示存在有效期,单次检索后须在一定时间内展示在页面上
*/
- (void)load;
/**
* 返回广告状态
* YES代表可用(广告未过期,且缓存成功)NO代表不可用
*/
- (BOOL)isReady;
/**
* 展示插屏使用的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;
/**
* 根据key获取广告相关字段
* @param key 需要获取的key字段
* @return 字段的字符串
*/
- (NSString *)getAdDataForKey:(NSString *)key;
#pragma mark - DEPRECATED_ATTRIBUTE
- (void)setBiddingData:(NSString *)data BaiduMobAdDEPRECATED_MSG("已废弃请接入最新的服务端bidding渲染方式");
@end
NS_ASSUME_NONNULL_END