ortb

package
v2.25.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultPriceGranularityPrecision  = 2
	DefaultTargetingIncludeWinners    = true
	DefaultTargetingIncludeBidderKeys = true
	DefaultSecure                     = int8(1)
)

Variables

This section is empty.

Functions

func CloneBidRequestPartial added in v2.6.0

func CloneBidRequestPartial(s *openrtb2.BidRequest) *openrtb2.BidRequest

CloneBidRequestPartial performs a deep clone of just the bid request device, user, and source fields.

func CloneBrandVersion added in v2.1.0

func CloneBrandVersion(s *openrtb2.BrandVersion) *openrtb2.BrandVersion

func CloneBrandVersionSlice added in v2.1.0

func CloneBrandVersionSlice(s []openrtb2.BrandVersion) []openrtb2.BrandVersion

func CloneData

func CloneData(s openrtb2.Data) openrtb2.Data

func CloneDataSlice

func CloneDataSlice(s []openrtb2.Data) []openrtb2.Data

func CloneDevice added in v2.1.0

func CloneDevice(s *openrtb2.Device) *openrtb2.Device

func CloneEID

func CloneEID(s openrtb2.EID) openrtb2.EID

func CloneEIDSlice

func CloneEIDSlice(s []openrtb2.EID) []openrtb2.EID

func CloneGeo

func CloneGeo(s *openrtb2.Geo) *openrtb2.Geo

func CloneSChain added in v2.1.0

func CloneSChain(s *openrtb2.SupplyChain) *openrtb2.SupplyChain

func CloneSegment

func CloneSegment(s openrtb2.Segment) openrtb2.Segment

func CloneSegmentSlice

func CloneSegmentSlice(s []openrtb2.Segment) []openrtb2.Segment

func CloneSource added in v2.1.0

func CloneSource(s *openrtb2.Source) *openrtb2.Source

func CloneSupplyChainNode added in v2.1.0

func CloneSupplyChainNode(s openrtb2.SupplyChainNode) openrtb2.SupplyChainNode

func CloneSupplyChainNodes added in v2.1.0

func CloneSupplyChainNodes(s []openrtb2.SupplyChainNode) []openrtb2.SupplyChainNode

func CloneUID

func CloneUID(s openrtb2.UID) openrtb2.UID

func CloneUIDSlice

func CloneUIDSlice(s []openrtb2.UID) []openrtb2.UID

func CloneUser

func CloneUser(s *openrtb2.User) *openrtb2.User

func CloneUserAgent added in v2.1.0

func CloneUserAgent(s *openrtb2.UserAgent) *openrtb2.UserAgent

func SetDefaults

func SetDefaults(r *openrtb_ext.RequestWrapper) error

Types

type RequestValidator added in v2.20.0

type RequestValidator interface {
	ValidateImp(imp *openrtb_ext.ImpWrapper, cfg ValidationConfig, index int, aliases map[string]string, hasStoredAuctionResponses bool, storedBidResponses stored_responses.ImpBidderStoredResp) []error
}

func NewRequestValidator added in v2.20.0

func NewRequestValidator(bidderMap map[string]openrtb_ext.BidderName, disabledBidders map[string]string, paramsValidator openrtb_ext.BidderParamValidator) RequestValidator

type ValidationConfig added in v2.20.0

type ValidationConfig struct {
	SkipBidderParams bool
	SkipNative       bool
}

Jump to

Keyboard shortcuts

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