Skip to content

Commit

Permalink
[BeOp adapter] Fix tracking params
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean BOUDET committed Nov 25, 2021
1 parent e41bbed commit 23a261b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions modules/beopBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,18 @@ export const spec = {
}

function buildTrackingParams(data, info, value) {
const accountId = data.params.accountId;
return {
pid: data.params.accountId,
pid: accountId === undefined ? data.ad.match(/account: \“([a-f\d]{24})\“/)[1] : accountId
nid: data.params.networkId,
nptnid: data.params.networkPartnerId,
bid: data.bidId,
bid: data.bidId || data.requestId,
sl_n: data.adUnitCode,
aid: data.auctionId,
se_ca: 'bid',
se_ac: info,
se_va: value
se_va: value,
url: window.location.href
};
}

Expand Down

0 comments on commit 23a261b

Please sign in to comment.