Skip to content

Commit

Permalink
Tag level params passed to renderer in ZEDO Adapter (#3279)
Browse files Browse the repository at this point in the history
* initial commit

* updated contact and tag details

* changes ti support the renderers

* changes to pass dimId

* fixed names of internal mapping

* added comment

* added gdpr param to request and other fixes

* modified api url

* fix

* fixed the secure api call

* rolled back video event callback till we support it

* updated doc with video details

* added bid won and timeout pixel

* added testcase for bid events

* modified testcase

* fixed the url logged

* tag param values passed ot renderer

* added a conditioal check
  • Loading branch information
skazedo authored and idettman committed Nov 8, 2018
1 parent 143d1b0 commit bf2dc9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/zedoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@ function getRenderer(adUnitCode, rendererId, rendererUrl, rendererOptions = {})
function videoRenderer(bid) {
// push to render queue
bid.renderer.push(() => {
var rndr = new ZdPBTag(bid.adUnitCode, bid.network, bid.width, bid.height, bid.adType, bid.vastXml);
let channelCode = utils.deepAccess(bid, 'params.0.channelCode') || 0;
let dimId = utils.deepAccess(bid, 'params.0.dimId') || 0;
let options = utils.deepAccess(bid, 'params.0.options') || {};
let channel = (channelCode > 0) ? (channelCode - (bid.network * 1000000)) : 0;
var rndr = new ZdPBTag(bid.adUnitCode, bid.network, bid.width, bid.height, bid.adType, bid.vastXml, channel, dimId,
(encodeURI(utils.getTopWindowUrl()) || ''), options);
rndr.renderAd();
});
}
Expand Down

0 comments on commit bf2dc9c

Please sign in to comment.