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 sachin-pubmatic committed Aug 2, 2021
1 parent f0fc63a commit a175283
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 = "pubmatic-openwrap"
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 a175283

Please sign in to comment.