stored_responses

package
v2.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessStoredResponses

func ProcessStoredResponses(ctx context.Context, requestWrapper *openrtb_ext.RequestWrapper, storedRespFetcher stored_requests.Fetcher) (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

type BidderImpReplaceImpID map[string]map[string]bool

type BidderImpsWithBidResponses

type BidderImpsWithBidResponses map[openrtb_ext.BidderName]map[string]json.RawMessage

func InitStoredBidResponses

func InitStoredBidResponses(req *openrtb2.BidRequest, storedBidResponses ImpBidderStoredResp) BidderImpsWithBidResponses

type ImpBidderReplaceImpID

type ImpBidderReplaceImpID map[string]map[string]bool

type ImpBidderStoredResp

type ImpBidderStoredResp map[string]map[string]json.RawMessage

type ImpBiddersWithBidResponseIDs

type ImpBiddersWithBidResponseIDs map[string]map[string]string

type ImpsWithAuctionResponseIDs

type ImpsWithAuctionResponseIDs map[string]string

type ImpsWithBidResponses

type ImpsWithBidResponses map[string]json.RawMessage

type StoredResponseIDs

type StoredResponseIDs []string

type StoredResponseIdToStoredResponse

type StoredResponseIdToStoredResponse map[string]json.RawMessage

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL