mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 14:06:38 +03:00
Moved native/request.Protocol (copied from openrtb.Protocol) to native.Protocol (for consistency)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package request
|
||||
package native
|
||||
|
||||
// 5.8 Protocols (from OpenRTB spec 2.5)
|
||||
//
|
||||
// Options for the various bid response protocols that could be supported by an exchange.
|
||||
//
|
||||
// Dev note: this enum is copied to native package to allow requiring native/{request,response} in root openrtb package in future.
|
||||
type Protocol int8
|
||||
|
||||
const (
|
||||
@@ -1,6 +1,10 @@
|
||||
package request
|
||||
|
||||
import "encoding/json"
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/mxmCherry/openrtb/native"
|
||||
)
|
||||
|
||||
// 4.5 Video Object
|
||||
//
|
||||
@@ -51,7 +55,7 @@ type Video struct {
|
||||
// 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.
|
||||
Protocols []Protocol `json:"protocols"`
|
||||
Protocols []native.Protocol `json:"protocols"`
|
||||
|
||||
// Field:
|
||||
// ext
|
||||
|
||||
Reference in New Issue
Block a user