Skip to content

Commit

Permalink
Conversant bid floor handling (prebid#1840)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwier authored and shunj-nb committed Nov 8, 2022
1 parent 75263b1 commit a6bc03e
Show file tree
Hide file tree
Showing 3 changed files with 314 additions and 2 deletions.
10 changes: 8 additions & 2 deletions adapters/conversant/conversant.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,14 @@ func (c ConversantAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *a
func parseCnvrParams(imp *openrtb2.Imp, cnvrExt openrtb_ext.ExtImpConversant) {
imp.DisplayManager = "prebid-s2s"
imp.DisplayManagerVer = "2.0.0"
imp.BidFloor = cnvrExt.BidFloor
imp.TagID = cnvrExt.TagID

if imp.BidFloor <= 0 && cnvrExt.BidFloor > 0 {
imp.BidFloor = cnvrExt.BidFloor
}

if len(cnvrExt.TagID) > 0 {
imp.TagID = cnvrExt.TagID
}

// Take care not to override the global secure flag
if (imp.Secure == nil || *imp.Secure == 0) && cnvrExt.Secure != nil {
Expand Down
Loading

0 comments on commit a6bc03e

Please sign in to comment.