From 3d606dec8d7b0a4856a6a2c4e6bb58ae53beffea Mon Sep 17 00:00:00 2001 From: prebidtappx <77485538+prebidtappx@users.noreply.github.com> Date: Mon, 4 Oct 2021 18:41:15 +0200 Subject: [PATCH] tappxBidAdapter: fix wrong params (#7528) Co-authored-by: marc_tappx --- modules/tappxBidAdapter.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/modules/tappxBidAdapter.js b/modules/tappxBidAdapter.js index 337779d1d53..a026b2cd6a6 100644 --- a/modules/tappxBidAdapter.js +++ b/modules/tappxBidAdapter.js @@ -9,7 +9,7 @@ import { Renderer } from '../src/Renderer.js'; const BIDDER_CODE = 'tappx'; const TTL = 360; const CUR = 'USD'; -const TAPPX_BIDDER_VERSION = '0.1.0921'; +const TAPPX_BIDDER_VERSION = '0.1.1004'; const TYPE_CNN = 'prebidjs'; const LOG_PREFIX = '[TAPPX]: '; const VIDEO_SUPPORT = ['instream', 'outstream']; @@ -495,15 +495,16 @@ export function _getHostInfo(validBidRequests) { } function outstreamRender(bid, request) { + let rendererOptions = {}; + rendererOptions = (typeof bid.params[0].video != 'undefined') ? bid.params[0].video : {}; + rendererOptions.content = bid.vastXml; + bid.renderer.push(() => { window.tappxOutstream.renderAd({ sizes: [bid.width, bid.height], targetId: bid.adUnitCode, adResponse: bid.adResponse, - rendererOptions: { - content: bid.vastXml, - skip: (typeof bid.params[0].video.skip != 'undefined' && bid.params[0].video.skip > 0) ? bid.params[0].video.skip : 0 - } + rendererOptions: rendererOptions }); }); }