al
Aeline
2021-03-08 ce4eaddf9eb835f01e6bf5845a063d306f322b24
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//
//  BUMaterialMeta.h
//  BUAdSDK
//
//  Copyright © 2017 bytedance. All rights reserved.
//
 
#import <Foundation/Foundation.h>
#import "BUDislikeWords.h"
#import "BUImage.h"
 
typedef NS_ENUM(NSInteger, BUInteractionType) {
    BUInteractionTypeCustorm = 0,
    BUInteractionTypeNO_INTERACTION = 1,  // pure ad display
    BUInteractionTypeURL = 2,             // open the webpage using a browser
    BUInteractionTypePage = 3,            // open the webpage within the app
    BUInteractionTypeDownload = 4,        // download the app
    BUInteractionTypePhone = 5,           // make a call
    BUInteractionTypeMessage = 6,         // send messages
    BUInteractionTypeEmail = 7,           // send email
    BUInteractionTypeVideoAdDetail = 8    // video ad details page
};
 
typedef NS_ENUM(NSInteger, BUFeedADMode) {
    BUFeedADModeSmallImage = 2,
    BUFeedADModeLargeImage = 3,
    BUFeedADModeGroupImage = 4,
    BUFeedVideoAdModeImage = 5, // video ad || rewarded video ad horizontal screen
    BUFeedVideoAdModePortrait = 15, // rewarded video ad vertical screen
    BUFeedADModeImagePortrait = 16,
    BUFeedADModeSquareImage   = 33, //SquareImage Currently it exists only in the oversea now. V3200 add
    BUFeedADModeSquareVideo   = 50, //SquareVideo Currently it exists only in the oversea now. V3200 add
};
 
@interface BUMaterialMeta : NSObject <NSCoding>
 
/// interaction types supported by ads.
@property (nonatomic, assign) BUInteractionType interactionType;
 
/// material pictures.
@property (nonatomic, strong) NSArray<BUImage *> *imageAry;
 
/// ad logo icon.
@property (nonatomic, strong) BUImage *icon;
 
/// ad headline.
@property (nonatomic, copy) NSString *AdTitle;
 
/// ad description.
@property (nonatomic, copy) NSString *AdDescription;
 
/// ad source.
@property (nonatomic, copy) NSString *source;
 
/// text displayed on the creative button.
@property (nonatomic, copy) NSString *buttonText;
 
/// display format of the in-feed ad, other ads ignores it.
@property (nonatomic, assign) BUFeedADMode imageMode;
 
/// Star rating, range from 1 to 5.
@property (nonatomic, assign) NSInteger score;
 
/// Number of comments.
@property (nonatomic, assign) NSInteger commentNum;
 
/// ad installation package size, unit byte.
@property (nonatomic, assign) NSInteger appSize;
 
/// video duration
@property (nonatomic, assign) NSInteger videoDuration;
 
/// video url, will be empty string if allowCustomVideoPlayer is NO, contact BD to add to allow list.
@property (nonatomic, copy, readonly) NSString *videoUrl;
 
/// be allowed to play video ad via custome player, contact BD to add to allow list.
@property (nonatomic, assign, readonly) BOOL allowCustomVideoPlayer;
 
/// video resolution width
@property (nonatomic, assign, readonly) NSInteger videoResolutionWidth;
 
/// video resolution height
@property (nonatomic, assign, readonly) NSInteger videoResolutionHeight;
 
/// media configuration parameters.
@property (nonatomic, copy) NSDictionary *mediaExt;
 
 
- (instancetype)initWithDictionary:(NSDictionary *)dict error:(NSError * __autoreleasing *)error;
 
@end