Repository: prebid/prebid-server
Pull request #3669 (2024-05-08 09:12:11)

PubMatic: Pass imp.ext.gpid to SSP

github-actions[bot]: ## Code coverage summary 
Note: 
- Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors 
- Coverage summary encompasses all commits leading up to the latest one, 77e15a6569c1809a81c2b3d954b5ba6df06728ce 
#### pubmatic 
Refer [here](https://htmlpreview.github.io/?https://github.com/prebid/prebid-server/coverage-preview/.github/preview/8999292669_1715159578/pubmatic.html) for heat map coverage report 
``` 
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:85:	MakeRequests				93.4%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:190:	validateAdSlot				91.3%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:233:	assignBannerSize			100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:241:	assignBannerWidthAndHeight		100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:249:	parseImpressionObject			91.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:340:	extractPubmaticExtFromRequest		96.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:392:	getAlternateBidderCodesFromRequestExt	100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:410:	addKeywordsToExt			85.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:424:	MakeBids				90.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:506:	getNativeAdm				90.9%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:528:	getMapFromJSON				100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:540:	populateFirstPartyDataImpAttributes	100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:553:	populateAdUnitKey			100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:568:	populateDctrKey				85.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:618:	getStringArray				100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:631:	getBidType				100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:651:	Builder					100.0%
total:									(statements)				93.1%

 ``` 


Patch:
diff --git a/adapters/pubmatic/pubmatic.go b/adapters/pubmatic/pubmatic.go
index da6092d8..9c5799ee 100644
--- a/adapters/pubmatic/pubmatic.go
+++ b/adapters/pubmatic/pubmatic.go
@@ -48,6 +48,7 @@ type ExtImpBidderPubmatic struct {
 	adapters.ExtImpBidder
 	Data json.RawMessage `json:"data,omitempty"`
 	AE   int             `json:"ae,omitempty"`
+	GpId string          `json:"gpid,omitempty"`
 }
 
 type ExtAdServer struct {
@@ -78,6 +79,7 @@ const (
 	AdServerGAM        = "gam"
 	AdServerKey        = "adserver"
 	PBAdslotKey        = "pbadslot"
+	gpIdKey            = "gpid"
 )
 
 func (a *PubmaticAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error) {
@@ -319,6 +321,10 @@ func parseImpressionObject(imp *openrtb2.Imp, extractWrapperExtFromImp, extractP
 		extMap[ae] = bidderExt.AE
 	}
 
+	if bidderExt.GpId != "" {
+		extMap[gpIdKey] = bidderExt.GpId
+	}
+
 	imp.Ext = nil
 	if len(extMap) > 0 {
 		ext, err := json.Marshal(extMap)
diff --git a/adapters/rubicon/rubicon.go b/adapters/rubicon/rubicon.go
index a12d2fc7..6e515b11 100644
--- a/adapters/rubicon/rubicon.go
+++ b/adapters/rubicon/rubicon.go
@@ -331,14 +331,9 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada
 			}
 
 			userExtRP := rubiconUserExt{RP: rubiconUserExtRP{Target: target}}
-			userBuyerUID := userCopy.BuyerUID
 
 			if len(userCopy.EIDs) > 0 {
 				userExtRP.Eids = userCopy.EIDs
-
-				if userBuyerUID == "" {
-					userBuyerUID = extractUserBuyerUID(userExtRP.Eids)
-				}
 			}
 
 			if userCopy.Consent != "" {
@@ -354,7 +349,6 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada
 			userCopy.Geo = nil
 			userCopy.Yob = 0
 			userCopy.Gender = ""
-			userCopy.BuyerUID = userBuyerUID
 			userCopy.EIDs = nil
 
 			rubiconRequest.User = &userCopy
@@ -914,20 +908,6 @@ func contains(s []int, e int) bool {
 	return false
 }
 
-func extractUserBuyerUID(eids []openrtb2.EID) string {
-	for _, eid := range eids {
-		if eid.Source != "rubiconproject.com" {
-			continue
-		}
-
-		for _, uid := range eid.UIDs {
-			return uid.ID
-		}
-	}
-
-	return ""
-}
-
 func isVideo(imp openrtb2.Imp) bool {
 	video := imp.Video
 	if video != nil {
diff --git a/adapters/unruly/unruly.go b/adapters/unruly/unruly.go
index cdea14d3..97fc2b64 100644
--- a/adapters/unruly/unruly.go
+++ b/adapters/unruly/unruly.go
@@ -113,7 +113,7 @@ func (a *adapter) MakeBids(internalRequest *openrtb2.BidRequest, externalRequest
 		}}
 	}
 
-	bidResponse := adapters.NewBidderResponseWithBidsCapacity(5)
+	bidResponse := adapters.NewBidderResponseWithBidsCapacity(len(internalRequest.Imp))
 
 	var errs []error
 	for _, sb := range bidResp.SeatBid {
diff --git a/endpoints/openrtb2/sample-requests/aliased/simple.json b/endpoints/openrtb2/sample-requests/aliased/default-request-alias.json
similarity index 76%
rename from endpoints/openrtb2/sample-requests/aliased/simple.json
rename to endpoints/openrtb2/sample-requests/aliased/default-request-alias.json
index 6e1440a7..134d121b 100644
--- a/endpoints/openrtb2/sample-requests/aliased/simple.json
+++ b/endpoints/openrtb2/sample-requests/aliased/default-request-alias.json
@@ -35,7 +35,17 @@
           {
             "id": "appnexus-bid",
             "impid": "my-imp-id",
-            "price": 0
+            "price": 0,
+            "ext": {
+              "origbidcpm": 0,
+              "origbidcur": "USD",
+              "prebid": {
+                "meta": {
+                  "adaptercode": "appnexus"
+                },
+                "type": "banner"
+              }
+            }
           }
         ],
        "seat": "alias1"
diff --git a/endpoints/openrtb2/sample-requests/aliased/hard-alias.json b/endpoints/openrtb2/sample-requests/aliased/hard-alias.json
new file mode 100644
index 00000000..7e727814
--- /dev/null
+++ b/endpoints/openrtb2/sample-requests/aliased/hard-alias.json
@@ -0,0 +1,62 @@
+{
+  "description": "Imp extension references valid bidder alias of adf defined in the adform bidder infos config yaml file.",
+  "config": {
+    "mockBidders": [
+      {
+        "bidderName": "adform",
+        "currency": "USD",
+        "price": 2
+      }
+    ]
+  },
+  "mockBidRequest": {
+    "id": "some-request-id",
+    "site": {
+      "page": "test.somepage.com"
+    },
+    "imp": [
+      {
+        "id": "my-imp-id",
+        "video": {
+          "mimes": [
+            "video/mp4"
+          ]
+        },
+        "ext": {
+          "adform": {
+            "mid": "123"
+          }
+        }
+      }
+    ]
+  },
+  "expectedBidResponse": {
+    "id":"some-request-id",
+    "bidid":"test bid id",
+    "cur": "USD",
+    "nbr":0,
+    "seatbid": [
+      {
+        "bid": [
+          {
+            "id": "adform-bid",
+            "impid": "my-imp-id",
+            "price": 2,
+            "ext": {
+              "origbidcpm": 2,
+              "origbidcur": "USD",
+              "prebid": {
+                "meta": {
+                  "adaptercode": "adform"
+                },
+                "type": "banner"
+              }
+            }
+          }
+        ],
+       "seat": "adform"
+      }
+    ]
+  },
+  "expectedReturnCode": 200
+}
diff --git a/endpoints/openrtb2/sample-requests/aliased/request-alias.json b/endpoints/openrtb2/sample-requests/aliased/request-alias.json
new file mode 100644
index 00000000..77ce02ad
--- /dev/null
+++ b/endpoints/openrtb2/sample-requests/aliased/request-alias.json
@@ -0,0 +1,61 @@
+{
+    "description": "Imp extension references valid bidder alias of appnexus defined in the request ext.prebid.aliases field.",
+    "mockBidRequest": {
+      "id": "some-request-id",
+      "site": {
+        "page": "test.somepage.com"
+      },
+      "imp": [
+        {
+          "id": "my-imp-id",
+          "video": {
+            "mimes": [
+              "video/mp4"
+            ]
+          },
+          "ext": {
+            "alias1": {
+              "placementId": 12883451
+            }
+          }
+        }
+      ],
+      "ext": {
+        "prebid": {
+          "aliases": {
+            "alias1": "appnexus"
+          }
+        }
+      }
+    },
+    "expectedBidResponse": {
+      "id":"some-request-id",
+      "bidid":"test bid id",
+      "cur": "USD",
+      "nbr":0,
+      "seatbid": [
+        {
+          "bid": [
+            {
+              "id": "appnexus-bid",
+              "impid": "my-imp-id",
+              "price": 0,
+              "ext": {
+                "origbidcpm": 0,
+                "origbidcur": "USD",
+                "prebid": {
+                  "meta": {
+                    "adaptercode": "appnexus"
+                  },
+                  "type": "banner"
+                }
+              }
+            }
+          ],
+         "seat": "alias1"
+        }
+      ]
+    },
+    "expectedReturnCode": 200
+  }
+  
\ No newline at end of file
diff --git a/endpoints/openrtb2/sample-requests/alternate-bidder-code/alternate-bidder-code.json b/endpoints/openrtb2/sample-requests/alternate-bidder-code/alternate-bidder-code.json
new file mode 100644
index 00000000..75e951cb
--- /dev/null
+++ b/endpoints/openrtb2/sample-requests/alternate-bidder-code/alternate-bidder-code.json
@@ -0,0 +1,67 @@
+{
+    "description": "Imp extension doesn't come with valid bidder name but does come with valid bidder alias as defined in the mockAliases list.",
+    "config": {
+      "mockBidders": [
+        {
+          "bidderName": "appnexus",
+          "currency": "USD",
+          "price": 2,
+          "seat": "groupm"
+        }
+      ]
+    },
+    "mockBidRequest": {
+      "id": "some-request-id",
+      "site": {
+        "page": "test.somepage.com",
+        "publisher": {
+            "id": "alternate_bidder_code_acct"
+          }
+      },
+      "imp": [
+        {
+          "id": "my-imp-id",
+          "video": {
+            "mimes": [
+              "video/mp4"
+            ]
+          },
+          "ext": {
+            "appnexus": {
+              "placementId": 12883451
+            }
+          }
+        }
+      ]
+    },
+    "expectedBidResponse": {
+      "id":"some-request-id",
+      "bidid":"test bid id",
+      "cur": "USD",
+      "nbr":0,
+      "seatbid": [
+        {
+          "bid": [
+            {
+              "id": "appnexus-bid",
+              "impid": "my-imp-id",
+              "price": 2,
+              "ext": {
+                "origbidcpm": 2,
+                "origbidcur": "USD",
+                "prebid": {
+                  "meta": {
+                    "adaptercode": "appnexus"
+                  },
+                  "type": "banner"
+                }
+              }
+            }
+          ],
+         "seat": "groupm"
+        }
+      ]
+    },
+    "expectedReturnCode": 200
+  }
+  
\ No newline at end of file
diff --git a/endpoints/openrtb2/sample-requests/valid-whole/exemplary/simple.json b/endpoints/openrtb2/sample-requests/valid-whole/exemplary/simple.json
index 5a7dbd20..a0c627b3 100644
--- a/endpoints/openrtb2/sample-requests/valid-whole/exemplary/simple.json
+++ b/endpoints/openrtb2/sample-requests/valid-whole/exemplary/simple.json
@@ -47,7 +47,17 @@
           {
             "id": "appnexus-bid",
             "impid": "some-impression-id",
-            "price": 0
+            "price": 0,
+            "ext": {
+              "origbidcpm": 0,
+              "origbidcur": "USD",
+              "prebid": {
+                "meta": {
+                  "adaptercode": "appnexus"
+                },
+                "type": "banner"
+              }
+            }
           }
         ],
         "seat": "appnexus"
diff --git a/exchange/bidder.go b/exchange/bidder.go
index deb90d80..fb2c73be 100644
--- a/exchange/bidder.go
+++ b/exchange/bidder.go
@@ -387,6 +387,7 @@ func (bidder *bidderAdapter) requestBid(ctx context.Context, bidderRequest Bidde
 							DealPriority:   bidResponse.Bids[i].DealPriority,
 							OriginalBidCPM: originalBidCpm,
 							OriginalBidCur: bidResponse.Currency,
+							AdapterCode:    bidderRequest.BidderCoreName,
 						})
 						seatBidMap[bidderName].Currency = currencyAfterAdjustments
 					}
diff --git a/exchange/entities/entities.go b/exchange/entities/entities.go
index 0449f456..c764fe82 100644
--- a/exchange/entities/entities.go
+++ b/exchange/entities/entities.go
@@ -50,4 +50,5 @@ type PbsOrtbBid struct {
 	OriginalBidCPM    float64
 	OriginalBidCur    string
 	TargetBidderCode  string
+	AdapterCode       openrtb_ext.BidderName
 }
diff --git a/exchange/exchange.go b/exchange/exchange.go
index a90a693c..01abe37d 100644
--- a/exchange/exchange.go
+++ b/exchange/exchange.go
@@ -1317,7 +1317,7 @@ func (e *exchange) makeBid(bids []*entities.PbsOrtbBid, auc *auction, returnCrea
 			}
 		}
 
