forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
banner.go
32 lines (28 loc) · 875 Bytes
/
banner.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
package adcom1
import "encoding/json"
// Banner object describes a basic banner creative.
// It is intended for display scenarios that require a simple, structured image/link pair and is more secure than allowing arbitrary HTML or JavaScript code.
type Banner struct {
// Attribute:
// img
// Type:
// string; required
// Definition:
// A URL that will return the image.
Img string `json:"img"`
// Attribute:
// link
// Type:
// object
// Definition:
// Destination link if the image is activated (e.g., clicked); not applicable in some contexts (e.g., DOOH) and its inclusion does not guarantee it will be supported.
// Refer to Object: LinkAsset.
Link *LinkAsset `json:"link,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}