adcom1: implement/reject TODOs

This commit is contained in:
Max Cherry 2018-12-27 14:51:43 +02:00
Родитель 2d43ec9beb
Коммит 4b4667d693
6 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -11,7 +11,7 @@ type Asset struct {
// integer // integer
// Definition: // Definition:
// The value of AssetFormat.id if this ad references a specific native placement defined by a Placement object and its structure. // The value of AssetFormat.id if this ad references a specific native placement defined by a Placement object and its structure.
ID int `json:"id,omitempty"` // TODO: confirm type when get to AssetFormat ID int `json:"id,omitempty"`
// Attribute: // Attribute:
// req // req

Просмотреть файл

@ -172,7 +172,7 @@ type Content struct {
// integer // integer
// Definition: // Definition:
// Source relationship, where 0 = indirect, 1 = direct. // Source relationship, where 0 = indirect, 1 = direct.
SrcRel int8 `json:"srcrel,omitempty"` // TODO: make enum?.. SrcRel int8 `json:"srcrel,omitempty"`
// Attribute: // Attribute:
// len // len

Просмотреть файл

@ -47,7 +47,7 @@ type Event struct {
// Definition: // Definition:
// An array of key-value pairs to support vendor-specific data required for custom tracking. // An array of key-value pairs to support vendor-specific data required for custom tracking.
// For example, the account number of a buyer with a tracking company might be represented as: {"acct": "123"}. // For example, the account number of a buyer with a tracking company might be represented as: {"acct": "123"}.
CData map[string]string `json:"cdata,omitempty"` // TODO: confirm type - probably, need map[string]json.RawMessage? CData map[string]string `json:"cdata,omitempty"`
// Attribute: // Attribute:
// ext // ext

Просмотреть файл

@ -22,7 +22,7 @@ type Placement struct {
// Integer; default 0 // Integer; default 0
// Definition: // Definition:
// Indicates if server-side ad insertion (e.g., stitching an ad into an audio or video stream) is in use and the impact of this on asset and tracker retrieval, where 0 = status unknown, 1 = all client-side (i.e., not server-side), 2 = assets stitched server-side but tracking pixels fired client-side, 3 = all server-side. // Indicates if server-side ad insertion (e.g., stitching an ad into an audio or video stream) is in use and the impact of this on asset and tracker retrieval, where 0 = status unknown, 1 = all client-side (i.e., not server-side), 2 = assets stitched server-side but tracking pixels fired client-side, 3 = all server-side.
SSAI int8 `json:"ssai,omitempty"` // TODO: make an enum? SSAI int8 `json:"ssai,omitempty"`
// Attribute: // Attribute:
// sdk // sdk

Просмотреть файл

@ -30,7 +30,7 @@ type User struct {
// integer // integer
// Definition: // Definition:
// Year of birth as a 4-digit integer. // Year of birth as a 4-digit integer.
YOB int `json:"yob,omitempty"` // TODO: make smaller int? int16 should cover it. YOB uint16 `json:"yob,omitempty"`
// Attribute: // Attribute:
// gender // gender

Просмотреть файл

@ -1,7 +1,7 @@
package adcom package adcom
// VideoPlacementSubtype represents types of video placements derived largely from the IAB Digital Video Guidelines. // VideoPlacementSubtype represents types of video placements derived largely from the IAB Digital Video Guidelines.
type VideoPlacementSubtype int // TODO: rename?.. It's "List: Placement Subtypes - Video" in spec. type VideoPlacementSubtype int
// Types of video placements derived largely from the IAB Digital Video Guidelines. // Types of video placements derived largely from the IAB Digital Video Guidelines.
const ( const (