-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathimage_asset.go
48 lines (42 loc) · 1.07 KB
/
image_asset.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
package adcom1
import "encoding/json"
// ImageAsset object identifies the native asset as a image asset.
// Image assets are use for such elements as the actual creative images and icons.
type ImageAsset struct {
// Attribute:
// url
// Type:
// string; required
// Definition:
// A URL that returns the image for the asset.
URL string `json:"url,omitempty"`
// Attribute:
// w
// Type:
// integer; recommended
// Definition:
// Width of the image asset in device independent pixels (DIPS).
W int64 `json:"w,omitempty"`
// Attribute:
// h
// Type:
// integer; recommended
// Definition:
// Height of the image asset in device independent pixels (DIPS).
H int64 `json:"h,omitempty"`
// Attribute:
// type
// Type:
// integer
// Definition:
// The type of image represented by this asset.
// Refer to List: Native Image Asset Types.
Type NativeImageAssetType `json:"type,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}