Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pm-nilesh-chate committed Jan 11, 2024
1 parent ef7179d commit 356c762
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions endpoints/openrtb2/auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -2035,16 +2035,16 @@ func setAuctionTypeImplicitly(r *openrtb_ext.RequestWrapper) {

// (100);v=chrome.1:1:20, (200);v=chrome.1:1:40, (300);v=chrome.1:1:60, ();p=P
func setSecBrowsingTopcisImplicitly(httpReq *http.Request, r *openrtb_ext.RequestWrapper, cfg *config.Configuration) {
topicsDomain := "TOPICS_DOMAIN"
if cfg != nil {
topicsDomain = cfg.Auction.PrivacySandbox.TopicsDomain
}

secBrowsingTopics := httpReq.Header.Get("Sec-Browsing-Topics")
if secBrowsingTopics == "" {
return
}

topicsDomain := "TOPICS_DOMAIN"
if cfg != nil {
topicsDomain = cfg.Auction.PrivacySandbox.TopicsDomain
}

// segtax-segclass-name-segIds
userData := map[int]map[string]map[string]map[string]struct{}{}
secBrowsingTopicsArr := strings.Split(secBrowsingTopics, ",")
Expand Down

0 comments on commit 356c762

Please sign in to comment.