-
Notifications
You must be signed in to change notification settings - Fork 26
/
placement.go
124 lines (110 loc) · 4.34 KB
/
placement.go
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package adcom1
import "encoding/json"
// Placement object represents the properties of a placement and the characteristics of ads permitted to be rendering within them.
// Placements of all types begin with this object as their root.
// It contains one or more subtype objects (i.e., display, video, audio) that define the kinds of media permitted as well as media specific placement behaviors.
//
// The other attributes in this object apply to all aspects and substructures of the placement (i.e., the same language, secure status, etc. apply to all media types and native assets as applicable).
type Placement struct {
// Attribute:
// tagid
// Type:
// string
// Definition:
// Identifier for specific ad placement or ad tag; unique within a distribution channel.
TagID string `json:"tagid,omitempty"`
// Attribute:
// ssai
// Type:
// Integer; default 0
// Definition:
// Indicates if server-side ad insertion (e.g., stitching an ad into an audio or video stream) is in use and the impact of this on asset and tracker retrieval, where 0 = status unknown, 1 = all client-side (i.e., not server-side), 2 = assets stitched server-side but tracking pixels fired client-side, 3 = all server-side.
SSAI int8 `json:"ssai,omitempty"`
// Attribute:
// sdk
// Type:
// string
// Definition:
// Name of ad mediation partner, SDK technology, or player responsible for rendering ad (typically video, audio, or mobile); used by some ad servers to customize ad code by partner.
SDK string `json:"sdk,omitempty"`
// Attribute:
// sdkver
// Type:
// string
// Definition:
// Version of the SDK specified in the sdk attribute.
SDKVer string `json:"sdkver,omitempty"`
// Attribute:
// reward
// Type:
// integer; default 0
// Definition:
// Indicates if this is a rewarded placement, where 0 = no, 1 = yes.
Reward int8 `json:"reward,omitempty"`
// Attribute:
// wlang
// Type:
// string array
// Definition:
// Whitelist of permitted languages of the creative using ISO-639-1-alpha-2.
// In practice, vendors using this object may elect an alternate standard (e.g., BCP-47) in which case this must be communicated a priori.
// Omission of this attribute indicates there are no restrictions.
WLang []string `json:"wlang,omitempty"`
// Attribute:
// secure
// Type:
// integer
// Definition:
// Flag to indicate if the creative is secure (i.e., uses HTTPS for all assets and markup), where 0 = no, 1 = yes.
// There is no default and thus if omitted, the secure state is unknown.
// However, as a practical matter, the safe assumption is to treat unknown as non-secure.
Secure int8 `json:"secure,omitempty"`
// Attribute:
// admx
// Type:
// integer
// Definition:
// Indicates if including markup is supported (i.e., the various adm attributes throughout the Placement structure), where 0 = no, 1 = yes.
AdMX int8 `json:"admx,omitempty"`
// Attribute:
// curlx
// Type:
// integer
// Definition:
// Indicates if retrieving markup via URL reference is supported (i.e., the various curl attributes throughout the Placement structure), where 0 = no, 1 = yes.
CURLX int8 `json:"curlx,omitempty"`
// Attribute:
// display
// Type:
// object; required *
// Definition:
// Placement Subtype Object that indicates that this may be a display placement and provides additional detail related thereto.
// Refer to Object: DisplayPlacement.
// * At least one placement subtype object is required.
Display *DisplayPlacement `json:"display,omitempty"`
// Attribute:
// video
// Type:
// object; required *
// Definition:
// Placement Subtype Object that indicates that this may be a video placement and provides additional detail related thereto.
// Refer to Object: VideoPlacement.
// * At least one placement subtype object is required.
Video *VideoPlacement `json:"video,omitempty"`
// Attribute:
// audio
// Type:
// object; required *
// Definition:
// Placement Subtype Object that indicates that this may be an audio placement and provides additional detail related thereto.
// Refer to Object: AudioPlacement.
// * At least one placement subtype object is required.
Audio *AudioPlacement `json:"audio,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}