diff --git a/openrtb2/audio.go b/openrtb2/audio.go index d642bac..23f3b58 100644 --- a/openrtb2/audio.go +++ b/openrtb2/audio.go @@ -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 diff --git a/openrtb2/bid.go b/openrtb2/bid.go index 0831cb9..e26b881 100644 --- a/openrtb2/bid.go +++ b/openrtb2/bid.go @@ -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 diff --git a/openrtb2/native.go b/openrtb2/native.go index af2f60a..e7054cd 100644 --- a/openrtb2/native.go +++ b/openrtb2/native.go @@ -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 diff --git a/openrtb2/video.go b/openrtb2/video.go index da18610..db9ab28 100644 --- a/openrtb2/video.go +++ b/openrtb2/video.go @@ -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