forked from mxmCherry/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
segment.go
43 lines (37 loc) · 1.01 KB
/
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
41
42
43
package openrtb
import "encoding/json"
// 3.2.22 Object: Segment
//
// 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.
// The specific segment names and value options must be published by the exchange a priori to its bidders.
type Segment struct {
// Attribute:
// id
// Type:
// string
// Description:
// ID of the data segment specific to the data provider.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Description:
// Name of the data segment specific to the data provider.
Name string `json:"name,omitempty"`
// Attribute:
// value
// Type:
// string
// Description:
// String representation of the data segment value.
Value string `json:"value,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}