-		if bidExtJSON, err := makeBidExtJSON(bid.Bid.Ext, bidExtPrebid, impExtInfoMap, bid.Bid.ImpID, bid.OriginalBidCPM, bid.OriginalBidCur, adapter); err != nil {
+		if bidExtJSON, err := makeBidExtJSON(bid.Bid.Ext, bidExtPrebid, impExtInfoMap, bid.Bid.ImpID, bid.OriginalBidCPM, bid.OriginalBidCur, bid.AdapterCode); err != nil {
 			errs = append(errs, err)
 		} else {
 			result = append(result, *bid.Bid)
diff --git a/static/bidder-info/cpmstar.yaml b/static/bidder-info/cpmstar.yaml
index 7c54ba53..94a91e5a 100644
--- a/static/bidder-info/cpmstar.yaml
+++ b/static/bidder-info/cpmstar.yaml
@@ -11,6 +11,9 @@ capabilities:
       - banner
       - video
 userSync:
+  iframe:
+    url: "https://server.cpmstar.com/usersync.aspx?ifr=1&gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redirect={{.RedirectURL}}"
+    userMacro: "$UID"
   redirect:
     url: "https://server.cpmstar.com/usersync.aspx?gdpr={{.GDPR}}&consent={{.GDPRConsent}}&us_privacy={{.USPrivacy}}&redirect={{.RedirectURL}}"
-    userMacro: "$UID"
+    userMacro: "$UID"    
\ No newline at end of file
diff --git a/static/bidder-info/jdpmedia.yaml b/static/bidder-info/jdpmedia.yaml
new file mode 100644
index 00000000..8139dd4f
--- /dev/null
+++ b/static/bidder-info/jdpmedia.yaml
@@ -0,0 +1,5 @@
+endpoint: "http://jdpmedia-prebid.smart-hub.io/pbserver/?seat={{.AccountID}}&token={{.SourceId}}"
+aliasOf: "smarthub"
+userSync:
+  supports:
+    - redirect
\ No newline at end of file
diff --git a/static/bidder-info/mabidder.yaml b/static/bidder-info/mabidder.yaml
index 3f03fd87..b66e9a8b 100644
--- a/static/bidder-info/mabidder.yaml
+++ b/static/bidder-info/mabidder.yaml
@@ -8,4 +8,7 @@ capabilities:
       - banner
   site:
     mediaTypes:
-      - banner
\ No newline at end of file
+      - banner
+# This bidder does not operate globally. Please consider setting "disabled: true" outside of the following regions:
+geoscope:
+  - CAN
\ No newline at end of file


Test patch:
diff --git a/adapters/pubmatic/pubmatictest/supplemental/impExtData.json b/adapters/pubmatic/pubmatictest/supplemental/impExt.json
similarity index 97%
rename from adapters/pubmatic/pubmatictest/supplemental/impExtData.json
rename to adapters/pubmatic/pubmatictest/supplemental/impExt.json
index 17bb47fe..368dd2fa 100644
--- a/adapters/pubmatic/pubmatictest/supplemental/impExtData.json
+++ b/adapters/pubmatic/pubmatictest/supplemental/impExt.json
@@ -32,7 +32,8 @@
                             "rugby",
                             "cricket"
                         ]
-                    }
+                    },
+                    "gpid":"/1111/home"
                 }
             }
         ],
