From 20e37cf8053e5cf618d6a33ac0d2341f7c3af0e2 Mon Sep 17 00:00:00 2001 From: noamtzu Date: Thu, 10 Feb 2022 18:05:04 +0200 Subject: [PATCH] support gpid --- modules/riseBidAdapter.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/riseBidAdapter.js b/modules/riseBidAdapter.js index 8efc2420348..b070055ea23 100644 --- a/modules/riseBidAdapter.js +++ b/modules/riseBidAdapter.js @@ -294,9 +294,14 @@ function generateBidParameters(bid, bidderRequest) { bidObject.pos = pos; } + const gpid = deepAccess(bid, `ortb2Imp.ext.gpid`); + if (gpid) { + bidObject.gpid = gpid; + } + if (mediaType === VIDEO) { + let playbackMethodValue = undefined; const playbackMethod = deepAccess(bid, `mediaTypes.video.playbackmethod`); - const playbackMethodValue = null; // verify playbackMethod is of type integer array, or integer only. if (Array.isArray(playbackMethod) && isInteger(playbackMethod[0])) {