Skip to content

Commit 8943612

Browse files
saar120jorgeluisrocha
authored andcommitted
KueezRtb Bid Adapter: Pass gpid to server. (prebid#9831)
1 parent 7a6a900 commit 8943612

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

modules/kueezRtbBidAdapter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest, bidderTimeout) {
7777
const pId = extractPID(params);
7878
const subDomain = extractSubDomain(params);
7979

80+
const gpid = deepAccess(bid, 'ortb2Imp.ext.gpid', deepAccess(bid, 'ortb2Imp.ext.data.pbadslot', ''));
81+
8082
if (isFn(bid.getFloor)) {
8183
const floorInfo = bid.getFloor({
8284
currency: 'USD',
@@ -105,6 +107,7 @@ function buildRequest(bid, topWindowUrl, sizes, bidderRequest, bidderTimeout) {
105107
res: `${screen.width}x${screen.height}`,
106108
schain: schain,
107109
mediaTypes: mediaTypes,
110+
gpid: gpid,
108111
auctionId: auctionId,
109112
transactionId: transactionId,
110113
bidderRequestId: bidderRequestId,

test/spec/modules/kueezRtbBidAdapter_spec.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ const BID = {
4343
'bidderWinsCount': 1,
4444
'requestId': 'b0777d85-d061-450e-9bc7-260dd54bbb7a',
4545
'schain': 'a0819c69-005b-41ed-af06-1be1e0aefefc',
46-
'mediaTypes': [BANNER]
46+
'mediaTypes': [BANNER],
47+
'ortb2Imp': {
48+
'ext': {
49+
'gpid': '0123456789'
50+
}
51+
}
4752
};
4853

4954
const VIDEO_BID = {
@@ -315,7 +320,8 @@ describe('KueezRtbBidAdapter', function () {
315320
protocols: [2, 3, 5, 6],
316321
startdelay: 0
317322
}
318-
}
323+
},
324+
gpid: ''
319325
}
320326
});
321327
});
@@ -373,6 +379,7 @@ describe('KueezRtbBidAdapter', function () {
373379
schain: BID.schain,
374380
res: `${window.top.screen.width}x${window.top.screen.height}`,
375381
mediaTypes: [BANNER],
382+
gpid: '0123456789',
376383
uqs: getTopWindowQueryParams(),
377384
'ext.param1': 'loremipsum',
378385
'ext.param2': 'dolorsitamet',

0 commit comments

Comments
 (0)