diff --git a/pkg/modules/update_bundle/module/hook_raw_auction.go b/pkg/modules/update_bundle/module/hook_raw_auction.go index f8ca729f407..03036f1df51 100644 --- a/pkg/modules/update_bundle/module/hook_raw_auction.go +++ b/pkg/modules/update_bundle/module/hook_raw_auction.go @@ -4,6 +4,7 @@ import ( "encoding/json" "github.com/ParticleMedia/msp/pkg/extract" + "github.com/prebid/openrtb/v19/adcom1" "github.com/prebid/openrtb/v19/openrtb2" "github.com/prebid/prebid-server/hooks/hookstage" "github.com/prebid/prebid-server/openrtb_ext" @@ -51,18 +52,15 @@ func handleRawAuctionHook( } } - // placementId, err := extract.PlacementId(req.BidRequest) - // if err == nil && placementId == "msp-android-immersive-flow-video-prod" { - // for _, imp := range req.GetImp() { - // imp.Instl = 0 - // if imp.Video != nil { - // imp.Video.W = 300 - // imp.Video.H = 250 - // imp.Video.Plcmt = adcom1.VideoPlcmtSubtype(imp.Video.Placement) - // } - // imp.RebuildImp() - // } - // } + placementId, err := extract.PlacementId(req.BidRequest) + if err == nil && placementId == "msp-android-immersive-flow-video-prod" { + for _, imp := range req.GetImp() { + if imp.Video != nil { + imp.Video.Plcmt = adcom1.VideoPlcmtInterstitial + } + imp.RebuildImp() + } + } req.RebuildRequest() resolvedBidReq, err := json.Marshal(req.BidRequest)