forked from PubMatic-OpenWrap/prebid-openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
source.go
57 lines (50 loc) · 1.76 KB
/
source.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
49
50
51
52
53
54
55
56
57
package openrtb2
import "encoding/json"
// 3.2.2 Object: Source
//
// This object describes the nature and behavior of the entity that is the source of the bid request upstream from the exchange.
// The primary purpose of this object is to define post-auction or upstream decisioning when the exchange itself does not control the final decision.
// A common example of this is header bidding, but it can also apply to upstream server entities such as another RTB exchange, a mediation platform, or an ad server combines direct campaigns with 3rd party demand in decisioning.
type Source struct {
// Attribute:
// fd
// Type:
// Integer; recommended
// Description:
// Entity responsible for the final impression sale decision, where
// 0 = exchange, 1 = upstream source.
FD int8 `json:"fd,omitempty"`
// Attribute:
// tid
// Type:
// string; recommended
// Description:
// Transaction ID that must be common across all participants in
// this bid request (e.g., potentially multiple exchanges).
TID string `json:"tid,omitempty"`
// Attribute:
// pchain
// Type:
// string; recommended
// Description:
// Payment ID chain string containing embedded syntax
// described in the TAG Payment ID Protocol v1.0.
PChain string `json:"pchain,omitempty"`
// Attribute:
// schain
// Type:
// object; recommended
// Description:
// This object represents both the links in the supply chain as
// well as an indicator whether or not the supply chain is
// complete. Details via the SupplyChain object (section
// 3.2.25)
SChain *SupplyChain `json:"schain,omitempty"`
// Attribute:
// ext
// Type:
// object
// Description:
// Placeholder for exchange-specific extensions to OpenRTB.
Ext json.RawMessage `json:"ext,omitempty"`
}