@@ -68,7 +69,8 @@
                             },
                             "ext": {
                                 "dfp_ad_unit_code": "/1111/home",
-                                "key_val": "k1=v1|k2=v2|sport=rugby,cricket"
+                                "key_val": "k1=v1|k2=v2|sport=rugby,cricket",
+                                "gpid":"/1111/home"
                             }
                         }
                     ],
diff --git a/endpoints/openrtb2/auction_test.go b/endpoints/openrtb2/auction_test.go
index ee82ffdf..fbeddf46 100644
--- a/endpoints/openrtb2/auction_test.go
+++ b/endpoints/openrtb2/auction_test.go
@@ -72,9 +72,13 @@ func TestJsonSampleRequests(t *testing.T) {
 			"invalid-native",
 		},
 		{
-			"Makes sure we handle (default) aliased bidders properly",
+			"Makes sure we handle aliased bidders properly",
 			"aliased",
 		},
+		{
+			"Makes sure we handle alternate bidder codes properly",
+			"alternate-bidder-code",
+		},
 		{
 			"Asserts we return 500s on requests referencing accounts with malformed configs.",
 			"account-malformed",
diff --git a/endpoints/openrtb2/test_utils.go b/endpoints/openrtb2/test_utils.go
index 6fedb73c..66eb64fa 100644
--- a/endpoints/openrtb2/test_utils.go
+++ b/endpoints/openrtb2/test_utils.go
@@ -941,6 +941,7 @@ type mockBidderHandler struct {
 	Currency   string  `json:"currency"`
 	Price      float64 `json:"price"`
 	DealID     string  `json:"dealid"`
+	Seat       string  `json:"seat"`
 }
 
 func (b mockBidderHandler) bid(w http.ResponseWriter, req *http.Request) {
@@ -999,6 +1000,7 @@ func (b mockBidderHandler) bid(w http.ResponseWriter, req *http.Request) {
 type mockAdapter struct {
 	mockServerURL string
 	Server        config.Server
+	seat          string
 }
 
 func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error) {
@@ -1064,6 +1066,9 @@ func (a mockAdapter) MakeBids(request *openrtb2.BidRequest, requestData *adapter
 						Bid:     &seatBid.Bid[i],
 						BidType: openrtb_ext.BidTypeBanner,
 					}
+					if len(a.seat) > 0 {
+						b.Seat = openrtb_ext.BidderName(a.seat)
+					}
 					rv.Bids = append(rv.Bids, b)
 				}
 			}
@@ -1091,6 +1096,24 @@ func getBidderInfos(disabledAdapters []string, biddersNames []openrtb_ext.Bidder
 	return biddersInfos
 }
 
+func enableBidders(bidderInfos config.BidderInfos) {
+	for name, bidderInfo := range bidderInfos {
+		if bidderInfo.Disabled {
+			bidderInfo.Disabled = false
+			bidderInfos[name] = bidderInfo
+		}
+	}
+}
+
+func disableBidders(disabledAdapters []string, bidderInfos config.BidderInfos) {
+	for _, disabledAdapter := range disabledAdapters {
+		if bidderInfo, ok := bidderInfos[disabledAdapter]; ok {
+			bidderInfo.Disabled = true
+			bidderInfos[disabledAdapter] = bidderInfo
+		}
+	}
+}
+
 func newBidderInfo(isDisabled bool) config.BidderInfo {
 	return config.BidderInfo{
 		Disabled: isDisabled,
@@ -1179,7 +1202,7 @@ func buildTestExchange(testCfg *testConfigValues, adapterMap map[openrtb_ext.Bid
 	}
 	for _, mockBidder := range testCfg.MockBidders {
 		bidServer := httptest.NewServer(http.HandlerFunc(mockBidder.bid))
-		bidderAdapter := mockAdapter{mockServerURL: bidServer.URL}
+		bidderAdapter := mockAdapter{mockServerURL: bidServer.URL, seat: mockBidder.Seat}
 		bidderName := openrtb_ext.BidderName(mockBidder.BidderName)
 
 		adapterMap[bidderName] = exchange.AdaptBidder(bidderAdapter, bidServer.Client(), &config.Configuration{}, &metricsConfig.NilMetricsEngine{}, bidderName, nil, "")
@@ -1231,7 +1254,9 @@ func buildTestEndpoint(test testCase, cfg *config.Configuration) (httprouter.Han
 		paramValidator = mockBidderParamValidator{}
 	}
 
-	bidderInfos := getBidderInfos(test.Config.DisabledAdapters, openrtb_ext.CoreBidderNames())
+	bidderInfos, _ := config.LoadBidderInfoFromDisk("../../static/bidder-info")
+	enableBidders(bidderInfos)
+	disableBidders(test.Config.DisabledAdapters, bidderInfos)
 	bidderMap := exchange.GetActiveBidders(bidderInfos)
 	disabledBidders := exchange.GetDisabledBidderWarningMessages(bidderInfos)
 	met := &metricsConfig.NilMetricsEngine{}
@@ -1267,8 +1292,9 @@ func buildTestEndpoint(test testCase, cfg *config.Configuration) (httprouter.Han
 
 	accountFetcher := &mockAccountFetcher{
 		data: map[string]json.RawMessage{
-			"malformed_acct": json.RawMessage(`{"disabled":"invalid type"}`),
-			"disabled_acct":  json.RawMessage(`{"disabled":true}`),
+			"malformed_acct":             json.RawMessage(`{"disabled":"invalid type"}`),
+			"disabled_acct":              json.RawMessage(`{"disabled":true}`),
+			"alternate_bidder_code_acct": json.RawMessage(`{"disabled":false,"alternatebiddercodes":{"enabled":true,"bidders":{"appnexus":{"enabled":true,"allowedbiddercodes":["groupm"]}}}}`),
 		},
 	}
 
diff --git a/exchange/exchange_test.go b/exchange/exchange_test.go
index ffc338bf..5849dbc3 100644
--- a/exchange/exchange_test.go
+++ b/exchange/exchange_test.go
@@ -1638,7 +1638,7 @@ func TestBidResponseCurrency(t *testing.T) {
 					Price: 9.517803,
 					W:     300,
 					H:     250,
-					Ext:   json.RawMessage(`{"origbidcpm":9.517803,"prebid":{"meta":{"adaptercode":"appnexus"},"type":"banner"}}`),
+					Ext:   json.RawMessage(`{"origbidcpm":9.517803,"prebid":{"meta":{},"type":"banner"}}`),
 				},
 			},
 		},
@@ -1768,7 +1768,7 @@ func TestBidResponseImpExtInfo(t *testing.T) {
 		H:     250,
 		Ext:   nil,
 	}
-	aPbsOrtbBidArr := []*entities.PbsOrtbBid{{Bid: sampleBid, BidType: openrtb_ext.BidTypeVideo}}
+	aPbsOrtbBidArr := []*entities.PbsOrtbBid{{Bid: sampleBid, BidType: openrtb_ext.BidTypeVideo, AdapterCode: openrtb_ext.BidderAppnexus}}
 
 	adapterBids := map[openrtb_ext.BidderName]*entities.PbsOrtbSeatBid{
 		openrtb_ext.BidderName("appnexus"): {
@@ -4144,7 +4144,7 @@ func TestStoredAuctionResponses(t *testing.T) {
 		SeatBid: []openrtb2.SeatBid{
 			{
 				Bid: []openrtb2.Bid{
-					{ID: "bid_id", ImpID: "impression-id", Ext: json.RawMessage(`{"origbidcpm":0,"prebid":{"meta":{"adaptercode":"appnexus"},"type":"video"}}`)},
+					{ID: "bid_id", ImpID: "impression-id", Ext: json.RawMessage(`{"origbidcpm":0,"prebid":{"meta":{},"type":"video"}}`)},
 				},
 				Seat: "appnexus",
 			},
@@ -5231,6 +5231,7 @@ func TestGetAllBids(t *testing.T) {
 									ID: "1",
 								},
 								OriginalBidCur: "USD",
+								AdapterCode:    openrtb_ext.BidderPubmatic,
 							},
 						},
 						Currency:  "USD",
@@ -5299,6 +5300,7 @@ func TestGetAllBids(t *testing.T) {
 									ID: "1",
 								},
 								OriginalBidCur: "USD",
+								AdapterCode:    openrtb_ext.BidderPubmatic,
 							},
 						},
 						Currency:  "USD",
@@ -5312,6 +5314,7 @@ func TestGetAllBids(t *testing.T) {
 									ID: "2",
 								},
 								OriginalBidCur: "USD",
+								AdapterCode:    openrtb_ext.BidderPubmatic,
 							},
 						},
 						Currency:  "USD",
@@ -5379,6 +5382,7 @@ func TestGetAllBids(t *testing.T) {
 									ID: "2",
 								},
 								OriginalBidCur: "USD",
+								AdapterCode:    openrtb_ext.BidderPubmatic,
 							},
 						},
 						Currency:  "USD",
