|
1 | 1 | package openrtb |
2 | 2 |
|
3 | | -import "encoding/json" |
4 | | - |
5 | 3 | // This object describes the content in which the impression will appear, which may be syndicated or nonsyndicated |
6 | 4 | // content. This object may be useful when syndicated content contains impressions and does |
7 | 5 | // not necessarily match the publisher's general content. The exchange might or might not have |
8 | 6 | // knowledge of the page where the content is running, as a result of the syndication method. For |
9 | 7 | // example might be a video impression embedded in an iframe on an unknown web property or device. |
10 | 8 | type Content struct { |
11 | | - ID string `json:"id,omitempty"` // ID uniquely identifying the content. |
12 | | - Episode int `json:"episode,omitempty"` // Episode number (typically applies to video content). |
13 | | - Title string `json:"title,omitempty"` // Content title. |
14 | | - Series string `json:"series,omitempty"` // Content series. |
15 | | - Season string `json:"season,omitempty"` // Content season. |
16 | | - Producer *Producer `json:"producer,omitempty"` // The producer. |
17 | | - URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review. |
18 | | - Cat []string `json:"cat,omitempty"` // Array of IAB content categories that describe the content. |
19 | | - VideoQuality int `json:"videoquality,omitempty"` // Video quality per IAB's classification. |
20 | | - Context int `json:"context,omitempty"` // Type of content (game, video, text, etc.). |
21 | | - ContentRating string `json:"contentrating,omitempty"` // Content rating (e.g., MPAA). |
22 | | - UserRating string `json:"userrating,omitempty"` // User rating of the content (e.g., number of stars, likes, etc.). |
23 | | - QAGMediaRating int `json:"qagmediarating,omitempty"` // Media rating per QAG guidelines. |
24 | | - Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords describing the content. |
25 | | - LiveStream int `json:"livestream,omitempty"` // 0 = not live, 1 = content is live (e.g., stream, live blog). |
26 | | - SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct. |
27 | | - Len int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio. |
28 | | - Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2. |
29 | | - Embeddable int `json:"embeddable,omitempty"` // Indicator of whether or not the content is embeddable (e.g., an embeddable video player), where 0 = no, 1 = yes. |
30 | | - Ext json.RawMessage `json:"ext,omitempty"` |
| 9 | + ID string `json:"id,omitempty"` // ID uniquely identifying the content. |
| 10 | + Episode int `json:"episode,omitempty"` // Episode number (typically applies to video content). |
| 11 | + Title string `json:"title,omitempty"` // Content title. |
| 12 | + Series string `json:"series,omitempty"` // Content series. |
| 13 | + Season string `json:"season,omitempty"` // Content season. |
| 14 | + Producer *Producer `json:"producer,omitempty"` // The producer. |
| 15 | + URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review. |
| 16 | + Cat []string `json:"cat,omitempty"` // Array of IAB content categories that describe the content. |
| 17 | + VideoQuality int `json:"videoquality,omitempty"` // Video quality per IAB's classification. |
| 18 | + Context int `json:"context,omitempty"` // Type of content (game, video, text, etc.). |
| 19 | + ContentRating string `json:"contentrating,omitempty"` // Content rating (e.g., MPAA). |
| 20 | + UserRating string `json:"userrating,omitempty"` // User rating of the content (e.g., number of stars, likes, etc.). |
| 21 | + QAGMediaRating int `json:"qagmediarating,omitempty"` // Media rating per QAG guidelines. |
| 22 | + Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords describing the content. |
| 23 | + LiveStream int `json:"livestream,omitempty"` // 0 = not live, 1 = content is live (e.g., stream, live blog). |
| 24 | + SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct. |
| 25 | + Len int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio. |
| 26 | + Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2. |
| 27 | + Embeddable int `json:"embeddable,omitempty"` // Indicator of whether or not the content is embeddable (e.g., an embeddable video player), where 0 = no, 1 = yes. |
| 28 | + Ext Extension `json:"ext,omitempty"` |
31 | 29 | } |
0 commit comments