From 5c5c536780296b5c25c279e89fd4e606966797be Mon Sep 17 00:00:00 2001 From: Saurabh Narkhede <108730956+pm-saurabh-narkhede@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:07:50 +0530 Subject: [PATCH] UOE-11327: Changes for Appstock bidderAlias (#957) --- modules/pubmatic/openwrap/adapters/bidder_alias.go | 3 +++ modules/pubmatic/openwrap/adapters/bidder_alias_test.go | 1 + modules/pubmatic/openwrap/models/bidders.go | 1 + 3 files changed, 5 insertions(+) diff --git a/modules/pubmatic/openwrap/adapters/bidder_alias.go b/modules/pubmatic/openwrap/adapters/bidder_alias.go index c07e8c31841..32fb416988c 100644 --- a/modules/pubmatic/openwrap/adapters/bidder_alias.go +++ b/modules/pubmatic/openwrap/adapters/bidder_alias.go @@ -17,6 +17,7 @@ func Alias() map[string]string { models.BidderDistrictmAlias: string(openrtb_ext.BidderAppnexus), models.BidderAndBeyondAlias: string(openrtb_ext.BidderAdkernel), models.BidderMediaFuseAlias: string(openrtb_ext.BidderAppnexus), + models.BidderAppStockAlias: string(openrtb_ext.BidderLimelightDigital), } } @@ -45,6 +46,8 @@ func ResolveOWBidder(bidderName string) string { coreBidderName = string(openrtb_ext.BidderImds) case models.BidderViewDeos: coreBidderName = string(openrtb_ext.BidderAdtelligent) + case models.BidderAppStockAlias: + coreBidderName = string(openrtb_ext.BidderLimelightDigital) } return coreBidderName } diff --git a/modules/pubmatic/openwrap/adapters/bidder_alias_test.go b/modules/pubmatic/openwrap/adapters/bidder_alias_test.go index 8605884c216..dc326feab2c 100644 --- a/modules/pubmatic/openwrap/adapters/bidder_alias_test.go +++ b/modules/pubmatic/openwrap/adapters/bidder_alias_test.go @@ -16,6 +16,7 @@ func TestAlias(t *testing.T) { models.BidderDistrictmAlias: string(openrtb_ext.BidderAppnexus), models.BidderAndBeyondAlias: string(openrtb_ext.BidderAdkernel), models.BidderMediaFuseAlias: string(openrtb_ext.BidderAppnexus), + models.BidderAppStockAlias: string(openrtb_ext.BidderLimelightDigital), } assert.Equal(t, expected, Alias()) } diff --git a/modules/pubmatic/openwrap/models/bidders.go b/modules/pubmatic/openwrap/models/bidders.go index c2ae4801516..e2a58da0db7 100644 --- a/modules/pubmatic/openwrap/models/bidders.go +++ b/modules/pubmatic/openwrap/models/bidders.go @@ -17,6 +17,7 @@ const ( BidderTrustxAlias = "trustx" BidderSynacormediaAlias = "synacormedia" BidderViewDeos = "viewdeos" + BidderAppStockAlias = "appstock" ) const (