APIFramework Enum + Fix APIs Type

This commit is contained in:
Scott Kay
2022-05-17 02:41:35 -04:00
parent 92c8205e77
commit 434839045b
4 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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