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

NextMillenium Bid Adapter : added support for the keywords parameter openrtb #11018

Merged
merged 26 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7fc2b34
added support for gpp consent string
mhlm Nov 22, 2023
72e2101
changed test for nextMillenniumBidAdapter
mhlm Nov 23, 2023
d897b6b
Merge pull request #4 from nextmillenniummedia/PB-1373-feature/add-su…
mhlm Nov 23, 2023
93f578e
added some tests
mhlm Nov 24, 2023
bd51f48
Merge branch 'master' of github.com:nextmillenniummedia/Prebid.js
mhlm Nov 24, 2023
97396e2
added site.pagecat, site.content.cat and site.content.language to req…
mhlm Nov 25, 2023
a108dad
lint fix
mhlm Nov 25, 2023
b6865e7
formated code
mhlm Nov 25, 2023
763721a
formated code
mhlm Nov 25, 2023
03ffd76
formated code
mhlm Nov 27, 2023
9b7c16b
pachage-lock with prebid
mhlm Dec 1, 2023
281dd54
pachage-lock with prebid
mhlm Dec 1, 2023
d33f078
formatted code
mhlm Dec 1, 2023
c54ffca
Merge branch 'prebid:master' into master
mhlm Dec 4, 2023
28ccc93
added device.sua, user.eids
mhlm Dec 9, 2023
66f0bfb
Merge branch 'prebid:master' into master
mhlm Dec 9, 2023
ca85907
formatted
mhlm Dec 11, 2023
5577fdf
Merge branch 'master' of github.com:nextmillenniummedia/Prebid.js
mhlm Dec 11, 2023
6c1be2d
fixed tests
mhlm Dec 11, 2023
19b4db5
fixed bug functio getSua
mhlm Dec 11, 2023
ade3d69
Merge branch 'prebid:master' into master
mhlm Dec 12, 2023
f0df78e
Merge branch 'prebid:master' into master
mhlm Dec 22, 2023
2199ee2
Merge branch 'prebid:master' into master
mhlm Jan 31, 2024
a0b3e22
added support keywords
mhlm Jan 31, 2024
8063355
added support keywords - code style
mhlm Jan 31, 2024
e1159eb
changed test for otrb parameters
mhlm Feb 4, 2024
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
5 changes: 4 additions & 1 deletion modules/nextMillenniumBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const ALLOWED_ORTB2_PARAMETERS = [
'site.content.cat',
'site.content.language',
'device.sua',
'site.keywords',
'site.content.keywords',
'user.keywords',
];

const sendingDataStatistic = initSendingDataStatistic();
Expand Down Expand Up @@ -200,7 +203,7 @@ export const spec = {
responses.forEach(response => {
if (syncOptions.pixelEnabled) setPixelImages(response);
if (syncOptions.iframeEnabled) setPixelIframes(response);
})
});
}

if (!pixels.length) {
Expand Down
22 changes: 22 additions & 0 deletions test/spec/modules/nextMillenniumBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,28 @@ describe('nextMillenniumBidAdapterTests', () => {
}},
},

{
title: 'site.keywords, site.content.keywords and user.keywords',
data: {
postBody: {},
ortb2: {
user: {keywords: 'key7,key8,key9'},
site: {
keywords: 'key1,key2,key3',
content: {keywords: 'key4,key5,key6'},
},
},
},

expected: {
user: {keywords: 'key7,key8,key9'},
site: {
keywords: 'key1,key2,key3',
content: {keywords: 'key4,key5,key6'},
},
},
},

{
title: 'only site.content.language',
data: {
Expand Down