Skip to content

Commit

Permalink
tappxBidAdapter: fix wrong params (prebid#7528)
Browse files Browse the repository at this point in the history
Co-authored-by: marc_tappx <[email protected]>
  • Loading branch information
2 people authored and Chris Pabst committed Jan 10, 2022
1 parent 6a9eb91 commit cc2f63e
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 cc2f63e

Please sign in to comment.