You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CampaignIDstring`json:"cid,omitempty"`// Campaign ID that appears with the Ad markup.
31
-
CreativeIDstring`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
-
Cat []string`json:"cat,omitempty"`// IAB content categories of the creative. Refer to List 5.1
33
-
Attr []int`json:"attr,omitempty"`// Array of creative attributes.
34
-
DealIDstring`json:"dealid,omitempty"`// DealID extension of private marketplace deals
35
-
Hint`json:"h,omitempty"`// Height of the ad in pixels.
36
-
Wint`json:"w,omitempty"`// Width of the ad in pixels.
37
-
Ext json.RawMessage`json:"ext,omitempty"`
19
+
IDstring`json:"id"`
20
+
ImpIDstring`json:"impid"`// Required string ID of the impression object to which this bid applies.
21
+
Pricefloat64`json:"price"`// Bid price in CPM. Suggests using integer math for accounting to avoid rounding errors.
22
+
AdIDstring`json:"adid,omitempty"`// References the ad to be served if the bid wins.
CampaignIDstring`json:"cid,omitempty"`// Campaign ID that appears with the Ad markup.
29
+
CreativeIDstring`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.
30
+
Cat []string`json:"cat,omitempty"`// IAB content categories of the creative. Refer to List 5.1
31
+
Attr []int`json:"attr,omitempty"`// Array of creative attributes.
32
+
APIint`json:"api,omitempty"`// API required by the markup if applicable
33
+
Protocolint`json:"protocol,omitempty"`// Video response protocol of the markup if applicable
34
+
QAGMediaRatingint`json:"qagmediarating,omitempty"`// Creative media rating per IQG guidelines.
35
+
DealIDstring`json:"dealid,omitempty"`// DealID extension of private marketplace deals
36
+
Hint`json:"h,omitempty"`// Height of the ad in pixels.
37
+
Wint`json:"w,omitempty"`// Width of the ad in pixels.
38
+
Expint`json:"exp,omitempty"`// Advisory as to the number of seconds the bidder is willing to wait between the auction and the actual impression.
Copy file name to clipboardExpand all lines: bidrequest.go
+18-20Lines changed: 18 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,6 @@
1
1
package openrtb
2
2
3
-
import (
4
-
"encoding/json"
5
-
"errors"
6
-
)
3
+
import"errors"
7
4
8
5
// Validation errors
9
6
var (
@@ -16,22 +13,23 @@ var (
16
13
// attribute is required as is at least one "imp" (i.e., impression) object. Other attributes are
17
14
// optional since an exchange may establish default values.
18
15
typeBidRequeststruct {
19
-
IDstring`json:"id"`// Unique ID of the bid request
20
-
Imp []Impression`json:"imp,omitempty"`
21
-
Site*Site`json:"site,omitempty"`
22
-
App*App`json:"app,omitempty"`
23
-
Device*Device`json:"device,omitempty"`
24
-
User*User`json:"user,omitempty"`
25
-
Testint`json:"test,omitempty"`// Indicator of test mode in which auctions are not billable, where 0 = live mode, 1 = test mode
26
-
AuctionTypeint`json:"at"`// Auction type, where 1 = First Price, 2 = Second Price Plus. Exchange-specific auction types can be defined using values greater than 500.
27
-
TMaxint`json:"tmax,omitempty"`// Maximum amount of time in milliseconds to submit a bid
28
-
WSeat []string`json:"wseat,omitempty"`// Array of buyer seats allowed to bid on this auction
29
-
AllImpsint`json:"allimps,omitempty"`// Flag to indicate whether exchange can verify that all impressions offered represent all of the impressions available in context, Default: 0
30
-
Cur []string`json:"cur,omitempty"`// Array of allowed currencies
BAdv []string`json:"badv,omitempty"`// Array of strings of blocked toplevel domains of advertisers
33
-
Regs*Regulations`json:"regs,omitempty"`
34
-
Ext json.RawMessage`json:"ext,omitempty"`
16
+
IDstring`json:"id"`// Unique ID of the bid request
17
+
Imp []Impression`json:"imp,omitempty"`
18
+
Site*Site`json:"site,omitempty"`
19
+
App*App`json:"app,omitempty"`
20
+
Device*Device`json:"device,omitempty"`
21
+
User*User`json:"user,omitempty"`
22
+
Testint`json:"test,omitempty"`// Indicator of test mode in which auctions are not billable, where 0 = live mode, 1 = test mode
23
+
AuctionTypeint`json:"at"`// Auction type, where 1 = First Price, 2 = Second Price Plus. Exchange-specific auction types can be defined using values greater than 500.
24
+
TMaxint`json:"tmax,omitempty"`// Maximum amount of time in milliseconds to submit a bid
25
+
WSeat []string`json:"wseat,omitempty"`// Array of buyer seats allowed to bid on this auction
26
+
AllImpsint`json:"allimps,omitempty"`// Flag to indicate whether exchange can verify that all impressions offered represent all of the impressions available in context, Default: 0
27
+
Cur []string`json:"cur,omitempty"`// Array of allowed currencies
BAdv []string`json:"badv,omitempty"`// Array of strings of blocked toplevel domains of advertisers
30
+
BApp []string`json:"bapp,omitempty"`// Block list of applications by their platform-specific exchange-independent application identifiers. On Android, these should be bundle or package names (e.g., com.foo.mygame). On iOS, these are numeric IDs.
31
+
Regs*Regulations`json:"regs,omitempty"`
32
+
ExtExtension`json:"ext,omitempty"`
35
33
36
34
Pmp*Pmp`json:"pmp,omitempty"`// DEPRECATED: kept for backwards compatibility
CustomDatastring`json:"customdata,omitempty"`// Encoded user features
24
-
NBRint`json:"nbr,omitempty"`// Reason for not bidding, where 0 = unknown error, 1 = technical error, 2 = invalid request, 3 = known web spider, 4 = suspected Non-Human Traffic, 5 = cloud, data center, or proxy IP, 6 = unsupported device, 7 = blocked publisher or site, 8 = unmatched user
25
-
Extjson.RawMessage`json:"ext,omitempty"`// Custom specifications in JSon
16
+
IDstring`json:"id"`// Reflection of the bid request ID for logging purposes
17
+
SeatBid []SeatBid`json:"seatbid"`// Array of seatbid objects
18
+
BidIDstring`json:"bidid,omitempty"`// Optional response tracking ID for bidders
CustomDatastring`json:"customdata,omitempty"`// Encoded user features
21
+
NBRint`json:"nbr,omitempty"`// Reason for not bidding, where 0 = unknown error, 1 = technical error, 2 = invalid request, 3 = known web spider, 4 = suspected Non-Human Traffic, 5 = cloud, data center, or proxy IP, 6 = unsupported device, 7 = blocked publisher or site, 8 = unmatched user
22
+
ExtExtension`json:"ext,omitempty"`// Custom specifications in JSon
0 commit comments