forked from mxmCherry/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.go
45 lines (39 loc) · 1.16 KB
/
data.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
package openrtb
import "encoding/json"
// 3.2.21 Object: Data
//
// The data and segment objects together allow additional data about the related object (e.g., user, content) to be specified.
// This data may be from multiple sources whether from the exchange itself or third parties as specified by the id field.
// A bid request can mix data objects from multiple providers.
// The specific data providers in use should be published by the exchange a priori to its bidders.
type Data struct {
// Attribute:
// id
// Type:
// string
// Description:
// Exchange-specific ID for the data provider.
ID string `json:"id,omitempty"`
// Attribute:
// name
// Type:
// string
// Description:
// Exchange-specific name for the data provider.
Name string `json:"name,omitempty"`
// Attribute:
// segment
// Type:
// object array
// Description:
// Array of Segment (Section 3.2.22) objects that contain the
// actual data values.
Segment []Segment `json:"segment,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}