Skip to content

Commit

Permalink
Adrino Bid Adapter: pass adUnitCode to adserver (prebid#9993)
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Mielcarz <tomasz.mielcarz@adrino.pl>
  • Loading branch information
tmielcarz and Tomasz Mielcarz authored May 25, 2023
1 parent c59dd06 commit ab941a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/adrinoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const spec = {
let bids = [];
for (let i = 0; i < validBidRequests.length; i++) {
let requestData = {
adUnitCode: validBidRequests[i].adUnitCode,
bidId: validBidRequests[i].bidId,
placementHash: validBidRequests[i].params.hash,
userId: validBidRequests[i].userId,
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/adrinoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ describe('adrinoBidAdapter', function () {
expect(result.length).to.equal(1);
expect(result[0].method).to.equal('POST');
expect(result[0].url).to.equal('https://prd-prebid-bidder.adrino.io/bidder/bids/');
expect(result[0].data[0].adUnitCode).to.equal('adunit-code-2');
expect(result[0].data[0].bidId).to.equal('12345678901234');
expect(result[0].data[0].placementHash).to.equal('abcdef123456');
expect(result[0].data[0].referer).to.equal('http://example.com/');
Expand Down Expand Up @@ -135,6 +136,7 @@ describe('adrinoBidAdapter', function () {
expect(result.length).to.equal(1);
expect(result[0].method).to.equal('POST');
expect(result[0].url).to.equal('https://stg-prebid-bidder.adrino.io/bidder/bids/');
expect(result[0].data[0].adUnitCode).to.equal('adunit-code');
expect(result[0].data[0].bidId).to.equal('12345678901234');
expect(result[0].data[0].placementHash).to.equal('abcdef123456');
expect(result[0].data[0].referer).to.equal('http://example.com/');
Expand All @@ -154,6 +156,7 @@ describe('adrinoBidAdapter', function () {
expect(result.length).to.equal(1);
expect(result[0].method).to.equal('POST');
expect(result[0].url).to.equal('https://prd-prebid-bidder.adrino.io/bidder/bids/');
expect(result[0].data[0].adUnitCode).to.equal('adunit-code');
expect(result[0].data[0].bidId).to.equal('12345678901234');
expect(result[0].data[0].placementHash).to.equal('abcdef123456');
expect(result[0].data[0].referer).to.equal('http://example.com/');
Expand All @@ -173,6 +176,7 @@ describe('adrinoBidAdapter', function () {
expect(result.length).to.equal(1);
expect(result[0].method).to.equal('POST');
expect(result[0].url).to.equal('https://prd-prebid-bidder.adrino.io/bidder/bids/');
expect(result[0].data[0].adUnitCode).to.equal('adunit-code');
expect(result[0].data[0].bidId).to.equal('12345678901234');
expect(result[0].data[0].placementHash).to.equal('abcdef123456');
expect(result[0].data[0].referer).to.equal('http://example.com/');
Expand Down

0 comments on commit ab941a4

Please sign in to comment.