forked from prebid/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdata_asset.go
42 lines (37 loc) · 1.17 KB
/
data_asset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package adcom1
import "encoding/json"
// DataAsset object identifies the native asset as a data asset.
// A data asset is used for all miscellaneous elements such as brand name, ratings, stars, review count, downloads, price, counts, etc.
// It is purposefully generic to support native elements not currently contemplated by this specification.
type DataAsset struct {
// Attribute:
// value
// Type:
// string; required
// Definition:
// A formatted string of data to be displayed (e.g., “5 stars”, “3.4 stars out of 5”, “$10”, etc.).
Value string `json:"value"`
// Attribute:
// len
// Type:
// integer
// Definition:
// The length of the value contents.
// This length should conform to recommendations provided in List: Native Data Asset Types
Len int64 `json:"len,omitempty"`
// Attribute:
// type
// Type:
// integer
// Definition:
// The type of data represented by this asset.
// Refer to List: Native Data Asset Types.
Type NativeDataAssetType `json:"type,omitempty"`
// Attribute:
// ext
// Type:
// object
// Definition:
// Optional vendor-specific extensions.
Ext json.RawMessage `json:"ext,omitempty"`
}