Skip to content

Commit

Permalink
Qwarry Bid Adapter: meta.advertiserDomains added (#6883)
Browse files Browse the repository at this point in the history
* qwarry bid adapter

* formatting fixes

* fix tests for qwarry

* qwarry bid adapter

* add header for qwarry bid adapter

* bid requests fix

* fix tests

* response fix

* fix tests for Qwarry bid adapter

* add pos parameter to qwarry bid adapter

* qwarryBidAdapter onBidWon hotfix

* Change bidder endpoint url for Qwarry adapter

* add referer JS detection

* use bidderRequest.refererInfo

* fix tests

* GDPR consent string support

* NPE fix

* gdpr value added

* merge master

* gdpr value added

* qwarry bid adapter: add tests

* Qwarry bid adapter: remove gdpr field from request

* qwarry bid adapter: add sizes

* qwarry bid adapter: add sizes

* added schain

* added test for schain

* added supporting of advertiserDomains

* qwarry bid adapter: added meta.advertiserDomains

Co-authored-by: Artem Kostritsa <[email protected]>
Co-authored-by: Alexander Kascheev <[email protected]>
Co-authored-by: Ekaterina Legostaeva <[email protected]>
  • Loading branch information
4 people authored May 31, 2021
1 parent b5f15cf commit 1fe48ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions modules/qwarryBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export const spec = {
bid.vastXml = bid.ad;
}

bid.meta = {};
bid.meta.advertiserDomains = bid.adomain || [];

bids.push(bid);
})

Expand Down
10 changes: 8 additions & 2 deletions test/spec/modules/qwarryBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ const BIDDER_BANNER_RESPONSE = {
'creativeId': 1,
'netRevenue': true,
'winUrl': 'http://test.com',
'format': 'banner'
'format': 'banner',
'adomain': ['test.com']
}]
}

Expand All @@ -49,7 +50,8 @@ const BIDDER_VIDEO_RESPONSE = {
'creativeId': 2,
'netRevenue': true,
'winUrl': 'http://test.com',
'format': 'video'
'format': 'video',
'adomain': ['test.com']
}]
}

Expand Down Expand Up @@ -119,6 +121,8 @@ describe('qwarryBidAdapter', function () {
expect(result[0]).to.have.property('netRevenue').equal(true)
expect(result[0]).to.have.property('winUrl').equal('http://test.com')
expect(result[0]).to.have.property('format').equal('banner')
expect(result[0].meta).to.exist.property('advertiserDomains')
expect(result[0].meta).to.have.property('advertiserDomains').lengthOf(1)
})

it('handles video request : should get correct bid response', function () {
Expand All @@ -136,6 +140,8 @@ describe('qwarryBidAdapter', function () {
expect(result[0]).to.have.property('winUrl').equal('http://test.com')
expect(result[0]).to.have.property('format').equal('video')
expect(result[0]).to.have.property('vastXml').equal('<xml>vast</xml>')
expect(result[0].meta).to.exist.property('advertiserDomains')
expect(result[0].meta).to.have.property('advertiserDomains').lengthOf(1)
})

it('handles no bid response : should get empty array', function () {
Expand Down

0 comments on commit 1fe48ac

Please sign in to comment.