Skip to content

Commit

Permalink
Glomex Bid Adapter: handle meta.advertiserDomains (#6984)
Browse files Browse the repository at this point in the history
* Implement glomexBidAdapter

* Implement glomexBidAdapter with tests and docs

* Expose "meta.advertiserDomains" for prebid 5.0

Co-authored-by: Julian Hollmann <julian.hollmann@gmail.com>
Co-authored-by: Herb Dombrowski <32455795+hrb-d@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 9, 2021
1 parent 7ab3d15 commit 7251c91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion modules/glomexBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ export const spec = {
currency: matchedBid.currency,
netRevenue: matchedBid.netRevenue,
ttl: matchedBid.ttl,
ad: matchedBid.ad
ad: matchedBid.ad,
meta: {
advertiserDomains: matchedBid.adomain ? matchedBid.adomain : []
}
}

bidResponses.push(bidResponse)
Expand Down
4 changes: 3 additions & 1 deletion test/spec/modules/glomexBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const RESPONSE = {
currency: 'EUR',
netRevenue: true,
ttl: 300,
ad: '<ad />'
ad: '<ad />',
adomain: ['glomex.com']
}
]
}
Expand Down Expand Up @@ -128,6 +129,7 @@ describe('glomexBidAdapter', function () {
expect(result[0].netRevenue).to.equal(true)
expect(result[0].ttl).to.equal(300)
expect(result[0].ad).to.equal('<ad />')
expect(result[0].meta.advertiserDomains).to.deep.equal(['glomex.com'])
})
})
})

0 comments on commit 7251c91

Please sign in to comment.