Skip to content

Commit

Permalink
Smaato: FPD Revision (#6459)
Browse files Browse the repository at this point in the history
Co-authored-by: Bernhard Pickenbrock <[email protected]>
  • Loading branch information
el-chuck and el-chuck authored Mar 30, 2021
1 parent dc16781 commit c5cd4e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/smaatoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BANNER, VIDEO } from '../src/mediaTypes.js';

const BIDDER_CODE = 'smaato';
const SMAATO_ENDPOINT = 'https://prebid.ad.smaato.net/oapi/prebid';
const CLIENT = 'prebid_js_$prebid.version$_1.0'
const CLIENT = 'prebid_js_$prebid.version$_1.1'

/**
* Transform BidRequest to OpenRTB-formatted BidRequest Object
Expand Down Expand Up @@ -98,10 +98,10 @@ const buildOpenRtbBidRequestPayload = (validBidRequests, bidderRequest) => {
}
};

let fpd = config.getLegacyFpd(config.getConfig('ortb2')) || {};
let ortb2 = config.getConfig('ortb2') || {};

Object.assign(request.user, fpd.user);
Object.assign(request.site, fpd.context);
Object.assign(request.user, ortb2.user);
Object.assign(request.site, ortb2.site);

if (bidderRequest.gdprConsent && bidderRequest.gdprConsent.gdprApplies === true) {
utils.deepSetValue(request, 'regs.ext.gdpr', bidderRequest.gdprConsent.gdprApplies ? 1 : 0);
Expand Down

0 comments on commit c5cd4e2

Please sign in to comment.