Skip to content

Commit

Permalink
full support for langb fields (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
codenaugh authored Aug 21, 2023
1 parent 071ec74 commit 5563255
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion bidrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ type BidRequest struct {
TimeMax int `json:"tmax,omitempty"` // Maximum amount of time in milliseconds to submit a bid
Seats []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this auction
BlockedSeats []string `json:"bseat,omitempty"` // Array of buyer seats blocked to bid on this auction
Languages []string `json:"wlang,omitempty"` // Array of languages for creatives using ISO-639-1-alpha-2
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.
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.
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
Currencies []string `json:"cur,omitempty"` // Array of allowed currencies
BlockedCategories []ContentCategory `json:"bcat,omitempty"` // Blocked Advertiser Categories.
Expand Down
4 changes: 2 additions & 2 deletions content.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ type Content struct {
ISRC string `json:"isrc,omitempty"` // International Standard Recording Code conforming to ISO - 3901.
Producer *Producer `json:"producer,omitempty"` // The producer.
URL string `json:"url,omitempty"` // URL of the content, for buy-side contextualization or review.
CategoryTaxonomy CategoryTaxonomy `json:"cattax,omitempty"` // Defines the taxonomy in use.
Categories []ContentCategory `json:"cat,omitempty"` // Array of IAB content categories that describe the content.
ProductionQuality ProductionQuality `json:"prodq,omitempty"` // Production quality per IAB's classification.
VideoQuality ProductionQuality `json:"videoquality,omitempty"` // DEPRECATED. Video quality per IAB's classification.
Expand All @@ -31,12 +32,11 @@ type Content struct {
SourceRelationship int `json:"sourcerelationship,omitempty"` // 0 = indirect, 1 = direct.
Length int `json:"len,omitempty"` // Length of content in seconds; appropriate for video or audio.
Language string `json:"language,omitempty"` // Content language using ISO-639-1-alpha-2.
LanguageB string `json:"langb,omitempty"` // Content language using IETF BCP 47. Only one of language or langb should be present.
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"`
}
3 changes: 2 additions & 1 deletion device.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ type Device struct {
JS int `json:"js,omitempty"` // Javascript status ("0": Disabled, "1": Enabled)
GeoFetch int `json:"geofetch,omitempty"` // Indicates if the geolocation API will be available to JavaScript code running in the banner,
FlashVersion string `json:"flashver,omitempty"` // Flash version
Language string `json:"language,omitempty"` // Browser language
Language string `json:"language,omitempty"` // Browser language using ISO-639-1-alpha-2. Only one of language or langb should be present.
LanguageB string `json:"langb,omitempty"` // Browser language using IETF BCP 47. Only one of language or langb should be present.
Carrier string `json:"carrier,omitempty"` // Carrier or ISP derived from the IP address
MCCMNC string `json:"mccmnc,omitempty"` // Mobile carrier as the concatenated MCC-MNC code (e.g., "310-005" identifies Verizon Wireless CDMA in the USA).
ConnType ConnType `json:"connectiontype,omitempty"` // Network connection type.
Expand Down

0 comments on commit 5563255

Please sign in to comment.