Documentation
¶
Index ¶
- Constants
- func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)
- func CTVBuilder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)
- func NewAmpEndpoint(uuidGenerator uuidutil.UUIDGenerator, ex exchange.Exchange, ...) (httprouter.Handle, error)
- func NewCTVEndpoint(ex exchange.Exchange, validator ortb.RequestValidator, ...) (httprouter.Handle, error)
- func NewEndpoint(uuidGenerator uuidutil.UUIDGenerator, ex exchange.Exchange, ...) (httprouter.Handle, error)
- func NewVideoEndpoint(uuidGenerator uuidutil.UUIDGenerator, ex exchange.Exchange, ...) (httprouter.Handle, error)
- func UpdateResponseExtOW(w http.ResponseWriter, bidResponse *openrtb2.BidResponse, ...)
- type AmpResponse
- type ImpExtPrebidData
- type ORTB2
- type PodError
Constants ¶
View Source
const ( AMP_ENDPOINT = iota OPENRTB_ENDPOINT VIDEO_ENDPOINT )
Variables ¶
This section is empty.
Functions ¶
func Builder ¶
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)
func CTVBuilder ¶
func CTVBuilder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error)
func NewAmpEndpoint ¶
func NewAmpEndpoint( uuidGenerator uuidutil.UUIDGenerator, ex exchange.Exchange, requestValidator ortb.RequestValidator, requestsById stored_requests.Fetcher, accounts stored_requests.AccountFetcher, cfg *config.Configuration, metricsEngine metrics.MetricsEngine, analyticsRunner analytics.Runner, disabledBidders map[string]string, defReqJSON []byte, bidderMap map[string]openrtb_ext.BidderName, storedRespFetcher stored_requests.Fetcher, hookExecutionPlanBuilder hooks.ExecutionPlanBuilder, tmaxAdjustments *exchange.TmaxAdjustmentsPreprocessed, ) (httprouter.Handle, error)
NewAmpEndpoint modifies the OpenRTB endpoint to handle AMP requests. This will basically modify the parsing of the request, and the return value, using the OpenRTB machinery to handle everything in between.
func NewCTVEndpoint ¶
func NewCTVEndpoint( ex exchange.Exchange, validator ortb.RequestValidator, requestsByID stored_requests.Fetcher, videoFetcher stored_requests.Fetcher, accounts stored_requests.AccountFetcher, cfg *config.Configuration, met metrics.MetricsEngine, analyticsRunner analytics.Runner, disabledBidders map[string]string, defReqJSON []byte, bidderMap map[string]openrtb_ext.BidderName, planBuilder hooks.ExecutionPlanBuilder, tmaxAdjustments *exchange.TmaxAdjustmentsPreprocessed) (httprouter.Handle, error)
NewCTVEndpoint new ctv endpoint object
func NewEndpoint ¶
func NewEndpoint( uuidGenerator uuidutil.UUIDGenerator, ex exchange.Exchange, requestValidator ortb.RequestValidator, requestsById stored_requests.Fetcher, accounts stored_requests.AccountFetcher, cfg *config.Configuration, metricsEngine metrics.MetricsEngine, analyticsRunner analytics.Runner, disabledBidders map[string]string, defReqJSON []byte, bidderMap map[string]openrtb_ext.BidderName, storedRespFetcher stored_requests.Fetcher, hookExecutionPlanBuilder hooks.ExecutionPlanBuilder, tmaxAdjustments *exchange.TmaxAdjustmentsPreprocessed, ) (httprouter.Handle, error)
func NewVideoEndpoint ¶
func NewVideoEndpoint( uuidGenerator uuidutil.UUIDGenerator, ex exchange.Exchange, requestValidator ortb.RequestValidator, requestsById stored_requests.Fetcher, videoFetcher stored_requests.Fetcher, accounts stored_requests.AccountFetcher, cfg *config.Configuration, met metrics.MetricsEngine, analyticsRunner analytics.Runner, disabledBidders map[string]string, defReqJSON []byte, bidderMap map[string]openrtb_ext.BidderName, cache prebid_cache_client.Client, tmaxAdjustments *exchange.TmaxAdjustmentsPreprocessed, ) (httprouter.Handle, error)
func UpdateResponseExtOW ¶
func UpdateResponseExtOW(w http.ResponseWriter, bidResponse *openrtb2.BidResponse, ao analytics.AuctionObject)
Types ¶
type AmpResponse ¶
type ImpExtPrebidData ¶
type ImpExtPrebidData struct { Imp json.RawMessage ImpExtPrebid openrtb_ext.ExtImpPrebid }
type ORTB2 ¶
type ORTB2 struct {
Ext openrtb_ext.ExtBidResponse `json:"ext"`
}
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
ctv
|
|
combination
Package combination generates possible ad pod response based on bid response durations.
|
Package combination generates possible ad pod response based on bid response durations. |
impressions
Package impressions provides various algorithms to get the number of impressions along with minimum and maximum duration of each impression.
|
Package impressions provides various algorithms to get the number of impressions along with minimum and maximum duration of each impression. |
Click to show internal directories.
Click to hide internal directories.