diff --git a/exchange/exchangetest/alternate-bidder-codes.json b/exchange/exchangetest/alternate-bidder-codes.json
index c2e6f95a..a2272488 100644
--- a/exchange/exchangetest/alternate-bidder-codes.json
+++ b/exchange/exchangetest/alternate-bidder-codes.json
@@ -95,9 +95,7 @@
                   "price": 0.71
                 },
                 "bidType": "video",
-                "bidMeta": {
-                  "adaptercode": "pubmatic"
-                }
+                "bidMeta": {}
               }
             ],
             "seat": "pubmatic"
@@ -111,9 +109,7 @@
                   "price": 0.51
                 },
                 "bidType": "video",
-                "bidMeta": {
-                  "adaptercode": "pubmatic"
-                }
+                "bidMeta": {}
               }
             ],
             "seat": "groupm"
@@ -164,9 +160,7 @@
                   "price": 0.3
                 },
                 "bidType": "banner",
-                "bidMeta": {
-                  "adaptercode": "appnexus"
-                }
+                "bidMeta": {}
               }
             ],
             "seat": "appnexus"
@@ -181,7 +175,6 @@
                 },
                 "bidType": "banner",
                 "bidMeta": {
-                  "adaptercode": "appnexus"
                 }
               }
             ],
@@ -205,9 +198,7 @@
               "ext": {
                 "origbidcpm": 0.51,
                 "prebid": {
-                  "meta": {
-                    "adaptercode": "groupm"
-                  },
+                  "meta": {},
                   "type": "video"
                 }
               }
@@ -220,7 +211,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "groupm"
                   },
                   "type": "banner"
                 }
@@ -239,7 +229,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "pubmatic"
                   },
                   "type": "video"
                 }
@@ -258,7 +247,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner"
                 }
diff --git a/exchange/exchangetest/append-bidder-names.json b/exchange/exchangetest/append-bidder-names.json
index 14f1181e..bc453213 100644
--- a/exchange/exchangetest/append-bidder-names.json
+++ b/exchange/exchangetest/append-bidder-names.json
@@ -138,7 +138,6 @@
                                 "prebid": {
                                     "type": "video",
                                     "meta": {
-                                        "adaptercode":"appnexus"
                                     },
                                     "targeting": {
                                         "hb_bidder": "appnexus",
@@ -166,7 +165,6 @@
                                 "origbidcpm": 0.6,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"appnexus"
                                     },
                                     "targeting": {
                                         "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/bid-consolidation-test.json b/exchange/exchangetest/bid-consolidation-test.json
index 61dbae5e..5222b680 100644
--- a/exchange/exchangetest/bid-consolidation-test.json
+++ b/exchange/exchangetest/bid-consolidation-test.json
@@ -128,7 +128,6 @@
                 "origbidcpm": 0.4,
                 "prebid": {
                   "meta": {
-                    "adaptercode":"rubicon"
                   },
                   "type": "video"
                 }
@@ -150,7 +149,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode":"appnexus"
                   },
                   "type": "video"
                 }
@@ -167,7 +165,6 @@
                 "origbidcpm": 0.6,
                 "prebid": {
                   "meta": {
-                    "adaptercode":"appnexus"
                   },
                   "type": "video"
                 }
