Skip to content

Commit

Permalink
Alkimi Bid Adapter : insert keywords into bid-request param (#10511)
Browse files Browse the repository at this point in the history
* Alkimi bid adapter

* Alkimi bid adapter

* Alkimi bid adapter

* alkimi adapter

* onBidWon change

* sign utils

* auction ID as bid request ID

* unit test fixes

* change maintainer info

* Updated the ad unit params

* features support added

* transfer adUnitCode

* transfer adUnitCode: test

* AlkimiBidAdapter getFloor() using

* ALK-504
Multi size ad slot support

* ALK-504
Multi size ad slot support

* Support new OpenRTB parameters

* Support new oRTB2 parameters

* remove pos parameter

* Add gvl_id into Alkimi adapter

* Insert keywords into bid-request param

---------

Co-authored-by: Alexander <[email protected]>
Co-authored-by: Alexander Bogdanov <[email protected]>
Co-authored-by: Alexander Bogdanov <[email protected]>
Co-authored-by: motors <[email protected]>
Co-authored-by: mihanikw2g <[email protected]>
Co-authored-by: Nikulin Mikhail <[email protected]>
Co-authored-by: mik <[email protected]>
  • Loading branch information
8 people committed Sep 21, 2023
1 parent 549a85c commit 308b48f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/alkimiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export const spec = {
h: screen.height
},
ortb2: {
site: {
keywords: bidderRequest.ortb2?.site?.keywords
},
at: bidderRequest.ortb2?.at,
bcat: bidderRequest.ortb2?.bcat,
wseat: bidderRequest.ortb2?.wseat
Expand Down
11 changes: 10 additions & 1 deletion test/spec/modules/alkimiBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,15 @@ describe('alkimiBidAdapter', function () {
vendorData: {},
gdprApplies: true
},
uspConsent: 'uspConsent'
uspConsent: 'uspConsent',
ortb2: {
site: {
keywords: 'test1, test2'
},
at: 2,
bcat: ['BSW1', 'BSW2'],
wseat: ['16', '165']
}
}
const bidderRequest = spec.buildRequests(bidRequests, requestData)

Expand All @@ -138,6 +146,7 @@ describe('alkimiBidAdapter', function () {
expect(bidderRequest.data.signRequest.randomUUID).to.equal(undefined)
expect(bidderRequest.data.bidIds).to.deep.contains('456')
expect(bidderRequest.data.signature).to.equal(undefined)
expect(bidderRequest.data.ortb2).to.deep.contains({ at: 2, wseat: ['16', '165'], bcat: ['BSW1', 'BSW2'], site: { keywords: 'test1, test2' }, })
expect(bidderRequest.options.customHeaders).to.deep.equal({ 'Rtb-Direct': true })
expect(bidderRequest.options.contentType).to.equal('application/json')
expect(bidderRequest.url).to.equal(ENDPOINT)
Expand Down

0 comments on commit 308b48f

Please sign in to comment.