forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsegment.go
40 lines (35 loc) · 969 Bytes
/
segment.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
package adcom1
import "encoding/json"
// Segment objects are essentially key-value pairs that convey specific units of data.
// The parent Data object is a collection of such values from a given data provider.
// When in use, vendor-specific IDs should be communicated a priori among the parties.
type Segment struct {
// Attribute:
// id
// Type:
// string
// Definition:
// ID of the data segment specific to the data provider.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Definition:
// Displayable name of the data segment specific to the data provider.
Name string `json:"name,omitempty"`
// Attribute:
// value
// Type:
// string
// Definition:
// String representation of the data segment value.
Value string `json:"value,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}