diff --git a/native1/protocol.go b/native1/protocol.go index d2ce1b4..0f5ce4e 100644 --- a/native1/protocol.go +++ b/native1/protocol.go @@ -1,6 +1,6 @@ package native1 -// 5.8 Protocols (from AdCOM spec 1.0) +// Protocols (from AdCOM spec 1.0, List: Creative Subtypes - Audio/Video) // // Options for the various bid response protocols that could be supported by an exchange. // diff --git a/openrtb2/audio.go b/openrtb2/audio.go index 2f00abf..aa9c131 100644 --- a/openrtb2/audio.go +++ b/openrtb2/audio.go @@ -62,7 +62,9 @@ type Audio struct { // Description: // Array of supported audio protocols. Refer to List: Creative // Subtypes - Audio/Video in AdCOM 1.0. - Protocols []int8 `json:"protocols,omitempty"` + // Note: + // OpenRTB <=2.5 defined only protocols 1..10. + Protocols []adcom1.MediaCreativeSubtype `json:"protocols,omitempty"` // Attribute: // startdelay diff --git a/openrtb2/video.go b/openrtb2/video.go index e39b7c1..0b23de5 100644 --- a/openrtb2/video.go +++ b/openrtb2/video.go @@ -89,7 +89,22 @@ type Video struct { // Definition: // Array of supported video protocols. Refer to List: Creative // Subtypes - Audio/Video in AdCOM 1.0. - Protocols []int8 `json:"protocols,omitempty"` + // Note: + // OpenRTB <=2.5 defined only protocols 1..10. + Protocols []adcom1.MediaCreativeSubtype `json:"protocols,omitempty"` + + // Attribute: + // protocol + // Type: + // integer; DEPRECATED; REMOVED in OpenRTB 2.6 + // Description: + // NOTE: Deprecated in favor of protocols. + // Supported video protocol. Refer to List 5.8. At least one + // supported protocol must be specified in either the protocol + // or protocols attribute. + // Note: + // OpenRTB <=2.5 defined only protocols 1..10. + Protocol adcom1.MediaCreativeSubtype `json:"protocol,omitempty"` // Attribute: // w