diff --git a/exchange/exchangetest/bid-ext-prebid-collision.json b/exchange/exchangetest/bid-ext-prebid-collision.json
index f6a2a065..e38637a4 100644
--- a/exchange/exchangetest/bid-ext-prebid-collision.json
+++ b/exchange/exchangetest/bid-ext-prebid-collision.json
@@ -100,7 +100,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/bid-ext.json b/exchange/exchangetest/bid-ext.json
index f2416d6f..1d66e7d9 100644
--- a/exchange/exchangetest/bid-ext.json
+++ b/exchange/exchangetest/bid-ext.json
@@ -97,7 +97,6 @@
                                 "someField": "someValue",
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/bid_response_validation_enforce_one_bid_rejected.json b/exchange/exchangetest/bid_response_validation_enforce_one_bid_rejected.json
index 90484317..8c5d22e2 100644
--- a/exchange/exchangetest/bid_response_validation_enforce_one_bid_rejected.json
+++ b/exchange/exchangetest/bid_response_validation_enforce_one_bid_rejected.json
@@ -174,7 +174,6 @@
                                 "origbidcpm": 0.4,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"rubicon"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/bid_response_validation_warn_creative.json b/exchange/exchangetest/bid_response_validation_warn_creative.json
index 47546683..8d30c18c 100644
--- a/exchange/exchangetest/bid_response_validation_warn_creative.json
+++ b/exchange/exchangetest/bid_response_validation_warn_creative.json
@@ -170,7 +170,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"appnexus"
                                     },
                                     "type": "banner"
                                 }
@@ -192,7 +191,6 @@
                                 "origbidcpm": 0.4,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"rubicon"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/bid_response_validation_warn_secure.json b/exchange/exchangetest/bid_response_validation_warn_secure.json
index 3c06f695..9d2af597 100644
--- a/exchange/exchangetest/bid_response_validation_warn_secure.json
+++ b/exchange/exchangetest/bid_response_validation_warn_secure.json
@@ -173,7 +173,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"appnexus"
                                     },
                                     "type": "banner"
                                 }
@@ -196,7 +195,6 @@
                                 "origbidcpm": 0.4,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode":"rubicon"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/debuglog_disabled.json b/exchange/exchangetest/debuglog_disabled.json
index 5c0e029c..ce0669cf 100644
--- a/exchange/exchangetest/debuglog_disabled.json
+++ b/exchange/exchangetest/debuglog_disabled.json
@@ -146,7 +146,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -175,7 +174,6 @@
                 "origbidcpm": 0.6,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "targeting": {
                     "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/debuglog_enabled.json b/exchange/exchangetest/debuglog_enabled.json
index 11a63f5d..71a0bc06 100644
--- a/exchange/exchangetest/debuglog_enabled.json
+++ b/exchange/exchangetest/debuglog_enabled.json
@@ -148,7 +148,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -177,7 +176,6 @@
                 "origbidcpm": 0.6,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "targeting": {
                     "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/dsa-default-ignored.json b/exchange/exchangetest/dsa-default-ignored.json
index d70009e5..358bc6d1 100644
--- a/exchange/exchangetest/dsa-default-ignored.json
+++ b/exchange/exchangetest/dsa-default-ignored.json
@@ -126,7 +126,6 @@
                         "origbidcpm": 0.3,
                         "prebid": {
                             "meta": {
-                                "adaptercode": "appnexus"
                             },
                             "type": "video"
                         },
diff --git a/exchange/exchangetest/dsa-default.json b/exchange/exchangetest/dsa-default.json
index efac1441..cd8581e5 100644
--- a/exchange/exchangetest/dsa-default.json
+++ b/exchange/exchangetest/dsa-default.json
@@ -182,7 +182,6 @@
                         "origbidcpm": 0.3,
                         "prebid": {
                             "meta": {
-                                "adaptercode": "appnexus"
                             },
                             "type": "video"
                         },
diff --git a/exchange/exchangetest/dsa-not-required.json b/exchange/exchangetest/dsa-not-required.json
index f2a1f821..b3f75317 100644
--- a/exchange/exchangetest/dsa-not-required.json
+++ b/exchange/exchangetest/dsa-not-required.json
@@ -122,7 +122,6 @@
                         "origbidcpm": 0.3,
                         "prebid": {
                             "meta": {
-                                "adaptercode": "appnexus"
                             },
                             "type": "video"
                         }
diff --git a/exchange/exchangetest/dsa-required.json b/exchange/exchangetest/dsa-required.json
index d25efdc1..a3bccafc 100644
--- a/exchange/exchangetest/dsa-required.json
+++ b/exchange/exchangetest/dsa-required.json
@@ -195,7 +195,6 @@
                         "origbidcpm": 0.3,
                         "prebid": {
                             "meta": {
-                                "adaptercode": "appnexus"
                             },
                             "type": "video"
                         },
diff --git a/exchange/exchangetest/eidpermissions-allowed-alias.json b/exchange/exchangetest/eidpermissions-allowed-alias.json
index 3dfe4415..88692772 100644
--- a/exchange/exchangetest/eidpermissions-allowed-alias.json
+++ b/exchange/exchangetest/eidpermissions-allowed-alias.json
@@ -136,7 +136,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "foo"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/eidpermissions-allowed-case-insensitive.json b/exchange/exchangetest/eidpermissions-allowed-case-insensitive.json
index 459bb015..70d3d0be 100644
--- a/exchange/exchangetest/eidpermissions-allowed-case-insensitive.json
+++ b/exchange/exchangetest/eidpermissions-allowed-case-insensitive.json
@@ -133,7 +133,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/eidpermissions-allowed.json b/exchange/exchangetest/eidpermissions-allowed.json
index 06b2d184..045e1246 100644
--- a/exchange/exchangetest/eidpermissions-allowed.json
+++ b/exchange/exchangetest/eidpermissions-allowed.json
@@ -133,7 +133,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/eidpermissions-denied.json b/exchange/exchangetest/eidpermissions-denied.json
index 72431595..eb3e216e 100644
--- a/exchange/exchangetest/eidpermissions-denied.json
+++ b/exchange/exchangetest/eidpermissions-denied.json
@@ -120,7 +120,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/events-bid-account-off-request-off.json b/exchange/exchangetest/events-bid-account-off-request-off.json
index 4ae1881b..48906439 100644
--- a/exchange/exchangetest/events-bid-account-off-request-off.json
+++ b/exchange/exchangetest/events-bid-account-off-request-off.json
@@ -80,7 +80,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner"
                 }
@@ -97,7 +96,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner"
                 }
