Skip to content

Commit

Permalink
GMOSSP BidAdapter: add adomain support (#6877)
Browse files Browse the repository at this point in the history
  • Loading branch information
arasaki-yuki authored May 31, 2021
1 parent bf610f6 commit e17f231
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/gmosspBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ export const spec = {
ttl: res.ttl || 300
};

if (res.adomains) {
utils.deepSetValue(bid, 'meta.advertiserDomains', Array.isArray(res.adomains) ? res.adomains : [res.adomains]);
}

return [bid];
},

Expand Down
8 changes: 8 additions & 0 deletions test/spec/modules/gmosspBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ describe('GmosspAdapter', function () {
price: 20,
w: 300,
h: 250,
adomains: [
'test.com'
],
ad: '<div class="gmossp"></div>',
creativeId: '985ec572b32be309.76973017',
cur: 'JPY',
Expand All @@ -126,6 +129,11 @@ describe('GmosspAdapter', function () {
currency: 'JPY',
width: 300,
height: 250,
meta: {
advertiserDomains: [
'test.com'
]
},
ad: '<div class="gmossp"></div>',
creativeId: '985ec572b32be309.76973017',
netRevenue: true,
Expand Down

0 comments on commit e17f231

Please sign in to comment.