Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rubicon Bid Adapter: segtax values for IAB expanded #7258

Merged
merged 1 commit into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/rubiconBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ function applyFPD(bidRequest, mediaType, data) {

let fpd = utils.mergeDeep({}, config.getConfig('ortb2') || {}, BID_FPD);
let impData = utils.deepAccess(bidRequest.ortb2Imp, 'ext.data') || {};
const SEGTAX = {user: [4], site: [1, 2]};
const SEGTAX = {user: [4], site: [1, 2, 5, 6]};
const MAP = {user: 'tg_v.', site: 'tg_i.', adserver: 'tg_i.dfp_ad_unit_code', pbadslot: 'tg_i.pbadslot', keywords: 'kw'};
const validate = function(prop, key, parentName) {
if (key === 'data' && Array.isArray(prop)) {
Expand Down
21 changes: 17 additions & 4 deletions test/spec/modules/rubiconBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -884,14 +884,27 @@ describe('the rubicon adapter', function () {
'ext': { 'segtax': 1 },
'segment': [
{ 'id': '987' }
]
}, {
'name': 'www.dataprovider1.com',
'ext': { 'segtax': 2 },
'segment': [
{ 'id': '432' }
]
}, {
'name': 'www.dataprovider1.com',
'ext': { 'segtax': 5 },
'segment': [
{ 'id': '55' }
]
}, {
'name': 'www.dataprovider1.com',
'ext': { 'segtax': 2 },
'ext': { 'segtax': 6 },
'segment': [
{ 'id': '432' }
{ 'id': '66' }
]
}]
}
]
}
};
const user = {
Expand Down Expand Up @@ -932,7 +945,7 @@ describe('the rubicon adapter', function () {
'tg_v.gender': 'M',
'tg_v.age': '40',
'tg_v.iab': '687,123',
'tg_i.iab': '987,432',
'tg_i.iab': '987,432,55,66',
'tg_v.yob': '1984',
'tg_i.rating': '4-star,5-star',
'tg_i.page': 'home',
Expand Down