diff --git a/exchange/exchangetest/events-bid-account-off-request-on.json b/exchange/exchangetest/events-bid-account-off-request-on.json
index 20606002..9166bb43 100644
--- a/exchange/exchangetest/events-bid-account-off-request-on.json
+++ b/exchange/exchangetest/events-bid-account-off-request-on.json
@@ -83,7 +83,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner",
                   "events": {
@@ -104,7 +103,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner",
                   "events": {
diff --git a/exchange/exchangetest/events-bid-account-on-request-off.json b/exchange/exchangetest/events-bid-account-on-request-off.json
index 0447a224..536fdb69 100644
--- a/exchange/exchangetest/events-bid-account-on-request-off.json
+++ b/exchange/exchangetest/events-bid-account-on-request-off.json
@@ -82,7 +82,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner",
                   "events": {
@@ -103,7 +102,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner",
                   "events": {
diff --git a/exchange/exchangetest/events-vast-account-off-request-off.json b/exchange/exchangetest/events-vast-account-off-request-off.json
index 3792c0ba..9f2e4fe0 100644
--- a/exchange/exchangetest/events-vast-account-off-request-off.json
+++ b/exchange/exchangetest/events-vast-account-off-request-off.json
@@ -126,7 +126,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video"
                 }
@@ -149,7 +148,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -175,7 +173,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
diff --git a/exchange/exchangetest/events-vast-account-off-request-on.json b/exchange/exchangetest/events-vast-account-off-request-on.json
index 93ec6f35..560f4f0e 100644
--- a/exchange/exchangetest/events-vast-account-off-request-on.json
+++ b/exchange/exchangetest/events-vast-account-off-request-on.json
@@ -132,7 +132,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "bidid": "bid-audienceNetwork-1",
                   "type": "video"
@@ -157,7 +156,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "bidid": "bid-appnexus-1",
                   "type": "video",
@@ -185,7 +183,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "bidid": "bid-appnexus-2",
                   "type": "video"
diff --git a/exchange/exchangetest/events-vast-account-on-request-off.json b/exchange/exchangetest/events-vast-account-on-request-off.json
index 38f407d5..882f1e8c 100644
--- a/exchange/exchangetest/events-vast-account-on-request-off.json
+++ b/exchange/exchangetest/events-vast-account-on-request-off.json
@@ -127,7 +127,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video"
                 }
@@ -151,7 +150,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -178,7 +176,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
diff --git a/exchange/exchangetest/extra-bids-with-aliases-adaptercode.json b/exchange/exchangetest/extra-bids-with-aliases-adaptercode.json
index 8da9a290..75425397 100644
--- a/exchange/exchangetest/extra-bids-with-aliases-adaptercode.json
+++ b/exchange/exchangetest/extra-bids-with-aliases-adaptercode.json
@@ -81,7 +81,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pmbidder"
                 }
               },
               {
@@ -95,7 +94,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pmbidder"
                 }
               },
               {
@@ -109,7 +107,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pmbidder"
                 }
               }
             ],
@@ -128,7 +125,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pmbidder"
                 }
               }
             ],
@@ -156,7 +152,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "pmbidder"
                   },
                   "type": "video",
                   "targeting": {
@@ -185,7 +180,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "groupm"
                   },
                   "type": "video",
                   "targeting": {
@@ -214,7 +208,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "groupm"
                   },
                   "type": "video"
                 }
@@ -231,7 +224,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "groupm"
                   },
                   "type": "video",
                   "targeting": {
diff --git a/exchange/exchangetest/extra-bids.json b/exchange/exchangetest/extra-bids.json
index edf2e60b..e1682618 100644
--- a/exchange/exchangetest/extra-bids.json
+++ b/exchange/exchangetest/extra-bids.json
@@ -146,7 +146,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -160,7 +159,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -174,7 +172,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             }
                         ],
@@ -193,7 +190,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             }
                         ],
@@ -262,7 +258,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             }
                         ],
@@ -281,7 +276,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             }
                         ],
@@ -309,7 +303,6 @@
                                 "origbidcpm": 0.51,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "groupm"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -333,7 +326,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "groupm"
                                     },
                                     "type": "banner"
                                 }
@@ -355,7 +347,6 @@
                                 "origbidcpm": 0.71,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -384,7 +375,6 @@
                                 "origbidcpm": 0.21,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video"
                                 }
@@ -401,7 +391,6 @@
                                 "origbidcpm": 0.61,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -435,7 +424,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner",
                                     "targeting": {
diff --git a/exchange/exchangetest/firstpartydata-amp-imp-ext-one-prebid-bidder.json b/exchange/exchangetest/firstpartydata-amp-imp-ext-one-prebid-bidder.json
index 22e0fb82..f1119b22 100644
--- a/exchange/exchangetest/firstpartydata-amp-imp-ext-one-prebid-bidder.json
+++ b/exchange/exchangetest/firstpartydata-amp-imp-ext-one-prebid-bidder.json
@@ -122,7 +122,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/firstpartydata-imp-ext-multiple-prebid-bidders.json b/exchange/exchangetest/firstpartydata-imp-ext-multiple-prebid-bidders.json
index 37d5ade5..edeb0423 100644
--- a/exchange/exchangetest/firstpartydata-imp-ext-multiple-prebid-bidders.json
+++ b/exchange/exchangetest/firstpartydata-imp-ext-multiple-prebid-bidders.json
@@ -189,7 +189,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner"
                                 }
@@ -211,7 +210,6 @@
                                 "origbidcpm": 0.4,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "rubicon"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/firstpartydata-imp-ext-one-prebid-bidder.json b/exchange/exchangetest/firstpartydata-imp-ext-one-prebid-bidder.json
