From e8a1425200ac3871549653d3ea227ed36a4e642e Mon Sep 17 00:00:00 2001 From: AdmixerTech <35560933+AdmixerTech@users.noreply.github.com> Date: Thu, 6 May 2021 19:04:25 +0300 Subject: [PATCH] Admixer Bid Adapter: add meta key to response (#6674) --- modules/admixerBidAdapter.js | 4 ++++ test/spec/modules/admixerBidAdapter_spec.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/modules/admixerBidAdapter.js b/modules/admixerBidAdapter.js index 6cf738a0086c..70ea5666e847 100644 --- a/modules/admixerBidAdapter.js +++ b/modules/admixerBidAdapter.js @@ -75,6 +75,10 @@ export const spec = { currency: bidResponse.currency, vastUrl: bidResponse.vastUrl, dealId: bidResponse.dealId, + /** + * currently includes meta.advertiserDomains ; networkId ; advertiserId + */ + meta: bidResponse.meta, }; bidResponses.push(bidResp); }); diff --git a/test/spec/modules/admixerBidAdapter_spec.js b/test/spec/modules/admixerBidAdapter_spec.js index 1321d81d5365..030e98d23f95 100644 --- a/test/spec/modules/admixerBidAdapter_spec.js +++ b/test/spec/modules/admixerBidAdapter_spec.js @@ -103,6 +103,7 @@ describe('AdmixerAdapter', function () { 'netRevenue': false, 'bidId': '5e4e763b6bc60b', 'dealId': 'asd123', + 'meta': {'advertiserId': 123, 'networkId': 123, 'advertiserDomains': ['test.com']} }] } }; @@ -122,6 +123,7 @@ describe('AdmixerAdapter', function () { 'netRevenue': ads[0].netRevenue, 'ttl': ads[0].ttl, 'dealId': ads[0].dealId, + 'meta': {'advertiserId': 123, 'networkId': 123, 'advertiserDomains': ['test.com']} } ];