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
BidFloorCurrency string `json:"bidfloorcur,omitempty"` // Currency of bid floor
Seats []string `json:"wseat,omitempty"` // Array of buyer seats allowed to bid on this Direct Deal.
AdvDomains []string `json:"wadomain,omitempty"` // Array of advertiser domains allowed to bid on this Direct Deal
AuctionType int `json:"at,omitempty"` // Optional override of the overall auction type of the bid request, where 1 = First Price, 2 = Second Price Plus, 3 = the value passed in bidfloor is the agreed upon deal price. Additional auction types can be defined by the exchange.
Ext json.RawMessage `json:"ext,omitempty"`
}
type jsonDeal Deal
// MarshalJSON custom marshalling with normalization
func (d *Deal) MarshalJSON() ([]byte, error) {
d.normalize()
return json.Marshal((*jsonDeal)(d))
}
// UnmarshalJSON custom unmarshalling with normalization