Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
AvinashKapre committed Nov 18, 2024
1 parent 53740dc commit e012357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions modules/pubmatic/openwrap/auctionresponsehook.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ func (m OpenWrap) handleAuctionResponseHook(
}
}

if rctx.Endpoint == models.EndpointAppLovinMax && rctx.AppLovinMax.MultiFloorsConfig.Enabled && bidExt.MultiBidMultiFloor > 0 {
impCtx.BidFloor = bidExt.MultiBidMultiFloor
bidExt.MultiBidMultiFloor = 0
}

if rctx.IsCTVRequest {
if dur, ok := impCtx.BidIDToDur[bid.ID]; ok {
bidExt.Prebid.Video.Duration = int(dur)
Expand Down
6 changes: 0 additions & 6 deletions modules/pubmatic/openwrap/models/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,6 @@ func GetBidLevelFloorsDetails(bidExt BidExt, impCtx ImpCtx,
var floorCurrency string
frv = NotSet

//Set the fv from bid.ext.mbmf if it is set
if bidExt.MultiBidMultiFloor > 0 {
fv = bidExt.MultiBidMultiFloor
return
}

if bidExt.Prebid != nil && bidExt.Prebid.Floors != nil {
floorCurrency = bidExt.Prebid.Floors.FloorCurrency
fv = RoundToTwoDigit(bidExt.Prebid.Floors.FloorValue)
Expand Down

0 comments on commit e012357

Please sign in to comment.