index 1b6b2043..ef0ad225 100644
--- a/exchange/exchangetest/firstpartydata-imp-ext-one-prebid-bidder.json
+++ b/exchange/exchangetest/firstpartydata-imp-ext-one-prebid-bidder.json
@@ -122,7 +122,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/fledge-with-bids.json b/exchange/exchangetest/fledge-with-bids.json
index df59c0d2..030467f6 100644
--- a/exchange/exchangetest/fledge-with-bids.json
+++ b/exchange/exchangetest/fledge-with-bids.json
@@ -115,7 +115,6 @@
                                 "someField": "someValue",
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "openx"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/floors_enforcement.json b/exchange/exchangetest/floors_enforcement.json
index f1495e7c..d280c412 100644
--- a/exchange/exchangetest/floors_enforcement.json
+++ b/exchange/exchangetest/floors_enforcement.json
@@ -137,7 +137,6 @@
                   "origbidcpm": 12,
                   "prebid": {
                     "meta": {
-                      "adaptercode": "appnexus"
                     },
                     "floors": {
                       "floorCurrency": "USD",
diff --git a/exchange/exchangetest/generate-bid-id-error.json b/exchange/exchangetest/generate-bid-id-error.json
index 9c13ef38..c38d0c97 100644
--- a/exchange/exchangetest/generate-bid-id-error.json
+++ b/exchange/exchangetest/generate-bid-id-error.json
@@ -110,7 +110,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
diff --git a/exchange/exchangetest/generate-bid-id-many.json b/exchange/exchangetest/generate-bid-id-many.json
index 4c6a18ab..8a55d197 100644
--- a/exchange/exchangetest/generate-bid-id-many.json
+++ b/exchange/exchangetest/generate-bid-id-many.json
@@ -98,7 +98,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "bidid": "bid-appnexus-1",
                   "type": "video"
@@ -119,7 +118,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "bidid": "bid-appnexus-2",
                   "type": "video"
diff --git a/exchange/exchangetest/generate-bid-id-one.json b/exchange/exchangetest/generate-bid-id-one.json
index 7d4169d6..e14e5db2 100644
--- a/exchange/exchangetest/generate-bid-id-one.json
+++ b/exchange/exchangetest/generate-bid-id-one.json
@@ -81,7 +81,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "bidid": "bid-appnexus-1",
                   "type": "video"
diff --git a/exchange/exchangetest/include-brand-category.json b/exchange/exchangetest/include-brand-category.json
index c0904448..74950598 100644
--- a/exchange/exchangetest/include-brand-category.json
+++ b/exchange/exchangetest/include-brand-category.json
@@ -135,7 +135,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -164,7 +163,6 @@
                 "origbidcpm": 0.6,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "targeting": {
                     "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/mediatypepricegranularity-banner-video-native.json b/exchange/exchangetest/mediatypepricegranularity-banner-video-native.json
index 4e532d1e..10dacd22 100644
--- a/exchange/exchangetest/mediatypepricegranularity-banner-video-native.json
+++ b/exchange/exchangetest/mediatypepricegranularity-banner-video-native.json
@@ -197,7 +197,6 @@
                                 "origbidcpm": 15,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner",
                                     "targeting": {
@@ -227,7 +226,6 @@
                                 "origbidcpm": 18,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "targeting": {
                                         "hb_bidder": "appnexus",
@@ -262,7 +260,6 @@
                                 "origbidcpm": 29,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "targeting": {
                                         "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/mediatypepricegranularity-native.json b/exchange/exchangetest/mediatypepricegranularity-native.json
index e454b500..a7a04b67 100644
--- a/exchange/exchangetest/mediatypepricegranularity-native.json
+++ b/exchange/exchangetest/mediatypepricegranularity-native.json
@@ -165,7 +165,6 @@
                                 "origbidcpm": 24,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "native",
                                     "targeting": {
@@ -195,7 +194,6 @@
                                 "origbidcpm": 29,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "targeting": {
                                         "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/multi-bid-default-bid-limit.json b/exchange/exchangetest/multi-bid-default-bid-limit.json
index 45e3c673..d94fc4a2 100644
--- a/exchange/exchangetest/multi-bid-default-bid-limit.json
+++ b/exchange/exchangetest/multi-bid-default-bid-limit.json
@@ -267,7 +267,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             },
                             {
@@ -295,7 +294,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             },
                             {
@@ -323,7 +321,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             }
                         ],
@@ -471,7 +468,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "rubicon"
                                 }
                             },
                             {
@@ -498,7 +494,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "rubicon"
                                 }
                             },
                             {
@@ -525,7 +520,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "rubicon"
                                 }
                             }
                         ],
@@ -552,7 +546,6 @@
                             "ext": {
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "rubicon"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -593,7 +586,6 @@
                             "ext": {
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "rubicon"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -638,7 +630,6 @@
                             "ext": {
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -674,7 +665,6 @@
                             "ext": {
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 },
diff --git a/exchange/exchangetest/multi-bids-error.json b/exchange/exchangetest/multi-bids-error.json
index fc96b5ea..35ad1d93 100644
--- a/exchange/exchangetest/multi-bids-error.json
+++ b/exchange/exchangetest/multi-bids-error.json
@@ -180,7 +180,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -194,7 +193,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -208,7 +206,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -222,7 +219,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             }
                         ],
@@ -283,7 +279,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             },
                             {
@@ -297,7 +292,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             }
                         ],
@@ -325,7 +319,6 @@
                                 "origbidcpm": 0.71,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -355,7 +348,6 @@
                                 "origbidcpm": 0.21,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -380,7 +372,6 @@
                                 "origbidcpm": 0.61,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -410,7 +401,6 @@
                                 "origbidcpm": 0.51,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -440,7 +430,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner",
                                     "targeting": {
@@ -464,7 +453,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/multi-bids-mixed-case.json b/exchange/exchangetest/multi-bids-mixed-case.json
index 44630b30..3ecdb123 100644
--- a/exchange/exchangetest/multi-bids-mixed-case.json
+++ b/exchange/exchangetest/multi-bids-mixed-case.json
@@ -146,7 +146,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pubmatic"
                 }
               },
               {
@@ -160,7 +159,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pubmatic"
                 }
               },
               {
@@ -174,7 +172,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pubmatic"
                 }
               },
               {
@@ -188,7 +185,6 @@
                 },
                 "bidType": "video",
                 "bidMeta": {
-                  "adaptercode": "pubmatic"
                 }
               }
             ],
@@ -261,7 +257,6 @@
                 },
                 "bidType": "banner",
                 "bidMeta": {
-                  "adaptercode": "appnexus"
                 }
               },
               {
@@ -275,7 +270,6 @@
                 },
                 "bidType": "banner",
                 "bidMeta": {
-                  "adaptercode": "appnexus"
                 }
               }
             ],
@@ -303,7 +297,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "pubmatic"
                   },
                   "type": "video",
                   "targeting": {
@@ -333,7 +326,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "pubmatic"
                   },
                   "type": "video"
                 }
@@ -350,7 +342,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "pubmatic"
                   },
                   "type": "video",
                   "targeting": {
@@ -380,7 +371,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "pubmatic"
                   },
                   "type": "video",
                   "targeting": {
@@ -410,7 +400,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "targetbiddercode": "appnexus",
                   "type": "banner",
@@ -435,7 +424,6 @@
                 "origbidcpm": 0.3,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner"
                 }
diff --git a/exchange/exchangetest/multi-bids-with-extra-bids.json b/exchange/exchangetest/multi-bids-with-extra-bids.json
index 92a7ff0a..4c87eb91 100644
--- a/exchange/exchangetest/multi-bids-with-extra-bids.json
+++ b/exchange/exchangetest/multi-bids-with-extra-bids.json
@@ -174,7 +174,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -188,7 +187,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -202,7 +200,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -216,7 +213,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             }
                         ],
@@ -293,7 +289,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             },
                             {
@@ -307,7 +302,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             }
                         ],
@@ -335,7 +329,6 @@
                                 "origbidcpm": 0.71,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -365,7 +358,6 @@
                                 "origbidcpm": 0.21,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video"
                                 }
@@ -382,7 +374,6 @@
                                 "origbidcpm": 0.61,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -412,7 +403,6 @@
                                 "origbidcpm": 0.51,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -442,7 +432,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "targetbiddercode": "appnexus",
                                     "type": "banner",
@@ -467,7 +456,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/multi-bids.json b/exchange/exchangetest/multi-bids.json
index ed3e1c1d..b4e02b57 100644
--- a/exchange/exchangetest/multi-bids.json
+++ b/exchange/exchangetest/multi-bids.json
@@ -146,7 +146,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -160,7 +159,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -174,7 +172,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             },
                             {
@@ -188,7 +185,6 @@
                                 },
                                 "bidType": "video",
                                 "bidMeta": {
-                                    "adaptercode": "pubmatic"
                                 }
                             }
                         ],
@@ -261,7 +257,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             },
                             {
@@ -275,7 +270,6 @@
                                 },
                                 "bidType": "banner",
                                 "bidMeta": {
-                                    "adaptercode": "appnexus"
                                 }
                             }
                         ],
@@ -303,7 +297,6 @@
                                 "origbidcpm": 0.71,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -333,7 +326,6 @@
                                 "origbidcpm": 0.21,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video"
                                 }
