adservertargeting

package
v0.252.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxKeyLength = 20

Variables

This section is empty.

Functions

func Apply

func Apply(
	reqWrapper *openrtb_ext.RequestWrapper,
	resolvedRequest json.RawMessage,
	response *openrtb2.BidResponse,
	queryParams url.Values,
	bidResponseExt *openrtb_ext.ExtBidResponse,
	truncateTargetAttribute *int) *openrtb2.BidResponse

Types

type DataSource

type DataSource string
const (
	SourceBidRequest  DataSource = "bidrequest"
	SourceStatic      DataSource = "static"
	SourceBidResponse DataSource = "bidresponse"
)

type RequestTargetingData

type RequestTargetingData struct {
	SingleVal             json.RawMessage
	TargetingValueByImpId map[string][]byte
}

RequestTargetingData struct to hold pre-processed ad server targeting keys and values

type ResponseTargetingData

type ResponseTargetingData struct {
	Key      string
	HasMacro bool
	Path     string
}

Jump to

Keyboard shortcuts

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