Protocols Enum + Restored Video.Protocol

This commit is contained in:
Scott Kay
2022-05-17 02:02:14 -04:00
parent b6d49d195c
commit 8b983d7713
3 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -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.
//
+3 -1
View File
@@ -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
+16 -1
View File
@@ -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