Skip to content

Commit

Permalink
Revert "Brightom Bid Adapter: Add GDPR support (prebid#5594)"
Browse files Browse the repository at this point in the history
This reverts commit 70d7ecc.
  • Loading branch information
BrightMountainMedia authored Sep 14, 2020
1 parent d64c463 commit dbca8ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
5 changes: 0 additions & 5 deletions modules/brightcomBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ function buildRequests(bidReqs, bidderRequest) {
tmax: config.getConfig('bidderTimeout')
};

if (bidderRequest && bidderRequest.gdprConsent) {
utils.deepSetValue(brightcomBidReq, 'regs.ext.gdpr', +bidderRequest.gdprConsent.gdprApplies);
utils.deepSetValue(brightcomBidReq, 'user.ext.consent', bidderRequest.gdprConsent.consentString);
}

return {
method: 'POST',
url: URL,
Expand Down
25 changes: 0 additions & 25 deletions test/spec/modules/brightcomBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,31 +141,6 @@ describe('brightcomBidAdapter', function() {
expect(payload.site.publisher.id).to.equal(1234567);
});

it('sends gdpr info if exists', function () {
const consentString = 'BOJ8RZsOJ8RZsABAB8AAAAAZ+A==';
const bidderRequest = {
'bidderCode': 'brightcom',
'auctionId': '1d1a030790a437',
'bidderRequestId': '22edbae2744bf5',
'timeout': 3000,
gdprConsent: {
consentString: consentString,
gdprApplies: true
},
refererInfo: {
referer: 'http://example.com/page.html',
}
};
bidderRequest.bids = bidRequests;

const data = JSON.parse(spec.buildRequests(bidRequests, bidderRequest).data);

expect(data.regs.ext.gdpr).to.exist.and.to.be.a('number');
expect(data.regs.ext.gdpr).to.equal(1);
expect(data.user.ext.consent).to.exist.and.to.be.a('string');
expect(data.user.ext.consent).to.equal(consentString);
});

context('when element is fully in view', function() {
it('returns 100', function() {
Object.assign(element, { width: 600, height: 400 });
Expand Down

0 comments on commit dbca8ea

Please sign in to comment.