Skip to content

Commit

Permalink
MinuteMedia BidAdapter : add support for gpp (#11052)
Browse files Browse the repository at this point in the history
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* added isWrapper param

* addes is_wrapper parameter to documentation

* added is_wrapper to test

* removed isWrapper

* Rise Bid Adapter: support Coppa param (#24)

* MinuteMedia Bid Adapter: support Coppa param (#25)

* Revert "MinuteMedia Bid Adapter: support Coppa param (#25)" (#26)

This reverts commit 66c4e7b.

* bump

* update coppa fetch

* setting coppa param update

* update Coppa tests

* update test naming

* Rise Bid Adapter: support plcmt and sua (#27)

* update minuteMediaBidAdapter - support missing params (#29)

* support gpp for minutemedia adapter

* removed spaces

* removed extra character

---------

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: OronW <41260031+OronW@users.noreply.github.com>
Co-authored-by: lasloche <62240785+lasloche@users.noreply.github.com>
Co-authored-by: YakirLavi <73641910+YakirLavi@users.noreply.github.com>
Co-authored-by: YakirLavi <yakir.lavi@risecodes.com>
Co-authored-by: Inna Yaretsky <>
  • Loading branch information
9 people committed Feb 5, 2024
1 parent 16ee425 commit 6e13ea0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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

0 comments on commit 6e13ea0

Please sign in to comment.