Documentation ¶
Index ¶
- Variables
- func ExtractBidderConfigFPD(reqExt *openrtb_ext.RequestExt) (map[openrtb_ext.BidderName]*openrtb_ext.ORTB2, error)
- func ExtractFPDForBidders(req *openrtb_ext.RequestWrapper) (map[openrtb_ext.BidderName]*ResolvedFirstPartyData, []error)
- func ExtractGlobalFPD(req *openrtb_ext.RequestWrapper) (map[string][]byte, error)
- func ExtractOpenRtbGlobalFPD(bidRequest *openrtb2.BidRequest) map[string][]openrtb2.Data
- func ResolveFPD(bidRequest *openrtb2.BidRequest, ...) (map[openrtb_ext.BidderName]*ResolvedFirstPartyData, []error)
- type ResolvedFirstPartyData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = errors.New("invalid request ext") ErrBadFPD = errors.New("invalid first party data ext") )
Functions ¶
func ExtractBidderConfigFPD ¶
func ExtractBidderConfigFPD(reqExt *openrtb_ext.RequestExt) (map[openrtb_ext.BidderName]*openrtb_ext.ORTB2, error)
ExtractBidderConfigFPD extracts bidder specific configs from req.ext.prebid.bidderconfig
func ExtractFPDForBidders ¶
func ExtractFPDForBidders(req *openrtb_ext.RequestWrapper) (map[openrtb_ext.BidderName]*ResolvedFirstPartyData, []error)
ExtractFPDForBidders extracts FPD data from request if specified
func ExtractGlobalFPD ¶
func ExtractGlobalFPD(req *openrtb_ext.RequestWrapper) (map[string][]byte, error)
ExtractGlobalFPD extracts request level FPD from the request and removes req.{site,app,user}.ext.data if exists
func ExtractOpenRtbGlobalFPD ¶
func ExtractOpenRtbGlobalFPD(bidRequest *openrtb2.BidRequest) map[string][]openrtb2.Data
ExtractOpenRtbGlobalFPD extracts and deletes user.data and {app/site}.content.data from request
func ResolveFPD ¶
func ResolveFPD(bidRequest *openrtb2.BidRequest, fpdBidderConfigData map[openrtb_ext.BidderName]*openrtb_ext.ORTB2, globalFPD map[string][]byte, openRtbGlobalFPD map[string][]openrtb2.Data, biddersWithGlobalFPD []string) (map[openrtb_ext.BidderName]*ResolvedFirstPartyData, []error)
ResolveFPD consolidates First Party Data from different sources and returns valid FPD that will be applied to bidders later or returns errors
Types ¶
Click to show internal directories.
Click to hide internal directories.