mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-14 14:06:38 +03:00
APIFramework Enum + Fix APIs Type
This commit is contained in:
+3
-1
@@ -208,7 +208,9 @@ type Audio struct {
|
||||
// List of supported API frameworks for this impression. Refer to
|
||||
// List: API Frameworks in AdCOM 1.0. If an API is not explicitly
|
||||
// listed, it is assumed not to be supported.
|
||||
API []int64 `json:"api,omitempty"`
|
||||
// Note:
|
||||
// OpenRTB <=2.5 defined only frameworks 1..6.
|
||||
API []adcom1.APIFramework `json:"api,omitempty"`
|
||||
|
||||
// Attribute:
|
||||
// companiontype
|
||||
|
||||
+4
-2
@@ -208,7 +208,7 @@ type Bid struct {
|
||||
// List of supported APIs for the markup. If an API is not explicitly
|
||||
// listed, it is assumed to be unsupported. Refer to List: API
|
||||
// Frameworks in AdCOM 1.0.
|
||||
APIs int64 `json:"apis,omitempty"`
|
||||
APIs []adcom1.APIFramework `json:"apis,omitempty"`
|
||||
|
||||
// Attribute:
|
||||
// api
|
||||
@@ -218,7 +218,9 @@ type Bid struct {
|
||||
// NOTE: Deprecated in favor of the apis integer array.
|
||||
// API required by the markup if applicable. Refer to List: API
|
||||
// Frameworks in AdCOM 1.0.
|
||||
API int64 `json:"api,omitempty"`
|
||||
// Note:
|
||||
// OpenRTB <=2.5 defined only frameworks 1..6.
|
||||
API adcom1.APIFramework `json:"api,omitempty"`
|
||||
|
||||
// Attribute:
|
||||
// protocol
|
||||
|
||||
+3
-1
@@ -58,7 +58,9 @@ type Native struct {
|
||||
// List of supported API frameworks for this impression. Refer to
|
||||
// List: API Frameworks in AdCOM. If an API is not explicitly listed,
|
||||
// it is assumed not to be supported.
|
||||
API []int64 `json:"api,omitempty"`
|
||||
// Note:
|
||||
// OpenRTB <=2.5 defined only frameworks 1..6.
|
||||
API []adcom1.APIFramework `json:"api,omitempty"`
|
||||
|
||||
// Attribute:
|
||||
// sequence
|
||||
|
||||
+3
-1
@@ -349,7 +349,9 @@ type Video struct {
|
||||
// List of supported API frameworks for this impression. Refer to
|
||||
// List: API Frameworks in AdCOM 1.0. If an API is not explicitly
|
||||
// listed, it is assumed not to be supported.
|
||||
API []int64 `json:"api,omitempty"`
|
||||
// Note:
|
||||
// OpenRTB <=2.5 defined only frameworks 1..6.
|
||||
API []adcom1.APIFramework `json:"api,omitempty"`
|
||||
|
||||
// Attribute:
|
||||
// companiontype
|
||||
|
||||
Reference in New Issue
Block a user