@@ -80,9 +80,7 @@ func processImp(imp *openrtb2.Imp, reqInfo *adapters.ExtraRequestInfo) error {
8080 return nil
8181 }
8282
83- // convert the bid floor to EUR
8483 currency := imp .BidFloorCur
85- // default currency according to the openRTB is USD
8684 if currency == "" {
8785 currency = "USD"
8886 }
@@ -123,7 +121,6 @@ func setPBSVersion(request *openrtb2.BidRequest, pbsVersion string) {
123121 sourceExtMap := make (map [string ]json.RawMessage )
124122 if source .Ext != nil {
125123 if err := jsonutil .Unmarshal (source .Ext , & sourceExtMap ); err != nil {
126- // if we can't parse the existing ext, don't modify it
127124 return
128125 }
129126 }
@@ -142,15 +139,12 @@ func (a *adapter) MakeRequests(request *openrtb2.BidRequest, extra *adapters.Ext
142139
143140 prebidChannelName , channelVersion := getPrebidChannel (request )
144141
145- // pre-process the imps
146142 for _ , imp := range request .Imp {
147143 if err := processImp (& imp , extra ); err != nil {
148144 errors = append (errors , err )
149145 continue
150146 }
151147
152- // if display manager is not set and request came from prebid.js
153- // store it and its version
154148 if imp .DisplayManager == "" {
155149 imp .DisplayManager = prebidChannelName
156150 imp .DisplayManagerVer = channelVersion
@@ -223,6 +217,6 @@ func getBidType(markupType openrtb2.MarkupType) openrtb_ext.BidType {
223217 case openrtb2 .MarkupVideo :
224218 return openrtb_ext .BidTypeVideo
225219 default :
226- return openrtb_ext .BidTypeVideo // default to video
220+ return openrtb_ext .BidTypeVideo
227221 }
228222}
0 commit comments