mirror of
https://github.com/prebid/openrtb.git
synced 2026-06-16 15:06:35 +03:00
5b614ff545
As proposed in: https://github.com/mxmCherry/openrtb/issues/8
181 lines
4.4 KiB
Go
181 lines
4.4 KiB
Go
package openrtb
|
||
|
||
// 3.2.9 Object: Content
|
||
//
|
||
// This object describes the content in which the impression will appear, which may be syndicated or nonsyndicated
|
||
// content. This object may be useful when syndicated content contains impressions and does
|
||
// not necessarily match the publisher’s general content. The exchange might or might not have
|
||
// knowledge of the page where the content is running, as a result of the syndication method. For
|
||
// example might be a video impression embedded in an iframe on an unknown web property or device.
|
||
type Content struct {
|
||
|
||
// Attribute:
|
||
// id
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// ID uniquely identifying the content.
|
||
ID string `json:"id,omitempty"`
|
||
|
||
// Attribute:
|
||
// episode
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// Episode number (typically applies to video content).
|
||
Episode uint64 `json:"episode,omitempty"`
|
||
|
||
// Attribute:
|
||
// title
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// Content title.
|
||
// Video Examples: “Search Committee” (television), “A New
|
||
// Hope” (movie), or “Endgame” (made for web).
|
||
// Non-Video Example: “Why an Antarctic Glacier Is Melting So
|
||
// Quickly” (Time magazine article).
|
||
Title string `json:"title,omitempty"`
|
||
|
||
// Attribute:
|
||
// series
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// Content series.
|
||
// Video Examples: “The Office” (television), “Star Wars” (movie),
|
||
// or “Arby ‘N’ The Chief” (made for web).
|
||
// Non-Video Example: “Ecocentric” (Time Magazine blog).
|
||
Series string `json:"series,omitempty"`
|
||
|
||
// Attribute:
|
||
// season
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// Content season; typically for video content (e.g., “Season 3”).
|
||
Season string `json:"season,omitempty"`
|
||
|
||
// Attribute:
|
||
// producer
|
||
// Type:
|
||
// object
|
||
// Description:
|
||
// Details about the content Producer (Section 3.2.10).
|
||
Producer *Producer `json:"producer,omitempty"`
|
||
|
||
// Attribute:
|
||
// url
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// URL of the content, for buy-side contextualization or review.
|
||
URL string `json:"url,omitempty"`
|
||
|
||
// Attribute:
|
||
// cat
|
||
// Type:
|
||
// string array
|
||
// Description:
|
||
// Array of IAB content categories that describe the content
|
||
// producer. Refer to List 5.1.
|
||
Cat []string `json:"cat,omitempty"`
|
||
|
||
// Attribute:
|
||
// videoquality
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// Video quality per IAB’s classification. Refer to List 5.11.
|
||
VideoQuality int8 `json:"videoquality,omitempty"`
|
||
|
||
// Attribute:
|
||
// context
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// Type of content (game, video, text, etc.). Refer to List 5.14.
|
||
Context int8 `json:"context,omitempty"`
|
||
|
||
// Attribute:
|
||
// contentrating
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// Content rating (e.g., MPAA).
|
||
ContentRating string `json:"contentrating,omitempty"`
|
||
|
||
// Attribute:
|
||
// userrating
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// User rating of the content (e.g., number of stars, likes, etc.).
|
||
UserRating string `json:"userrating,omitempty"`
|
||
|
||
// Attribute:
|
||
// qagmediarating
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// Media rating per QAG guidelines. Refer to List 5.15.
|
||
QAGMediaRating int8 `json:"qagmediarating,omitempty"`
|
||
|
||
// Attribute:
|
||
// keywords
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// Comma separated list of keywords describing the content.
|
||
Keywords string `json:"keywords,omitempty"`
|
||
|
||
// Attribute:
|
||
// livestream
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// 0 = not live, 1 = content is live (e.g., stream, live blog).
|
||
LiveStream int8 `json:"livestream,omitempty"`
|
||
|
||
// Attribute:
|
||
// sourcerelationship
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// 0 = indirect, 1 = direct.
|
||
SourceRelationship int8 `json:"sourcerelationship,omitempty"`
|
||
|
||
// Attribute:
|
||
// len
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// Length of content in seconds; appropriate for video or audio.
|
||
Len uint64 `json:"len,omitempty"`
|
||
|
||
// Attribute:
|
||
// language
|
||
// Type:
|
||
// string
|
||
// Description:
|
||
// Content language using ISO-639-1-alpha-2.
|
||
Language string `json:"language,omitempty"`
|
||
|
||
// Attribute:
|
||
// embeddable
|
||
// Type:
|
||
// integer
|
||
// Description:
|
||
// Indicator of whether or not the content is embeddable (e.g.,
|
||
// an embeddable video player), where 0 = no, 1 = yes.
|
||
Embeddable int8 `json:"embeddable,omitempty"`
|
||
|
||
// Attribute:
|
||
// ext
|
||
// Type:
|
||
// object
|
||
// Description:
|
||
// Placeholder for exchange-specific extensions to OpenRTB.
|
||
Ext RawJSON `json:"ext,omitempty"`
|
||
}
|