lmt

package
v0.258.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

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