Skip to content

Commit

Permalink
Added missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pubmatic-Supriya-Patil committed Dec 15, 2023
1 parent 7067a78 commit c05ba76
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion exchange/bidder.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,10 @@ func (bidder *bidderAdapter) requestBid(ctx context.Context, bidderRequest Bidde
if err == nil {
// Conversion rate found, using it for conversion
for i := 0; i < len(bidResponse.Bids); i++ {

if bidResponse.Bids[i].BidMeta == nil {
bidResponse.Bids[i].BidMeta = &openrtb_ext.ExtBidPrebidMeta{}
}
bidResponse.Bids[i].BidMeta.AdapterCode = bidderRequest.BidderName.String()
bidderName := bidderRequest.BidderName
if bidResponse.Bids[i].Seat != "" {
bidderName = bidResponse.Bids[i].Seat
Expand Down

0 comments on commit c05ba76

Please sign in to comment.