Skip to content

Commit

Permalink
Reserve IGS name (#4073)
Browse files Browse the repository at this point in the history
  • Loading branch information
patmmccann authored Nov 26, 2024
1 parent 56b72c1 commit 748ccd0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions openrtb_ext/bidders.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ const (
BidderReservedPrebid BidderName = "prebid" // Reserved for Prebid Server configuration.
BidderReservedSKAdN BidderName = "skadn" // Reserved for Apple's SKAdNetwork OpenRTB extension.
BidderReservedTID BidderName = "tid" // Reserved for Per-Impression Transactions IDs for Multi-Impression Bid Requests.
BidderReservedAE BidderName = "ae" // Reserved for FLEDGE Auction Environment
BidderReservedAE BidderName = "ae" // Reserved for PAAPI Auction Environment.
BidderReservedIGS BidderName = "igs" // Reserved for PAAPI Interest Group Seller object.
)

// IsBidderNameReserved returns true if the specified name is a case insensitive match for a reserved bidder name.
Expand Down Expand Up @@ -317,10 +318,14 @@ func IsBidderNameReserved(name string) bool {
return true
}

if strings.EqualFold(name, string(BidderReservedIGS)) {
return true
}

return false
}

// IsPotentialBidder returns true if the name is not reserved witbin the imp[].ext context
// IsPotentialBidder returns true if the name is not reserved within the imp[].ext context
func IsPotentialBidder(name string) bool {
switch BidderName(name) {
case BidderReservedContext:
Expand All @@ -337,6 +342,8 @@ func IsPotentialBidder(name string) bool {
return false
case BidderReservedAE:
return false
case BidderReservedIGS:
return false
default:
return true
}
Expand Down

0 comments on commit 748ccd0

Please sign in to comment.