mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-16 06:56:34 +03:00
Changed native/response types to conform recommendations from README
This commit is contained in:
@@ -16,7 +16,7 @@ type Asset struct {
|
||||
// int
|
||||
// Description:
|
||||
// Unique asset ID, assigned by exchange, must match one of the asset IDs in request.
|
||||
ID int `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
|
||||
// Field:
|
||||
// required
|
||||
@@ -28,7 +28,7 @@ type Asset struct {
|
||||
// 0
|
||||
// Description:
|
||||
// Set to 1 if asset is required. (bidder requires it to be displayed).
|
||||
Required int `json:"required,omitempty"`
|
||||
Required int8 `json:"required,omitempty"`
|
||||
|
||||
// Field:
|
||||
// title
|
||||
|
||||
@@ -23,7 +23,7 @@ type Image struct {
|
||||
// int
|
||||
// Description:
|
||||
// Width of the image in pixels
|
||||
W int `json:"w,omitempty"`
|
||||
W uint64 `json:"w,omitempty"`
|
||||
|
||||
// Field:
|
||||
// h
|
||||
@@ -33,7 +33,7 @@ type Image struct {
|
||||
// int
|
||||
// Description:
|
||||
// Height of the image in pixels
|
||||
H int `json:"h,omitempty"`
|
||||
H uint64 `json:"h,omitempty"`
|
||||
|
||||
// Field:
|
||||
// ext
|
||||
|
||||
@@ -10,6 +10,8 @@ type Response struct {
|
||||
// optional
|
||||
// Type:
|
||||
// string
|
||||
// Default:
|
||||
// 1.1
|
||||
// Description:
|
||||
// Version of the Native Markup version in use.
|
||||
Ver string `json:"ver,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user