Skip to content

Commit

Permalink
appnexusBidAdapter - video plcmt logic fix (prebid#11403)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnellbaker authored Apr 28, 2024
1 parent 4db5ae6 commit 1243f21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ function getContextFromPlcmt(ortbPlcmt, ortbStartDelay) {
}

if (ortbPlcmt === 2) {
if (!ortbStartDelay) {
if (typeof ortbStartDelay === 'undefined') {
return;
}
if (ortbStartDelay === 0) {
Expand Down
4 changes: 2 additions & 2 deletions test/spec/modules/appnexusBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ describe('AppNexusAdapter', function () {
playerSize: [640, 480],
context: 'outstream',
plcmt: 2,
startdelay: -1,
startdelay: 0,
mimes: ['video/mp4'],
skip: 1,
minduration: 5,
Expand All @@ -427,7 +427,7 @@ describe('AppNexusAdapter', function () {
minduration: 5,
playback_method: 2,
skippable: true,
context: 9
context: 8
});
expect(payload.tags[0].video_frameworks).to.deep.equal([1, 4])
});
Expand Down

0 comments on commit 1243f21

Please sign in to comment.