Skip to content

Commit 1ca3a54

Browse files
committed
Merge remote-tracking branch 'bsm/master'
2 parents 48a0445 + 1598720 commit 1ca3a54

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

bid.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,26 @@ type Bid struct {
2121
Price float64 `json:"price"` // Bid price in CPM. Suggests using integer math for accounting to avoid rounding errors.
2222
AdID string `json:"adid,omitempty"` // References the ad to be served if the bid wins.
2323
NURL string `json:"nurl,omitempty"` // Win notice URL.
24+
BURL string `json:"burl,omitempty"` // Billing notice URL.
25+
LURL string `json:"lurl,omitempty"` // Loss notice URL.
2426
AdMarkup string `json:"adm,omitempty"` // Actual ad markup. XHTML if a response to a banner object, or VAST XML if a response to a video object.
2527
AdvDomain []string `json:"adomain,omitempty"` // Advertiser’s primary or top-level domain for advertiser checking; or multiple if imp rotating.
2628
Bundle string `json:"bundle,omitempty"` // A platform-specific application identifier intended to be unique to the app and independent of the exchange.
2729
IURL string `json:"iurl,omitempty"` // Sample image URL.
2830
CampaignID string `json:"cid,omitempty"` // Campaign ID that appears with the Ad markup.
2931
CreativeID string `json:"crid,omitempty"` // Creative ID for reporting content issues or defects. This could also be used as a reference to a creative ID that is posted with an exchange.
32+
Tactic string `json:"tactic,omitempty"` // Tactic ID to enable buyers to label bids for reporting to the exchange the tactic through which their bid was submitted.
3033
Cat []string `json:"cat,omitempty"` // IAB content categories of the creative. Refer to List 5.1
3134
Attr []int `json:"attr,omitempty"` // Array of creative attributes.
3235
API int `json:"api,omitempty"` // API required by the markup if applicable
3336
Protocol int `json:"protocol,omitempty"` // Video response protocol of the markup if applicable
3437
QAGMediaRating int `json:"qagmediarating,omitempty"` // Creative media rating per IQG guidelines.
38+
Language string `json:"language,omitempty"` // Language of the creative using ISO-639-1-alpha-2.
3539
DealID string `json:"dealid,omitempty"` // DealID extension of private marketplace deals
3640
H int `json:"h,omitempty"` // Height of the ad in pixels.
3741
W int `json:"w,omitempty"` // Width of the ad in pixels.
42+
WRatio int `json:"wratio,omitempty"` // Relative width of the creative when expressing size as a ratio.
43+
HRatio int `json:"hratio,omitempty"` // Relative height of the creative when expressing size as a ratio.
3844
Exp int `json:"exp,omitempty"` // Advisory as to the number of seconds the bidder is willing to wait between the auction and the actual impression.
3945
Ext Extension `json:"ext,omitempty"`
4046
}

openrtb.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@ const (
8686
VideoPlaybackMouseOver = 4
8787
)
8888

89+
// 5.9 Video Placement Types (Spec 2.5)
90+
const (
91+
VideoPlacementInStream = 1
92+
VideoPlacementInBanner = 2
93+
VideoPlacementInArticle = 3
94+
VideoPlacementInFeed = 4
95+
VideoPlacementInterstitial = 5
96+
)
97+
8998
// 5.10 Video Start Delay
9099
const (
91100
VideoStartDelayPreRoll = 0

testdata/video.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@
6464
"companiontype": [
6565
1,
6666
2
67-
]
68-
}
67+
],
68+
"placement": 1
69+
}

video.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type Video struct {
4141
CompanionAd []Banner `json:"companionad,omitempty"`
4242
Api []int `json:"api,omitempty"` // List of supported API frameworks
4343
CompanionType []int `json:"companiontype,omitempty"`
44+
Placement int `json:"placement,omitempty"` // Video placement type
4445
Ext Extension `json:"ext,omitempty"`
4546
}
4647

video_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ var _ = Describe("Video", func() {
4040
{W: 300, H: 250, ID: "1234567893-1", Pos: AdPosAboveFold, BAttr: []int{CreativeAttributeUserInitiated, CreativeAttributeWindowsDialogOrAlert}, ExpDir: []int{ExpDirRight, ExpDirDown}},
4141
{W: 728, H: 90, ID: "1234567893-2", Pos: AdPosAboveFold, BAttr: []int{CreativeAttributeUserInitiated, CreativeAttributeWindowsDialogOrAlert}},
4242
},
43+
Placement: VideoPlacementInStream,
4344
Api: []int{APIFrameworkVPAID1, APIFrameworkVPAID2},
4445
CompanionType: []int{VASTCompanionStatic, VASTCompanionHTML},
4546
}))

0 commit comments

Comments
 (0)