privacysandbox

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateUserDataWithTopics

func UpdateUserDataWithTopics(userData []openrtb2.Data, headerData []Topic, topicsDomain string) []openrtb2.Data

Types

type Topic

type Topic struct {
	SegTax   int    `json:"segtax,omitempty"`
	SegClass string `json:"segclass,omitempty"`
	SegIDs   []int  `json:"segids,omitempty"`
}

func ParseTopicsFromHeader

func ParseTopicsFromHeader(secBrowsingTopics string) ([]Topic, []error)

ParseTopicsFromHeader parses the Sec-Browsing-Topics header data into Topics object

Jump to

Keyboard shortcuts

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