forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asset_format.go
72 lines (64 loc) · 2.23 KB
/
asset_format.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
package adcom1
import "encoding/json"
// AssetFormat object represents the permitted specifications of a single asset of a native ad.
// Along with its own attributes, exactly one of the asset subtype objects must be included.
// All others must be omitted.
type AssetFormat struct {
// Attribute:
// id
// Type:
// integer; required
// Definition:
// Asset ID, unique within the scope of this placement specification.
ID int64 `json:"id"`
// Attribute:
// req
// Type:
// integer; default 0
// Definition:
// Indicator of whether or not this asset is required, where 0 = no, 1 = yes.
Req int8 `json:"req,omitempty"`
// Attribute:
// title
// Type:
// object; required *
// Definition:
// Asset Format Subtype Object that indicates this is specifying a title asset and provides additional detail as such.
// Refer to Object: TitleAssetFormat.
// * Required if no other asset format subtype object is specified.
Title *TitleAssetFormat `json:"title,omitempty"`
// Attribute:
// img
// Type:
// object; required *
// Definition:
// Asset Format Subtype Object that indicates this is specifying an image asset and provides additional detail as such.
// Refer to Object: ImageAssetFormat.
// * Required if no other asset format subtype object is specified.
Img *ImageAssetFormat `json:"img,omitempty"`
// Attribute:
// video
// Type:
// object; required *
// Definition:
// Asset Format Subtype Object, which leverages the VideoPlacement object, that indicates this is specifying a video asset and provides additional detail as such.
// Refer to Object: VideoPlacement.
// * Required if no other asset format subtype object is specified.
Video *VideoPlacement `json:"video,omitempty"`
// Attribute:
// data
// Type:
// object; required *
// Definition:
// Asset Format Subtype Object that indicates this is specifying a data asset and provides additional detail as such.
// Refer to Object: DataAssetFormat.
// * Required if no other asset format subtype object is specified.
Data *DataAssetFormat `json:"data,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}