lmt

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModifyForIOS

func ModifyForIOS(req *openrtb2.BidRequest)

ModifyForIOS modifies the request's LMT flag based on iOS version and identity.

Types

type Policy

type Policy struct {
	Signal         int
	SignalProvided bool
}

Policy represents the LMT (Limit Ad Tracking) policy for an OpenRTB bid request.

func ReadFromRequest

func ReadFromRequest(req *openrtb2.BidRequest) (policy Policy)

ReadFromRequest extracts the LMT (Limit Ad Tracking) policy from an OpenRTB bid request.

func (Policy) CanEnforce

func (p Policy) CanEnforce() bool

CanEnforce returns true the LMT (Limit Ad Tracking) signal is provided by the publisher.

func (Policy) ShouldEnforce

func (p Policy) ShouldEnforce(bidder string) bool

ShouldEnforce returns true when the LMT (Limit Ad Tracking) policy is in effect.

Jump to

Keyboard shortcuts

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