mergemilitary/Assets/Plugins/ToukaGames/ToponSDK/baidu/BaiduMobAdSDK.framework/Headers/BaiduMobAdSplash.h

133 lines
2.6 KiB
Objective-C
Executable File
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.

//
// BaiduMobAdSplash.h
// BaiduMobAdSDK
//
// Created by LiYan on 16/5/25.
// Copyright © 2016年 Baidu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "BaiduMobAdSplashDelegate.h"
@interface BaiduMobAdSplash : NSObject
/**
* 委托对象
*/
@property (nonatomic, weak) id<BaiduMobAdSplashDelegate> delegate;
/**
* 设置/获取代码位id
*/
@property (nonatomic, copy) NSString *AdUnitTag;
/**
* 设置开屏广告是否可以点击的属性,开屏默认可以点击。
*/
@property (nonatomic, assign) BOOL canSplashClick;
/**
* SDK版本
*/
@property (nonatomic, readonly) NSString *version;
/**
* 广告请求超时时间默认3s单位s
*/
@property (nonatomic, assign) NSTimeInterval timeout;
/**
* 广告渲染视图大小必须大于200*200
*/
@property (nonatomic, assign) CGSize adSize;
/**
* 使用controller present 落地页
*/
@property (nonatomic, weak) UIViewController *presentAdViewController;
/**
* 设置摇一摇图片的尺寸高或宽默认69pt
*/
@property (nonatomic, assign) CGFloat shakeImageViewSize;
/**
* 设置底价过滤支持客户端与服务端bidding配置
* 仅支持整数值,单位:分
*/
@property (nonatomic, assign) int bidFloor;
/**
* 请求并展示开屏广告广告尺寸以传入window大小为准
*/
- (void)loadAndDisplayUsingKeyWindow:(UIWindow *)keyWindow;
/**
* 请求并展示半屏开屏广告广告尺寸以传入view大小为准
*/
- (void)loadAndDisplayUsingContainerView:(UIView *)view;
/**
* 请求开屏广告仅请求不做展示需要手动调用show展示广告
* load之前请先设置开屏渲染视图大小adSize
*/
- (void)load;
/**
* 展示广告
*/
- (void)showInContainerView:(UIView *)view;
/**
* 重置广告容器大小
*/
- (void)resizeLayout;
/**
* 开屏广告自定义相关配置字段
*/
- (NSString *)getExtData;
/**
* 广告价格标签
*/
- (NSString *)getECPMLevel;
/**
* 反馈竞价成功及二价
* @param secondPrice 第二价格
*/
- (void)biddingSuccess:(NSString *)secondPrice;
/**
* 反馈竞价失败及原因
* @param reason 失败原因
*/
- (void)biddingFail:(NSString *)reason;
/**
* 获取Bidding token
* @return 媒体ADX请求广告所需的token
*/
- (NSString *)getBiddingToken;
/**
* 请求bidding广告
* @param bidId 媒体传入竞价成功的广告id
*/
- (void)loadBiddingAd:(NSString *)bidId;
/**
* 销毁开屏,释放资源
*/
- (void)stop;
#pragma mark - DEPRECATED_ATTRIBUTE
- (void)setBiddingData:(NSString *)data BaiduMobAdDEPRECATED_MSG("已废弃请接入最新的服务端bidding渲染方式");
@end