Skip to content

Commit

Permalink
update impcountingImpCountingMethodEnabledBidders
Browse files Browse the repository at this point in the history
  • Loading branch information
AvinashKapre committed Sep 20, 2024
1 parent 27f6cd6 commit 3d71d5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions modules/pubmatic/openwrap/auctionresponsehook.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ func (m OpenWrap) handleAuctionResponseHook(
return result, nil
}

//Impression counting method enabled bidders
if rctx.Endpoint == models.EndpointV25 {
rctx.ImpCountingMethodEnabledBidders = m.pubFeatures.GetImpCountingMethodEnabledBidders()
}

var winningAdpodBidIds map[string][]string
var errs []error
if rctx.IsCTVRequest {
Expand Down Expand Up @@ -348,11 +353,6 @@ func (m OpenWrap) handleAuctionResponseHook(
result.DebugMessages = append(result.DebugMessages, string(rCtxBytes))
}

//Impression counting method enabled bidders
if rctx.Endpoint == models.EndpointV25 {
rctx.ImpCountingMethodEnabledBidders = m.pubFeatures.GetImpCountingMethodEnabledBidders()
}

rctx.AppLovinMax = updateAppLovinMaxResponse(rctx, payload.BidResponse)

if rctx.Endpoint == models.EndpointWebS2S {
Expand Down
3 changes: 2 additions & 1 deletion modules/pubmatic/openwrap/entrypointhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ func (m OpenWrap) handleEntrypointHook(
WakandaDebug: &wakanda.Debug{
Config: m.cfg.Wakanda,
},
SendBurl: endpoint == models.EndpointAppLovinMax || getSendBurl(payload.Body),
SendBurl: endpoint == models.EndpointAppLovinMax || getSendBurl(payload.Body),
ImpCountingMethodEnabledBidders: make(map[string]struct{}),
}

if rCtx.IsCTVRequest {
Expand Down

0 comments on commit 3d71d5f

Please sign in to comment.