@@ -350,7 +342,6 @@
                                 "origbidcpm": 0.61,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -380,7 +371,6 @@
                                 "origbidcpm": 0.51,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "pubmatic"
                                     },
                                     "type": "video",
                                     "targeting": {
@@ -410,7 +400,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "targetbiddercode": "appnexus",
                                     "type": "banner",
@@ -435,7 +424,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "banner"
                                 }
diff --git a/exchange/exchangetest/passthrough_imp_only.json b/exchange/exchangetest/passthrough_imp_only.json
index bc3d8dd2..a577f73c 100644
--- a/exchange/exchangetest/passthrough_imp_only.json
+++ b/exchange/exchangetest/passthrough_imp_only.json
@@ -145,7 +145,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video",
                                     "passthrough": {
@@ -166,7 +165,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/passthrough_root_and_imp.json b/exchange/exchangetest/passthrough_root_and_imp.json
index 959b934f..d8a05055 100644
--- a/exchange/exchangetest/passthrough_root_and_imp.json
+++ b/exchange/exchangetest/passthrough_root_and_imp.json
@@ -107,7 +107,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video",
                                     "passthrough": {
diff --git a/exchange/exchangetest/passthrough_root_only.json b/exchange/exchangetest/passthrough_root_only.json
index 254b09ad..fe922431 100644
--- a/exchange/exchangetest/passthrough_root_only.json
+++ b/exchange/exchangetest/passthrough_root_only.json
@@ -102,7 +102,6 @@
                             "ext": {
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 },
diff --git a/exchange/exchangetest/request-ext-prebid-filtering.json b/exchange/exchangetest/request-ext-prebid-filtering.json
index 8a82f4cb..26312fbf 100644
--- a/exchange/exchangetest/request-ext-prebid-filtering.json
+++ b/exchange/exchangetest/request-ext-prebid-filtering.json
@@ -175,7 +175,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/request-imp-ext-prebid-filtering.json b/exchange/exchangetest/request-imp-ext-prebid-filtering.json
index 94ac6ec0..8733ef9c 100644
--- a/exchange/exchangetest/request-imp-ext-prebid-filtering.json
+++ b/exchange/exchangetest/request-imp-ext-prebid-filtering.json
@@ -125,7 +125,6 @@
                                 "origbidcpm": 0.3,
                                 "prebid": {
                                     "meta": {
-                                        "adaptercode": "appnexus"
                                     },
                                     "type": "video"
                                 }
diff --git a/exchange/exchangetest/request-multi-bidders-debug-info.json b/exchange/exchangetest/request-multi-bidders-debug-info.json
index 6eeaf58d..254d321f 100644
--- a/exchange/exchangetest/request-multi-bidders-debug-info.json
+++ b/exchange/exchangetest/request-multi-bidders-debug-info.json
@@ -155,7 +155,6 @@
                 "origbidcpm": 12.00,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "targeting": {
                     "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/request-multi-bidders-one-no-resp.json b/exchange/exchangetest/request-multi-bidders-one-no-resp.json
index fc55ebd3..4d54abc2 100644
--- a/exchange/exchangetest/request-multi-bidders-one-no-resp.json
+++ b/exchange/exchangetest/request-multi-bidders-one-no-resp.json
@@ -127,7 +127,6 @@
                 "origbidcpm": 12.00,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "targeting": {
                     "hb_bidder": "appnexus",
diff --git a/exchange/exchangetest/targeting-always-include-deals.json b/exchange/exchangetest/targeting-always-include-deals.json
index 1ffb8088..14521036 100644
--- a/exchange/exchangetest/targeting-always-include-deals.json
+++ b/exchange/exchangetest/targeting-always-include-deals.json
@@ -170,7 +170,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video",
                   "targeting": {
@@ -195,7 +194,6 @@
                 "origbidcpm": 0.40,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video"
                 }
@@ -218,7 +216,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -250,7 +247,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
@@ -268,7 +264,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
diff --git a/exchange/exchangetest/targeting-cache-vast-banner.json b/exchange/exchangetest/targeting-cache-vast-banner.json
index 91fb5817..66f322e4 100644
--- a/exchange/exchangetest/targeting-cache-vast-banner.json
+++ b/exchange/exchangetest/targeting-cache-vast-banner.json
@@ -88,7 +88,6 @@
                 "origbidcpm": 0.01,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "banner",
                   "targeting": {
diff --git a/exchange/exchangetest/targeting-cache-vast.json b/exchange/exchangetest/targeting-cache-vast.json
index 1c7cb636..5e1aca02 100644
--- a/exchange/exchangetest/targeting-cache-vast.json
+++ b/exchange/exchangetest/targeting-cache-vast.json
@@ -89,7 +89,6 @@
                 "origbidcpm": 0.01,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "cache": {
                     "bids": {
diff --git a/exchange/exchangetest/targeting-cache-zero.json b/exchange/exchangetest/targeting-cache-zero.json
index 7f94f73f..ff9672c3 100644
--- a/exchange/exchangetest/targeting-cache-zero.json
+++ b/exchange/exchangetest/targeting-cache-zero.json
@@ -91,7 +91,6 @@
                 "origbidcpm": 0.01,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "cache": {
                     "bids": {
diff --git a/exchange/exchangetest/targeting-mobile.json b/exchange/exchangetest/targeting-mobile.json
index 9cc2b1eb..3ae2a0ae 100644
--- a/exchange/exchangetest/targeting-mobile.json
+++ b/exchange/exchangetest/targeting-mobile.json
@@ -153,7 +153,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video",
                   "targeting": {
@@ -183,7 +182,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -214,7 +212,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
@@ -231,7 +228,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
diff --git a/exchange/exchangetest/targeting-no-winners.json b/exchange/exchangetest/targeting-no-winners.json
index 92526022..e6400d14 100644
--- a/exchange/exchangetest/targeting-no-winners.json
+++ b/exchange/exchangetest/targeting-no-winners.json
@@ -153,7 +153,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video",
                   "targeting": {
@@ -182,7 +181,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -206,7 +204,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
@@ -223,7 +220,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
diff --git a/exchange/exchangetest/targeting-only-winners.json b/exchange/exchangetest/targeting-only-winners.json
index 5e6d43ce..85bb81ed 100644
--- a/exchange/exchangetest/targeting-only-winners.json
+++ b/exchange/exchangetest/targeting-only-winners.json
@@ -153,7 +153,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video"
                 }
@@ -175,7 +174,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -199,7 +197,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
@@ -216,7 +213,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
diff --git a/exchange/exchangetest/targeting-with-winners.json b/exchange/exchangetest/targeting-with-winners.json
index 14ad8ef4..281e95b9 100644
--- a/exchange/exchangetest/targeting-with-winners.json
+++ b/exchange/exchangetest/targeting-with-winners.json
@@ -153,7 +153,6 @@
                 "origbidcpm": 0.51,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "audienceNetwork"
                   },
                   "type": "video",
                   "targeting": {
@@ -182,7 +181,6 @@
                 "origbidcpm": 0.71,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {
@@ -211,7 +209,6 @@
                 "origbidcpm": 0.21,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video"
                 }
@@ -228,7 +225,6 @@
                 "origbidcpm": 0.61,
                 "prebid": {
                   "meta": {
-                    "adaptercode": "appnexus"
                   },
                   "type": "video",
                   "targeting": {