forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathimage_asset_format.go
91 lines (81 loc) · 2.53 KB
/
image_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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package adcom1
import "encoding/json"
// ImageAssetFormat object is used to provide native asset format specifications for an image element.
// Image elements are typically used for the actual creative image and icons.
type ImageAssetFormat struct {
// Attribute:
// type
// Type:
// integer
// Definition:
// The type of image asset supported.
// Refer to List: Native Image Asset Types.
Type NativeImageAssetType `json:"type,omitempty"`
// Attribute:
// mime
// Type:
// string array
// Definition:
// Array of supported mime types (e.g., “image/jpeg”, “image/gif”).
// If omitted, all types are assumed.
MIME []string `json:"mime,omitempty"`
// Attribute:
// w
// Type:
// integer
// Definition:
// Absolute width of the image asset in device independent pixels (DIPS).
// Note that mixing absolute and relative sizes is not recommended.
W int64 `json:"w,omitempty"`
// Attribute:
// h
// Type:
// integer
// Definition:
// Absolute height of the image asset in device independent pixels (DIPS).
// Note that mixing absolute and relative sizes is not recommended.
H int64 `json:"h,omitempty"`
// Attribute:
// wmin
// Type:
// integer
// Definition:
// The minimum requested absolute width of the image in device independent pixels (DIPS).
// This option should be used for any scaling of images by the client.
WMin int64 `json:"wmin,omitempty"`
// Attribute:
// hmin
// Type:
// integer
// Definition:
// The minimum requested absolute height of the image in device independent pixels (DIPS).
// This option should be used for any scaling of images by the client.
HMin int64 `json:"hmin,omitempty"`
// Attribute:
// wratio
// Type:
// integer
// Definition:
// Relative width of the image asset when expressing size as a ratio.
// Note that mixing absolute and relative sizes is not recommended.
// Dev note:
// This is kept as `int8` because ratio values are expected to be quite small (like 16:9).
WRatio int8 `json:"wratio,omitempty"`
// Attribute:
// hratio
// Type:
// integer
// Definition:
// Relative height of the image asset when expressing size as a ratio.
// Note that mixing absolute and relative sizes is not recommended.
// Dev note:
// This is kept as `int8` because ratio values are expected to be quite small (like 16:9).
HRatio int8 `json:"hratio,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}