1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // GDTNativeExpressAdView.h
- // GDTMobApp
- //
- // Created by michaelxing on 2017/4/14.
- // Copyright © 2017年 Tencent. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "GDTAdProtocol.h"
- @interface GDTNativeExpressAdView : UIView <GDTAdProtocol>
- /**
- * 是否渲染完毕
- */
- @property (nonatomic, assign, readonly) BOOL isReady;
- /**
- * 是否是视频模板广告
- */
- @property (nonatomic, assign, readonly) BOOL isVideoAd;
- /**
- * viewControllerForPresentingModalView
- * 详解:[必选]开发者需传入用来弹出目标页的ViewController,一般为当前ViewController
- */
- @property (nonatomic, weak) UIViewController *controller;
- /**
- * 广告是否有效,以下情况会返回NO,建议在调用render之前判断,当为NO时render失败
- * a.广告过期
- */
- @property (nonatomic, readonly) BOOL isAdValid;
- /**
- *[必选]
- *原生模板广告渲染
- */
- - (void)render;
- /**
- * 视频模板广告时长,单位 ms
- */
- - (CGFloat)videoDuration;
- /**
- * 视频模板广告已播放时长,单位 ms
- */
- - (CGFloat)videoPlayTime;
- /**
- 返回广告的eCPM,单位:分
-
- @return 成功返回一个大于等于0的值,-1表示无权限或后台出现异常
- */
- - (NSInteger)eCPM;
- /**
- 返回广告的eCPM等级
-
- @return 成功返回一个包含数字的string,@""或nil表示无权限或后台异常
- */
- - (NSString *)eCPMLevel;
- /**
- * S2S bidding 竞胜之后调用, 需要在调用广告 show 之前调用
- * @param eCPM - 曝光扣费, 单位分,若优量汇竞胜,在广告曝光时回传,必传
- * 针对本次曝光的媒体期望扣费,常用扣费逻辑包括一价扣费与二价扣费,当采用一价扣费时,胜者出价即为本次扣费价格;当采用二价扣费时,第二名出价为本次扣费价格.
- */
- - (void)setBidECPM:(NSInteger)eCPM;
- @end
|