diff --git a/modules/prebidServerBidAdapter.js b/modules/prebidServerBidAdapter.js index dd8b0600af8..0540d325c79 100644 --- a/modules/prebidServerBidAdapter.js +++ b/modules/prebidServerBidAdapter.js @@ -36,6 +36,7 @@ config.setDefaults({ * @property {string} endpoint endpoint to contact * === optional params below === * @property {number} [timeout] timeout for S2S bidders - should be lower than `pbjs.requestBids({timeout})` + * @property {boolean} [cacheMarkup] whether to cache the adm result * @property {string} [adapter] adapter code to use for S2S * @property {string} [syncEndpoint] endpoint URL for syncing cookies * @property {string} [cookieSetUrl] url for cookie set library, if passed then cookieSet is enabled @@ -210,6 +211,7 @@ export function PrebidServer() { max_bids: _s2sConfig.maxBids, timeout_millis: _s2sConfig.timeout, secure: _s2sConfig.secure, + cache_markup: _s2sConfig.cacheMarkup, url: utils.getTopWindowUrl(), prebid_version: '$prebid.version$', ad_units: adUnits.filter(hasSizes), @@ -272,6 +274,12 @@ export function PrebidServer() { bidObject.creative_id = bidObj.creative_id; bidObject.bidderCode = bidObj.bidder; bidObject.cpm = cpm; + if (bidObj.cache_id) { + bidObject.cache_id = bidObj.cache_id; + } + if (bidObj.cache_url) { + bidObject.cache_url = bidObj.cache_url; + } // From ORTB see section 4.2.3: adm Optional means of conveying ad markup in case the bid wins; supersedes the win notice if markup is included in both. if (bidObj.media_type === VIDEO) { bidObject.mediaType = VIDEO;