native/request: copied openrtb.Protocol enum

This commit is contained in:
Max Cherry
2017-11-15 00:52:41 +02:00
parent dc11d8c852
commit e46c28dbcc
2 changed files with 20 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
package request
// 5.8 Protocols (from OpenRTB spec 2.5)
//
// Options for the various bid response protocols that could be supported by an exchange.
type Protocol int8
const (
ProtocolVAST10 Protocol = 1 // VAST 1.0
ProtocolVAST20 Protocol = 2 // VAST 2.0
ProtocolVAST30 Protocol = 3 // VAST 3.0
ProtocolVAST10Wrapper Protocol = 4 // VAST 1.0 Wrapper
ProtocolVAST20Wrapper Protocol = 5 // VAST 2.0 Wrapper
ProtocolVAST30Wrapper Protocol = 6 // VAST 3.0 Wrapper
ProtocolVAST40 Protocol = 7 // VAST 4.0
ProtocolVAST40Wrapper Protocol = 8 // VAST 4.0 Wrapper
ProtocolDAAST10 Protocol = 9 // DAAST 1.0
ProtocolDAAST10Wrapper Protocol = 10 // DAAST 1.0 Wrapper
)
+1 -1
View File
@@ -48,7 +48,7 @@ type Video struct {
// array of integers
// Description:
// An array of video protocols the publisher can accept in the bid response.
// See OpenRTB Table Video Bid Response Protocols for a list of possible values.
// See OpenRTB Table Video Bid Response Protocols for a list of possible values.
Protocols []int8 `json:"protocols"` // TODO!!!
// Field: