stored_responses

package
v1.200.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 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, 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

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 ImpExtPrebidData

type ImpExtPrebidData struct {
	Imp          json.RawMessage
	ImpExtPrebid openrtb_ext.ExtImpPrebid
}

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