forked from bsm/openrtb
/
asset.go
17 lines (15 loc) · 978 Bytes
/
asset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package request
import "encoding/json"
// Asset is the main container object for each asset requested or supported by Exchange
// on behalf of the rendering client. Only one of the {title,img,video,data}
// objects should be present in each object. The id is to be unique within the
// AssetObject array so that the response can be aligned.
type Asset struct {
ID int `json:"id"` // Unique asset ID, assigned by exchange
Required int `json:"required,omitempty"` // Set to 1 if asset is required
Title *Title `json:"title,omitempty"` // Title object for title assets
Image *Image `json:"img,omitempty"` // Image object for image assets
Video *Video `json:"video,omitempty"` // Video object for video assets
Data *Data `json:"data,omitempty"` // Data object for brand name, description, ratings, prices etc.
Ext json.RawMessage `json:"ext,omitempty"`
}