Skip to content

Commit 228240a

Browse files
committed
bid: add new fields from 2.5 spec
1 parent 88a54c9 commit 228240a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
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
}

0 commit comments

Comments
 (0)