Skip to content

Commit

Permalink
Merge pull request #12 from pm-shashank-jain/outstream_bug_fix
Browse files Browse the repository at this point in the history
Pubmatic should work with provided renderer
  • Loading branch information
pm-shashank-jain authored Dec 28, 2020
2 parents 936f0fe + af471f8 commit 7048c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/pubmaticBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,8 +861,8 @@ export const spec = {
utils.logError(`${LOG_WARN_PREFIX}: no context specified in bid. Rejecting bid: `, bid);
return false;
}
if (bid.mediaTypes[VIDEO].context === 'outstream' && !utils.isStr(bid.params.outstreamAU)) {
utils.logError(`${LOG_WARN_PREFIX}: for "outstream" bids outstreamAU is required. Rejecting bid: `, bid);
if (bid.mediaTypes[VIDEO].context === 'outstream' && !utils.isStr(bid.params.outstreamAU) && !bid.hasOwnProperty('renderer')) {
utils.logError(`${LOG_WARN_PREFIX}: for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting bid: `, bid);
return false;
}
} else {
Expand Down

0 comments on commit 7048c86

Please sign in to comment.