Skip to content

Commit 2b355bd

Browse files
authored
Deleted the global.site.cattax field as it is not defined in openrtb 2.5 (#9810)
1 parent bab720d commit 2b355bd

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

modules/neuwoRtdProvider.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import CONSTANTS from '../src/constants.json';
77

88
export const DATA_PROVIDER = 'neuwo.ai';
99
const SEGTAX_IAB = 6 // IAB - Content Taxonomy version 2
10-
const CATTAX_IAB = 6 // IAB Tech Lab Content Taxonomy 2.2
1110
const RESPONSE_IAB_TIER_1 = 'marketing_categories.iab_tier_1'
1211
const RESPONSE_IAB_TIER_2 = 'marketing_categories.iab_tier_2'
1312

@@ -106,7 +105,6 @@ export function injectTopics(topics, bidsConfig) {
106105

107106
// upgrade category taxonomy to IAB 2.2, inject result to page categories
108107
if (segment.length > 0) {
109-
addFragment(bidsConfig.ortb2Fragments.global, 'site.cattax', CATTAX_IAB)
110108
addFragment(bidsConfig.ortb2Fragments.global, 'site.pagecat', segment.map(s => s.id))
111109
}
112110

test/spec/modules/neuwoRtdProvider_spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ describe('neuwoRtdProvider', function () {
6060
neuwo.injectTopics(topics, bidsConfig, () => { })
6161
expect(bidsConfig.ortb2Fragments.global.site.content.data[0].name, 'name of first content data object').to.equal(neuwo.DATA_PROVIDER)
6262
expect(bidsConfig.ortb2Fragments.global.site.content.data[0].segment[0].id, 'id of first segment in content.data').to.equal(TAX_ID)
63-
expect(bidsConfig.ortb2Fragments.global.site.cattax, 'category taxonomy code for pagecat').to.equal(6) // CATTAX_IAB
6463
expect(bidsConfig.ortb2Fragments.global.site.pagecat[0], 'category taxonomy code for pagecat').to.equal(TAX_ID)
6564
})
6665

0 commit comments

Comments
 (0)