Skip to content

Commit

Permalink
LuponMedia BidAdapter: Add adomain to bidResponse (#12604)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
adxpremium and Lupon Media authored Dec 27, 2024
1 parent 3bfc452 commit 08a8481
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion modules/luponmediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
13 changes: 12 additions & 1 deletion test/spec/modules/luponmediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ describe('luponmediaBidAdapter', function () {
'price': 0.43,
'adm': '<a href="https://novi.ba" target="_blank" style="position:absolute; width:300px; height:250px; z-index:5;"> </a><iframe src="https://lupon.media/vijestiba/300x250new/index.html" height="250" width="300" scrolling="no" frameborder="0"></iframe>',
'adid': '56380110',
'adomain': [
'mi.betrivers.com'
],
'cid': '44724710',
'crid': '443801010',
'w': 300,
Expand Down Expand Up @@ -232,7 +235,15 @@ describe('luponmediaBidAdapter', function () {
'netRevenue': false,
'ttl': 300,
'referrer': '',
'ad': '<a href="https://novi.ba" target="_blank" style="position:absolute; width:300px; height:250px; z-index:5;"> </a><iframe src="https://lupon.media/vijestiba/300x250new/index.html" height="250" width="300" scrolling="no" frameborder="0"></iframe>'
'ad': '<a href="https://novi.ba" target="_blank" style="position:absolute; width:300px; height:250px; z-index:5;"> </a><iframe src="https://lupon.media/vijestiba/300x250new/index.html" height="250" width="300" scrolling="no" frameborder="0"></iframe>',
'adomain': [
'mi.betrivers.com'
],
'meta': {
'advertiserDomains': [
'mi.betrivers.com'
]
}
}
];

Expand Down

0 comments on commit 08a8481

Please sign in to comment.