Skip to content

Commit

Permalink
GPP support for the yahoospp bidder and legacy aol bidder.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumitrubarbos committed Dec 15, 2022
1 parent c0c7baf commit 4ef1c82
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions modules/aolBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,6 @@ export const spec = {
deepSetValue(openRtbObject, 'regs.ext.us_privacy', consentData.uspConsent);
}

if (consentData.gppConsent && consentData.gppConsent.gppString) {
deepSetValue(openRtbObject, 'regs.ext.gpp', consentData.gppConsent.gppString);
deepSetValue(openRtbObject, 'regs.ext.gpp_sid', consentData.gppConsent.applicableSections);
}

if (typeof bid.userId === 'object') {
openRtbObject.user = openRtbObject.user || {};
openRtbObject.user.ext = openRtbObject.user.ext || {};
Expand Down
19 changes: 0 additions & 19 deletions test/spec/modules/aolBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,25 +645,6 @@ describe('AolAdapter', function () {
});
});

it('returns the basic bid info with gpp data when gpp consent data is included', () => {
let consentData = {
gppConsent: {
gppString: 'gppconsent',
applicableSections: [6],
}
};
expect(spec.buildOpenRtbRequestData(bid, consentData)).to.deep.equal({
id: 'bid-id',
imp: [],
regs: {
ext: {
gpp: 'gppconsent',
gpp_sid: [6]
}
}
});
});

it('returns the bid object with eid array populated with PB set eids', () => {
let userIdBid = Object.assign({
userId: {}
Expand Down

0 comments on commit 4ef1c82

Please sign in to comment.