From 362911ab7169815a02535f20d3380c91637af9a1 Mon Sep 17 00:00:00 2001 From: Avinash Kapre Date: Wed, 25 Oct 2023 15:09:28 +0530 Subject: [PATCH] make getbuilder() public --- modules/pubmatic/openwrap/adapters/bidders.go | 2 +- modules/pubmatic/openwrap/adapters/builder.go | 2 +- modules/pubmatic/openwrap/adapters/converter.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/pubmatic/openwrap/adapters/bidders.go b/modules/pubmatic/openwrap/adapters/bidders.go index 6879a2af18a..c48f234b1c2 100644 --- a/modules/pubmatic/openwrap/adapters/bidders.go +++ b/modules/pubmatic/openwrap/adapters/bidders.go @@ -22,7 +22,7 @@ func PrepareBidParamJSONForPartner(width *int64, height *int64, fieldMap map[str } //get callback function and execute it - callback := getBuilder(params.AdapterName) + callback := GetBuilder(params.AdapterName) return callback(params) } diff --git a/modules/pubmatic/openwrap/adapters/builder.go b/modules/pubmatic/openwrap/adapters/builder.go index 2027393f828..3d526520cb3 100644 --- a/modules/pubmatic/openwrap/adapters/builder.go +++ b/modules/pubmatic/openwrap/adapters/builder.go @@ -60,7 +60,7 @@ func initBidderBuilderFactory() { } // getBuilder will return core bidder hard coded builder, if not found then returns default builder -func getBuilder(adapterName string) builder { +func GetBuilder(adapterName string) builder { //resolve hardcoded bidder alias adapterName = ResolveOWBidder(adapterName) diff --git a/modules/pubmatic/openwrap/adapters/converter.go b/modules/pubmatic/openwrap/adapters/converter.go index 3bc2ad067ad..ce39a273307 100644 --- a/modules/pubmatic/openwrap/adapters/converter.go +++ b/modules/pubmatic/openwrap/adapters/converter.go @@ -26,7 +26,7 @@ func FixBidderParams(reqID, adapterName, bidderCode string, ext json.RawMessage) fieldMap := convertExtToFieldMap(bidderCode, ext) //get callback function and execute it - callback := getBuilder(adapterName) + callback := GetBuilder(adapterName) //executing callback function return callback(BidderParameters{