Skip to content

Commit

Permalink
SmartytechBidAdapter: Add meta
Browse files Browse the repository at this point in the history
  • Loading branch information
koshe committed Jun 17, 2024
1 parent fc9915a commit 4d9cac2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions modules/mediaimpactBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ export const spec = {
netRevenue: ad.netRevenue,
currency: ad.currency,
winNotification: ad.winNotification,
meta: {}
};

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

return bidObject;
Expand Down
9 changes: 7 additions & 2 deletions modules/smartytechBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,19 @@ export const spec = {
creativeId: response.creativeId,
netRevenue: true,
currency: response.currency,
mediaType: BANNER
}
mediaType: BANNER,
meta: {}
};

if (response.mediaType === VIDEO) {
bidObject.vastXml = response.ad;
bidObject.mediaType = VIDEO;
}

if (response.meta) {
bidObject.meta = response.meta;
}

return bidObject;
},

Expand Down

0 comments on commit 4d9cac2

Please sign in to comment.