Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mediaimpact Bid Adapter: move advertiserDomains, primaryCatId, secondaryCatIds to ad.meta #11637

Merged
merged 10 commits into from
Jun 3, 2024
10 changes: 5 additions & 5 deletions modules/mediaimpactBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ export const spec = {
creativeId: ad.creativeId,
netRevenue: ad.netRevenue,
currency: ad.currency,
winNotification: ad.winNotification
}
winNotification: ad.winNotification,
meta: {}
};

bidObject.meta = {};
if (ad.adomain && ad.adomain.length > 0) {
bidObject.meta.advertiserDomains = ad.adomain;
if (ad.meta) {
bidObject.meta = ad.meta;
}

return bidObject;
Expand Down
18 changes: 9 additions & 9 deletions test/spec/modules/mediaimpactBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ describe('MediaimpactAdapter', function () {
'width': 300,
'height': 250,
'creativeId': '8:123456',
'adomain': [
'test.domain'
],
'meta': {
'advertiserDomains': ['test.domain']
},
'syncs': [
{'type': 'image', 'url': 'https://test.domain/tracker_1.gif'},
{'type': 'image', 'url': 'https://test.domain/tracker_2.gif'},
Expand Down Expand Up @@ -200,9 +200,9 @@ describe('MediaimpactAdapter', function () {
'cpm': 0.01,
'currency': 'USD',
'netRevenue': true,
'adomain': [
'test.domain'
],
'meta': {
'advertiserDomains': ['test.domain']
},
};

it('fill ad for response', function () {
Expand Down Expand Up @@ -263,9 +263,9 @@ describe('MediaimpactAdapter', function () {
'width': 300,
'height': 250,
'creativeId': '8:123456',
'adomain': [
'test.domain'
],
'meta': {
'advertiserDomains': ['test.domain']
},
'syncs': [
{'type': 'image', 'link': 'https://test.domain/tracker_1.gif'},
{'type': 'image', 'link': 'https://test.domain/tracker_2.gif'},
Expand Down