Documentation ¶
Index ¶
- func ProcessStoredResponses(ctx context.Context, requestJson []byte, ...) (ImpsWithBidResponses, ImpBidderStoredResp, BidderImpReplaceImpID, []error)
- type BidderImpReplaceImpID
- type BidderImpsWithBidResponses
- type ImpBidderReplaceImpID
- type ImpBidderStoredResp
- type ImpBiddersWithBidResponseIDs
- type ImpExtPrebidData
- type ImpsWithAuctionResponseIDs
- type ImpsWithBidResponses
- type StoredResponseIDs
- type StoredResponseIdToStoredResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessStoredResponses ¶
func ProcessStoredResponses(ctx context.Context, requestJson []byte, storedRespFetcher stored_requests.Fetcher, bidderMap map[string]openrtb_ext.BidderName) (ImpsWithBidResponses, ImpBidderStoredResp, BidderImpReplaceImpID, []error)
ProcessStoredResponses takes the incoming request as JSON with any stored requests/imps already merged into it, scans it to find any stored auction response ids and stored bid response ids in the request/imps and produces a map of imp IDs to stored auction responses and map of imp to bidder to stored response. Note that processStoredResponses must be called after processStoredRequests because stored imps and stored requests can contain stored auction responses and stored bid responses so the stored requests/imps have to be merged into the incoming request prior to processing stored auction responses.
Types ¶
type BidderImpReplaceImpID ¶ added in v0.220.0
type BidderImpsWithBidResponses ¶
type BidderImpsWithBidResponses map[openrtb_ext.BidderName]map[string]json.RawMessage
func InitStoredBidResponses ¶
func InitStoredBidResponses(req *openrtb2.BidRequest, storedBidResponses ImpBidderStoredResp) BidderImpsWithBidResponses
type ImpBidderReplaceImpID ¶ added in v0.220.0
type ImpBidderStoredResp ¶
type ImpBidderStoredResp map[string]map[string]json.RawMessage
type ImpExtPrebidData ¶
type ImpExtPrebidData struct { Imp json.RawMessage ImpExtPrebid openrtb_ext.ExtImpPrebid }
type ImpsWithBidResponses ¶
type ImpsWithBidResponses map[string]json.RawMessage
type StoredResponseIDs ¶
type StoredResponseIDs []string
type StoredResponseIdToStoredResponse ¶
type StoredResponseIdToStoredResponse map[string]json.RawMessage
Click to show internal directories.
Click to hide internal directories.