Skip to content

Commit

Permalink
Update admaticBidAdapter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihkaya84 committed Dec 18, 2024
1 parent 2dca5d1 commit bf00881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/admaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const spec = {
const ortb = bidderRequest.ortb2;
const networkId = getValue(validBidRequests[0].params, 'networkId');
let host = getValue(validBidRequests[0].params, 'host');
const currency = getCurrencyFromBidderRequest(bidderRequest) || 'TRY';
const currency = getCurrencyFromBidderRequest(bidderRequest) || null;
const bidderName = validBidRequests[0].bidder;

const payload = {
Expand Down Expand Up @@ -87,6 +87,7 @@ export const spec = {
};

payload.ext.cur = currency;

if (bidderRequest && bidderRequest.gdprConsent && bidderRequest.gdprConsent.gdprApplies) {
const consentStr = (bidderRequest.gdprConsent.consentString)
? bidderRequest.gdprConsent.consentString.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '') : '';
Expand Down

0 comments on commit bf00881

Please sign in to comment.