BUMopubAdMarkUpDelegate.h
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// BUMopubAdMarkUpDelegate.h
// BUAdSDK
//
// Created by Siwant on 2020/4/24.
// Copyright © 2020 bytedance. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class BUAdSlot;
@protocol BUMopubAdMarkUpDelegate <NSObject>
@optional
/** Mopub AdMarkUp
*/
- (void)setMopubAdMarkUp:(NSString *)adm;
/// Bidding Token. Now for MSDK in domestic, used for every ad type.
- (NSString *)biddingToken;
/** Mopub Adaptor get AD type from rit
* @return @{@"adSlotType": @(1), @"renderType": @(1)}
* adSlotType refer from BUAdSlotAdType in "BUAdSlot.h"
* showType: @"1" express AD @"2" native AD
*/
+ (nullable NSDictionary *)AdTypeWithRit:(NSString *)rit error:(NSError **)error;
/** Mopub bidding Adaptor get AD type from adm
* @return @{@"adSlotType": @(1), @"renderType": @(1)}
* adSlotType refer from BUAdSlotAdType in "BUAdSlot.h"
* showType: @"1" express AD @"2" native AD
*/
+ (NSDictionary *)AdTypeWithAdMarkUp:(NSString *)adm;
/// Mopub Bidding Token
+ (NSString *)mopubBiddingToken;
@end
NS_ASSUME_NONNULL_END