Skip to content

Commit cb99031

Browse files
committed
Change type on Content.Context from int to NumberOrString
1 parent 8d41110 commit cb99031

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

content.go

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ package openrtb
66
// knowledge of the page where the content is running, as a result of the syndication method. For
77
// example might be a video impression embedded in an iframe on an unknown web property or device.
88
type Content struct {
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-
Artist string `json:"artist,omitempty"` // Artist credited with the content.
15-
Genre string `json:"genre,omitempty"` // Genre that best describes the content
16-
Album string `json:"album,omitempty"` // Album to which the content belongs; typically for audio.
17-
ISRC string `json:"isrc,omitempty"` // International Standard Recording Code conforming to ISO - 3901.
18-
Producer *Producer `json:"producer,omitempty"` // The producer.
19-
URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review.
20-
Cat []string `json:"cat,omitempty"` // Array of IAB content categories that describe the content.
21-
ProdQuality int `json:"prodq,omitempty"` // Production quality per IAB's classification.
22-
VideoQuality int `json:"videoquality,omitempty"` // Video quality per IAB's classification.
23-
Context int `json:"context,omitempty"` // Type of content (game, video, text, etc.).
24-
ContentRating string `json:"contentrating,omitempty"` // Content rating (e.g., MPAA).
25-
UserRating string `json:"userrating,omitempty"` // User rating of the content (e.g., number of stars, likes, etc.).
26-
QAGMediaRating int `json:"qagmediarating,omitempty"` // Media rating per QAG guidelines.
27-
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords describing the content.
28-
LiveStream int `json:"livestream,omitempty"` // 0 = not live, 1 = content is live (e.g., stream, live blog).
29-
SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct.
30-
Len int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio.
31-
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
32-
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.
33-
Data []Data `json:"data,omitempty"` // Additional content data.
34-
Ext Extension `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+
Artist string `json:"artist,omitempty"` // Artist credited with the content.
15+
Genre string `json:"genre,omitempty"` // Genre that best describes the content
16+
Album string `json:"album,omitempty"` // Album to which the content belongs; typically for audio.
17+
ISRC string `json:"isrc,omitempty"` // International Standard Recording Code conforming to ISO - 3901.
18+
Producer *Producer `json:"producer,omitempty"` // The producer.
19+
URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review.
20+
Cat []string `json:"cat,omitempty"` // Array of IAB content categories that describe the content.
21+
ProdQuality int `json:"prodq,omitempty"` // Production quality per IAB's classification.
22+
VideoQuality int `json:"videoquality,omitempty"` // Video quality per IAB's classification.
23+
Context NumberOrString `json:"context,omitempty"` // Type of content (game, video, text, etc.).
24+
ContentRating string `json:"contentrating,omitempty"` // Content rating (e.g., MPAA).
25+
UserRating string `json:"userrating,omitempty"` // User rating of the content (e.g., number of stars, likes, etc.).
26+
QAGMediaRating int `json:"qagmediarating,omitempty"` // Media rating per QAG guidelines.
27+
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords describing the content.
28+
LiveStream int `json:"livestream,omitempty"` // 0 = not live, 1 = content is live (e.g., stream, live blog).
29+
SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct.
30+
Len int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio.
31+
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
32+
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.
33+
Data []Data `json:"data,omitempty"` // Additional content data.
34+
Ext Extension `json:"ext,omitempty"`
3535
}

0 commit comments

Comments
 (0)