Skip to content

Commit 071ec74

Browse files
authored
Add ortb 2.6 features to content object (bsm#108)
1 parent 2214def commit 071ec74

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

content.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,10 @@ type Content struct {
3333
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
3434
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.
3535
Data []Data `json:"data,omitempty"` // Additional content data.
36+
Network *ChannelEntity `json:"network,omitempty"` // Details about the network the content is on.
37+
Channel *ChannelEntity `json:"channel,omitempty"` // Details about the channel the content is on.
38+
KwArray []string `json:"kwarray,omitempty"` // Array of keywords about the site. Only one of ‘keywords’ or‘kwarray’ may be present.
39+
CategoryTaxonomy CategoryTaxonomy `json:"cattax,omitempty"` // Defines the taxonomy in use.
40+
LangB string `json:"langb,omitempty"` // Language of the creative using IETF BCP 47. Only one of language or langb should be present.
3641
Ext json.RawMessage `json:"ext,omitempty"`
3742
}

openrtb.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -903,3 +903,11 @@ const (
903903
VideoPlcmtInterstitial VideoPlcmt = 3
904904
VideoPlcmtNoContent VideoPlcmt = 4
905905
)
906+
907+
// ChannelEntity describes the network or channel an ad will be displayed on. (Reffer Section 3.2.23 and 3.2.24 OpenRTB_2.6)
908+
type ChannelEntity struct {
909+
ID string `json:"id,omitempty"`
910+
Name string `json:"name,omitempty"`
911+
Domain string `json:"domain,omitempty"`
912+
Ext json.RawMessage `json:"ext,omitempty"`
913+
}

0 commit comments

Comments
 (0)