Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCpmStringValue ¶
func GetCpmStringValue(cpm float64, config openrtb_ext.PriceGranularity) (string, error)
GetCpmStringValue is the externally facing function for computing CPM buckets
Types ¶
type Exchange ¶
type Exchange interface { // HoldAuction executes an OpenRTB v2.5 Auction. HoldAuction(ctx context.Context, bidRequest *openrtb.BidRequest, usersyncs IdFetcher, labels pbsmetrics.Labels) (*openrtb.BidResponse, error) }
Exchange runs Auctions. Implementations must be threadsafe, and will be shared across many goroutines.
func NewExchange ¶
func NewExchange(client *http.Client, cache prebid_cache_client.Client, cfg *config.Configuration, metricsEngine pbsmetrics.MetricsEngine, infos adapters.BidderInfos, gDPR gdpr.Permissions) Exchange
type ExtSeatBid ¶
type ExtSeatBid struct {
Bidder json.RawMessage `json:"bidder,omitempty"`
}
ExtSeatBid defines the contract for bidresponse.seatbid.ext
type IdFetcher ¶
type IdFetcher interface { // GetId returns the ID for the bidder. The boolean will be true if the ID exists, and false otherwise. GetId(bidder openrtb_ext.BidderName) (string, bool) }
IdFetcher can find the user's ID for a specific Bidder.
Click to show internal directories.
Click to hide internal directories.