Skip to content

Commit

Permalink
Added custom user object
Browse files Browse the repository at this point in the history
  • Loading branch information
kalidas-alkimi committed Feb 13, 2024
1 parent d5b0a11 commit 8c682ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/alkimiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export const spec = {
const alkimiConfig = config.getConfig('alkimi')
const fullPageAuction = bidderRequest.ortb2?.source?.ext?.full_page_auction
const source = fullPageAuction != undefined ? { ext: { full_page_auction: fullPageAuction } } : undefined
const walletID = alkimiConfig && alkimiConfig.walletID
const user = walletID != undefined ? { ext: { walletID: walletID } } : undefined

let payload = {
requestId: generateUUID(),
Expand All @@ -62,6 +64,7 @@ export const spec = {
},
ortb2: {
source,
user,
site: {
keywords: bidderRequest.ortb2?.site?.keywords
},
Expand Down

0 comments on commit 8c682ac

Please sign in to comment.