Skip to content

Commit 5563255

Browse files
authored
full support for langb fields (bsm#109)
1 parent 071ec74 commit 5563255

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

bidrequest.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ type BidRequest struct {
2727
TimeMax int `json:"tmax,omitempty"` // Maximum amount of time in milliseconds to submit a bid
2828
Seats []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this auction
2929
BlockedSeats []string `json:"bseat,omitempty"` // Array of buyer seats blocked to bid on this auction
30-
Languages []string `json:"wlang,omitempty"` // Array of languages for creatives using ISO-639-1-alpha-2
30+
Languages []string `json:"wlang,omitempty"` // Allowed list of languages for creatives using ISO-639-1-alpha-2. Omission implies no specific restrictions, but buyers would be advised to consider language attribute in the Device and/or Content objects if available. Only one of wlang or wlangb should be present.
31+
LanguagesB []string `json:"wlangb,omitempty"` // Allowed list of languages for creatives using IETF BCP 47I. Omission implies no specific restrictions, but buyers would be advised to consider language attribute in the Device and/or Content objects if available. Only one of wlang or wlangb should be present.
3132
AllImpressions int `json:"allimps,omitempty"` // Flag to indicate whether exchange can verify that all impressions offered represent all of the impressions available in context, Default: 0
3233
Currencies []string `json:"cur,omitempty"` // Array of allowed currencies
3334
BlockedCategories []ContentCategory `json:"bcat,omitempty"` // Blocked Advertiser Categories.

content.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ type Content struct {
1919
ISRC string `json:"isrc,omitempty"` // International Standard Recording Code conforming to ISO - 3901.
2020
Producer *Producer `json:"producer,omitempty"` // The producer.
2121
URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review.
22+
CategoryTaxonomy CategoryTaxonomy `json:"cattax,omitempty"` // Defines the taxonomy in use.
2223
Categories []ContentCategory `json:"cat,omitempty"` // Array of IAB content categories that describe the content.
2324
ProductionQuality ProductionQuality `json:"prodq,omitempty"` // Production quality per IAB's classification.
2425
VideoQuality ProductionQuality `json:"videoquality,omitempty"` // DEPRECATED. Video quality per IAB's classification.
@@ -31,12 +32,11 @@ type Content struct {
3132
SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct.
3233
Length int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio.
3334
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
35+
LanguageB string `json:"langb,omitempty"` // Content language using IETF BCP 47. Only one of language or langb should be present.
3436
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.
3537
Data []Data `json:"data,omitempty"` // Additional content data.
3638
Network *ChannelEntity `json:"network,omitempty"` // Details about the network the content is on.
3739
Channel *ChannelEntity `json:"channel,omitempty"` // Details about the channel the content is on.
3840
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.
4141
Ext json.RawMessage `json:"ext,omitempty"`
4242
}

device.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ type Device struct {
2626
JS int `json:"js,omitempty"` // Javascript status ("0": Disabled, "1": Enabled)
2727
GeoFetch int `json:"geofetch,omitempty"` // Indicates if the geolocation API will be available to JavaScript code running in the banner,
2828
FlashVersion string `json:"flashver,omitempty"` // Flash version
29-
Language string `json:"language,omitempty"` // Browser language
29+
Language string `json:"language,omitempty"` // Browser language using ISO-639-1-alpha-2. Only one of language or langb should be present.
30+
LanguageB string `json:"langb,omitempty"` // Browser language using IETF BCP 47. Only one of language or langb should be present.
3031
Carrier string `json:"carrier,omitempty"` // Carrier or ISP derived from the IP address
3132
MCCMNC string `json:"mccmnc,omitempty"` // Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
3233
ConnType ConnType `json:"connectiontype,omitempty"` // Network connection type.

0 commit comments

Comments
 (0)