Skip to content

Commit

Permalink
tappxBidAdapter: fix wrong params (#7528)
Browse files Browse the repository at this point in the history
Co-authored-by: marc_tappx <[email protected]>
  • Loading branch information
prebidtappx and marc_tappx authored Oct 4, 2021
1 parent f62ad03 commit 3d606de
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -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
});
});
}
Expand Down

0 comments on commit 3d606de

Please sign in to comment.