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

MinuteMedia BidAdapter : add support for gpp #11052

Merged
merged 76 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
3cfdf9d
add Rise adapter
noamtzuberi Jan 3, 2021
923e646
fixes
noamtzuberi Jan 3, 2021
499f36f
change param isOrg to org
noamtzuberi Jan 5, 2021
d33a8af
Rise adapter
noamtzuberi Jan 5, 2021
b2cdd97
change email for rise
noamtzuberi Jan 5, 2021
b8a140c
change email for rise
noamtzuberi Jan 5, 2021
3ce6a3b
fix circle failed
noamtzuberi Jan 5, 2021
dd10c25
bump
noamtzuberi Jan 5, 2021
464d2b7
bump
noamtzuberi Jan 5, 2021
1c52066
bump
noamtzuberi Jan 5, 2021
2b1fad5
remove space
noamtzuberi Jan 6, 2021
b08dd59
Merge branch 'master' of https://github.com/streamrail/Prebid.js
noamtzu Jul 6, 2021
924bb15
Upgrade Rise adapter to 5.0
noamtzu Jul 6, 2021
0f9e730
Merge branch 'prebid:master' into master
noamtzu Jul 13, 2021
87c6a56
Merge branch 'prebid:master' into master
noamtzu Jul 20, 2021
e8e613b
Merge branch 'master' of https://github.com/streamrail/Prebid.js
noamtzu Aug 18, 2021
1ba7048
Merge branch 'master' of github.com:prebid/Prebid.js
Aug 23, 2021
a032702
Merge branch 'prebid:master' into master
noamtzu Aug 27, 2021
a5e5954
Merge branch 'prebid:master' into master
noamtzu Sep 5, 2021
bc2dafd
Merge branch 'prebid:master' into master
noamtzu Sep 12, 2021
75344c1
Merge branch 'prebid:master' into master
noamtzu Sep 19, 2021
2e17e14
Merge branch 'prebid:master' into master
noamtzu Nov 21, 2021
03099f3
Merge branch 'prebid:master' into master
noamtzu Jan 13, 2022
5c30696
Merge branch 'prebid:master' into master
noamtzu Jan 17, 2022
bc1d897
Merge branch 'prebid:master' into master
noamtzu Jan 23, 2022
3ed7867
Merge branch 'prebid:master' into master
noamtzu Jan 27, 2022
9d8d6af
Merge branch 'prebid:master' into master
noamtzu Jan 30, 2022
12ef7fb
Merge branch 'prebid:master' into master
noamtzu Feb 10, 2022
a4bfb4f
Merge branch 'prebid:master' into master
OronW Feb 17, 2022
901d081
Merge branch 'prebid:master' into master
noamtzu Feb 21, 2022
33be3da
Merge branch 'prebid:master' into master
noamtzu Mar 7, 2022
0305688
Merge branch 'prebid:master' into master
noamtzu Mar 29, 2022
968253b
Merge branch 'prebid:master' into master
noamtzu Apr 3, 2022
208a3ef
Merge branch 'prebid:master' into master
noamtzu Apr 17, 2022
756ccf3
Merge branch 'prebid:master' into master
noamtzu May 12, 2022
dc33d03
Merge branch 'prebid:master' into master
noamtzu May 22, 2022
e27c291
Merge branch 'prebid:master' into master
noamtzu May 25, 2022
4fc0639
Merge branch 'prebid:master' into master
noamtzu Jun 8, 2022
4bbbbb3
Merge branch 'prebid:master' into master
noamtzu Jun 9, 2022
8e9318d
Merge branch 'prebid:master' into master
lasloche Jun 14, 2022
27e9a02
Merge branch 'prebid:master' into master
noamtzu Aug 3, 2022
a6489ff
Merge branch 'prebid:master' into master
innay Dec 12, 2022
7cdb4e5
added isWrapper param
innay Dec 12, 2022
ed9a426
Merge pull request #20 from streamrail/IVP-3999
innay Dec 12, 2022
79acf21
addes is_wrapper parameter to documentation
innay Dec 28, 2022
36d0c50
added is_wrapper to test
innay Dec 28, 2022
3b8885e
removed isWrapper
innay Dec 28, 2022
4c4b4f9
Merge pull request #21 from streamrail/IVP-3999
innay Dec 28, 2022
53db894
Merge branch 'prebid:master' into master
noamtzu Apr 17, 2023
c25259c
Merge branch 'prebid:master' into master
YakirLavi Apr 20, 2023
63bfe48
Rise Bid Adapter: support Coppa param (#24)
YakirLavi Apr 20, 2023
66c4e7b
MinuteMedia Bid Adapter: support Coppa param (#25)
YakirLavi Apr 20, 2023
6079b08
Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26)
YakirLavi Apr 20, 2023
4ba6846
bump
Apr 20, 2023
c354d7f
Merge branch 'prebid:master' into master
OronW Apr 30, 2023
b42186b
update coppa fetch
May 2, 2023
db9ede3
setting coppa param update
May 2, 2023
c587ad6
update Coppa tests
May 4, 2023
55f35f7
update test naming
May 4, 2023
8c70c21
Merge branch 'prebid:master' into master
YakirLavi May 22, 2023
efe1ede
Merge branch 'prebid:master' into master
YakirLavi May 24, 2023
589f0ec
Rise Bid Adapter: support plcmt and sua (#27)
YakirLavi May 24, 2023
6e03ea0
Merge branch 'prebid:master' into master
YakirLavi Jun 26, 2023
ac59f24
Merge branch 'prebid:master' into master
YakirLavi Jul 2, 2023
cab1f79
Merge branch 'prebid:master' into master
YakirLavi Jul 10, 2023
b8b69f8
update minuteMediaBidAdapter - support missing params (#29)
YakirLavi Jul 10, 2023
fe6030b
Merge branch 'prebid:master' into master
YakirLavi Aug 8, 2023
7e6e17d
Merge branch 'prebid:master' into master
YakirLavi Nov 1, 2023
0a36c16
Merge branch 'prebid:master' into master
YakirLavi Nov 14, 2023
843dd8a
Merge branch 'prebid:master' into master
noamtzu Nov 29, 2023
79fabb0
Merge branch 'master' of https://github.com/streamrail/Prebid.js
noamtzu Jan 31, 2024
9acd0b9
support gpp for minutemedia adapter
Feb 5, 2024
4abaf0a
Merge branch 'master' of https://github.com/streamrail/Prebid.js
Feb 5, 2024
2b40273
Merge branch 'master' into mm-gpp
Feb 5, 2024
b59a265
removed spaces
Feb 5, 2024
312b876
removed extra character
Feb 5, 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
8 changes: 8 additions & 0 deletions modules/minutemediaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,14 @@ function generateGeneralParams(generalObject, bidderRequest) {
generalParams.gdpr_consent = bidderRequest.gdprConsent.consentString;
}

if (bidderRequest.gppConsent) {
generalParams.gpp = bidderRequest.gppConsent.gppString;
generalParams.gpp_sid = bidderRequest.gppConsent.applicableSections;
} else if (bidderRequest.ortb2?.regs?.gpp) {
generalParams.gpp = bidderRequest.ortb2.regs.gpp;
generalParams.gpp_sid = bidderRequest.ortb2.regs.gpp_sid;
}

if (generalBidParams.ifa) {
generalParams.ifa = generalBidParams.ifa;
}
Expand Down
16 changes: 16 additions & 0 deletions test/spec/modules/minutemediaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,22 @@ describe('minutemediaAdapter', function () {
expect(request.data.params).to.have.property('gdpr_consent', 'test-consent-string');
});

it('should not send the gpp param if gppConsent is false in the bidRequest', function () {
const bidderRequestWithGPP = Object.assign({gppConsent: false}, bidderRequest);
const request = spec.buildRequests(bidRequests, bidderRequestWithGPP);
expect(request.data.params).to.be.an('object');
expect(request.data.params).to.not.have.property('gpp');
expect(request.data.params).to.not.have.property('gpp_sid');
});

it('should send the gpp param if gppConsent is true in the bidRequest', function () {
const bidderRequestWithGPP = Object.assign({gppConsent: {gppString: 'test-consent-string', applicableSections: [7]}}, bidderRequest);
const request = spec.buildRequests(bidRequests, bidderRequestWithGPP);
expect(request.data.params).to.be.an('object');
expect(request.data.params).to.have.property('gpp', 'test-consent-string');
expect(request.data.params.gpp_sid[0]).to.be.equal(7);
});

it('should have schain param if it is available in the bidRequest', () => {
const schain = {
ver: '1.0',
Expand Down