Skip to content

Commit

Permalink
Merge pull request #5 from BeOpinion/fix-tracking-prebid
Browse files Browse the repository at this point in the history
Bid object onBidWon notice is having array params
  • Loading branch information
sebrobert authored Jul 27, 2022
2 parents 0f87f02 + a053400 commit 364635e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/beopBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const spec = {
}

function buildTrackingParams(data, info, value) {
const accountId = data.params.accountId;
const accountId = data.params.accountId || data.params[0].accountId;
return {
pid: accountId === undefined ? data.ad.match(/account: \“([a-f\d]{24})\“/)[1] : accountId,
nid: data.params.networkId,
Expand Down

0 comments on commit 364635e

Please sign in to comment.