Files
openrtb/adcom1/data_asset_format.go
T
Max Cherry 1efc868257 types: actually, better stick to int64 instead of just int
At least, it's more convenient to use with time std pkg.
Also, API implementations better never rely on machine-dependent types.
2018-12-30 12:42:52 +02:00

34 lines
924 B
Go

package adcom1
import "encoding/json"
// DataAssetFormat object is used to provide native asset format specifications for a data element.
// A data asset is used for all miscellaneous elements such as brand name, ratings, stars, review count, downloads, prices, etc.
// It is purposefully generic to support native elements not currently contemplated by this specification.
type DataAssetFormat struct {
// Attribute:
// type
// Type:
// integer; required
// Definition:
// The type of data asset supported.
// Refer to List: Native Data Asset Types.
Type NativeDataAssetType `json:"type,omitempty"`
// Attribute:
// len
// Type:
// integer
// Definition:
// The maximum allowed length of the data value.
Len int64 `json:"len,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}