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

Triplelift Bid Adapter: deprecate getLegacyFpd #8273

Merged
merged 12 commits into from
Apr 11, 2022
4 changes: 2 additions & 2 deletions modules/tripleliftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ function _getGlobalFpd() {
const fpd = {};
const context = {}
const user = {};
const ortbData = config.getLegacyFpd(config.getConfig('ortb2')) || {};
const ortbData = config.getConfig('ortb2') || {};

const fpdContext = Object.assign({}, ortbData.context);
const fpdContext = Object.assign({}, ortbData.site);
const fpdUser = Object.assign({}, ortbData.user);

_addEntries(context, fpdContext);
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/tripleliftBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ describe('triplelift adapter', function () {
const request = tripleliftAdapterSpec.buildRequests(bidRequests, bidderRequest);
const { data: payload } = request;
expect(payload.ext.fpd.user).to.not.exist;
expect(payload.ext.fpd.context.data).to.haveOwnProperty('category');
expect(payload.ext.fpd.context.ext.data).to.haveOwnProperty('category');
expect(payload.ext.fpd.context).to.haveOwnProperty('pmp_elig');
});
it('should send ad unit fpd if kvps are available', function() {
Expand Down