firstpartydata

package
v2.24.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type ResolvedFirstPartyData

type ResolvedFirstPartyData struct {
	Site *openrtb2.Site
	App  *openrtb2.App
	User *openrtb2.User
}

Jump to

Keyboard shortcuts

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