ortb

package
v3.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 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

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

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

func CloneBrandVersion

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

func CloneBrandVersionSlice

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

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 CloneRegs

func CloneRegs(s *openrtb2.Regs) *openrtb2.Regs

func CloneSChain

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

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

func CloneSupplyChainNodes

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

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

func SetDefaults

func SetDefaults(r *openrtb_ext.RequestWrapper) error

Types

type RequestValidator

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

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

type ValidationConfig

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