Skip to content

Commit

Permalink
updated iabCat
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym Pavliv authored and Maksym Pavliv committed Sep 12, 2023
1 parent 3d20ead commit 583980f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions modules/axisBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ function isBidResponseValid(bid) {
function getPlacementReqData(bid) {
const { params, bidId, mediaTypes } = bid;
const schain = bid.schain || {};
const { integration, token, iabCat } = params;
const { integration, token } = params;
const bidfloor = getBidFloor(bid);

const placement = {
integration,
token,
iabCat,
bidId,
schain,
bidfloor
Expand Down Expand Up @@ -150,10 +149,11 @@ export const spec = {
host,
page,
placements,
iabCat: deepAccess(bidderRequest, 'ortb2.site.cat'),
coppa: deepAccess(bidderRequest, 'ortb2.regs.coppa') ? 1 : 0,
ccpa: bidderRequest.uspConsent || undefined,
gdpr: bidderRequest.gdprConsent || undefined,
tmax: bidderRequest.timeout,
tmax: bidderRequest.timeout || 3000,
};

const len = validBidRequests.length;
Expand Down
9 changes: 3 additions & 6 deletions modules/axisBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ Axis bid adapter supports Banner, Video (instream and outstream) and Native.
bidder: 'axis',
params: {
integration: '000000',
token: '000000',
iabCat: ['IAB1-1', 'IAB3-1', 'IAB4-3']
token: '000000'
}
}
]
Expand All @@ -49,8 +48,7 @@ Axis bid adapter supports Banner, Video (instream and outstream) and Native.
bidder: 'axis',
params: {
integration: '000000',
token: '000000',
iabCat: ['IAB1-1', 'IAB3-1', 'IAB4-3']
token: '000000'
}
}
]
Expand All @@ -76,8 +74,7 @@ Axis bid adapter supports Banner, Video (instream and outstream) and Native.
bidder: 'axis',
params: {
integration: '000000',
token: '000000',
iabCat: ['IAB1-1', 'IAB3-1', 'IAB4-3']
token: '000000'
}
}
]
Expand Down
17 changes: 10 additions & 7 deletions test/spec/modules/axisBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ describe('AxisBidAdapter', function () {
},
params: {
integration: '000000',
token: '000000',
iabCat: ['IAB1-1', 'IAB3-1', 'IAB4-3']
token: '000000'
}
},
{
Expand All @@ -35,8 +34,7 @@ describe('AxisBidAdapter', function () {
},
params: {
integration: '000000',
token: '000000',
iabCat: ['IAB1-1', 'IAB3-1', 'IAB4-3']
token: '000000'
}
},
{
Expand All @@ -60,8 +58,7 @@ describe('AxisBidAdapter', function () {
},
params: {
integration: '000000',
token: '000000',
iabCat: ['IAB1-1', 'IAB3-1', 'IAB4-3']
token: '000000'
}
}
];
Expand All @@ -84,6 +81,11 @@ describe('AxisBidAdapter', function () {
gdprConsent: 'COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA.IFoEUQQgAIQwgIwQABAEAAAAOIAACAIAAAAQAIAgEAACEAAAAAgAQBAAAAAAAGBAAgAAAAAAAFAAECAAAgAAQARAEQAAAAAJAAIAAgAAAYQEAAAQmAgBC3ZAYzUw',
refererInfo: {
referer: 'https://test.com'
},
ortb2: {
site: {
cat: ['IAB24']
}
}
};

Expand Down Expand Up @@ -124,6 +126,7 @@ describe('AxisBidAdapter', function () {
'host',
'page',
'placements',
'iabCat',
'coppa',
'ccpa',
'gdpr',
Expand All @@ -139,6 +142,7 @@ describe('AxisBidAdapter', function () {
expect(data.gdpr).to.be.a('string');
expect(data.ccpa).to.be.a('string');
expect(data.tmax).to.be.a('number');
expect(data.iabCat).to.have.lengthOf(1);
expect(data.placements).to.have.lengthOf(3);
});

Expand All @@ -150,7 +154,6 @@ describe('AxisBidAdapter', function () {
expect(placement.bidId).to.be.a('string');
expect(placement.integration).to.be.a('string');
expect(placement.token).to.be.a('string');
expect(placement.iabCat).to.be.an('array');
expect(placement.schain).to.be.an('object');
expect(placement.bidfloor).to.exist.and.to.equal(0);

Expand Down

0 comments on commit 583980f

Please sign in to comment.