Skip to content

Commit

Permalink
Add ortb 2.6 features to content object (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd-pranay authored Jun 15, 2023
1 parent 2214def commit 071ec74
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@ type Content struct {
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
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.
Data []Data `json:"data,omitempty"` // Additional content data.
Network *ChannelEntity `json:"network,omitempty"` // Details about the network the content is on.
Channel *ChannelEntity `json:"channel,omitempty"` // Details about the channel the content is on.
KwArray []string `json:"kwarray,omitempty"` // Array of keywords about the site. Only one of ‘keywords’ or‘kwarray’ may be present.
CategoryTaxonomy CategoryTaxonomy `json:"cattax,omitempty"` // Defines the taxonomy in use.
LangB string `json:"langb,omitempty"` // Language of the creative using IETF BCP 47. Only one of language or langb should be present.
Ext json.RawMessage `json:"ext,omitempty"`
}
8 changes: 8 additions & 0 deletions openrtb.go
Original file line number Diff line number Diff line change
Expand Up @@ -903,3 +903,11 @@ const (
VideoPlcmtInterstitial VideoPlcmt = 3
VideoPlcmtNoContent VideoPlcmt = 4
)

// ChannelEntity describes the network or channel an ad will be displayed on. (Reffer Section 3.2.23 and 3.2.24 OpenRTB_2.6)
type ChannelEntity struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Domain string `json:"domain,omitempty"`
Ext json.RawMessage `json:"ext,omitempty"`
}

0 comments on commit 071ec74

Please sign in to comment.