From 08a8481a63f24fbfcabfb8d590c81036b18804c2 Mon Sep 17 00:00:00 2001 From: adxpremium <55161519+adxpremium@users.noreply.github.com> Date: Fri, 27 Dec 2024 19:49:47 +0100 Subject: [PATCH] LuponMedia BidAdapter: Add adomain to bidResponse (#12604) * Fix (9.0 fixes): Remove discontinued fpd.context, remove unused onBidWon event * Update luponmediaBidAdapter.js | adomain Add adomain to bidResponse * Update luponmediaBidAdapter.js Add meta field * Update luponmediaBidAdapter.js Fix eslint trailing spaces * Update luponmediaBidAdapter_spec.js add new fields to the test spec --------- Co-authored-by: Lupon Media --- modules/luponmediaBidAdapter.js | 6 +++++- test/spec/modules/luponmediaBidAdapter_spec.js | 13 ++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/modules/luponmediaBidAdapter.js b/modules/luponmediaBidAdapter.js index 63435437967..3dab4524db1 100755 --- a/modules/luponmediaBidAdapter.js +++ b/modules/luponmediaBidAdapter.js @@ -172,7 +172,11 @@ export const spec = { netRevenue: false, ttl: 300, referrer: parsedReferrer, - ad: bid.adm + ad: bid.adm, + adomain: bid.adomain || [], + meta: { + advertiserDomains: bid && bid.adomain ? bid.adomain : [] + } }; bidResponses.push(newBid); diff --git a/test/spec/modules/luponmediaBidAdapter_spec.js b/test/spec/modules/luponmediaBidAdapter_spec.js index 664c888b45e..3d9be5a40bf 100755 --- a/test/spec/modules/luponmediaBidAdapter_spec.js +++ b/test/spec/modules/luponmediaBidAdapter_spec.js @@ -188,6 +188,9 @@ describe('luponmediaBidAdapter', function () { 'price': 0.43, 'adm': ' ', 'adid': '56380110', + 'adomain': [ + 'mi.betrivers.com' + ], 'cid': '44724710', 'crid': '443801010', 'w': 300, @@ -232,7 +235,15 @@ describe('luponmediaBidAdapter', function () { 'netRevenue': false, 'ttl': 300, 'referrer': '', - 'ad': ' ' + 'ad': ' ', + 'adomain': [ + 'mi.betrivers.com' + ], + 'meta': { + 'advertiserDomains': [ + 'mi.betrivers.com' + ] + } } ];