Skip to content

Commit

Permalink
Dailymotion Bid Adapter: fix content cat type (#11818)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Siow <[email protected]>
  • Loading branch information
kvnsw and Kevin Siow committed Jun 18, 2024
1 parent 3ecb1f4 commit 03d4162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/dailymotionBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function getVideoMetadata(bidRequest, bidderRequest) {
? videoParams.isCreatedForKids
: null,
context: {
siteOrAppCat: deepAccess(contentObj, 'cat', ''),
siteOrAppCat: deepAccess(contentObj, 'cat', []),
videoViewsInSession: (
typeof videoParams.videoViewsInSession === 'number' &&
videoParams.videoViewsInSession >= 0
Expand Down
6 changes: 3 additions & 3 deletions test/spec/modules/dailymotionBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('dailymotionBidAdapterTests', () => {
livestream: !!bidRequestData[0].params.video.livestream,
isCreatedForKids: bidRequestData[0].params.video.isCreatedForKids,
context: {
siteOrAppCat: '',
siteOrAppCat: [],
videoViewsInSession: bidRequestData[0].params.video.videoViewsInSession,
autoplay: bidRequestData[0].params.video.autoplay,
playerVolume: bidRequestData[0].params.video.playerVolume,
Expand Down Expand Up @@ -342,7 +342,7 @@ describe('dailymotionBidAdapterTests', () => {
livestream: !!bidRequestData[0].params.video.livestream,
isCreatedForKids: null,
context: {
siteOrAppCat: '',
siteOrAppCat: [],
videoViewsInSession: null,
autoplay: null,
playerVolume: null,
Expand Down Expand Up @@ -588,7 +588,7 @@ describe('dailymotionBidAdapterTests', () => {
livestream: false,
isCreatedForKids: null,
context: {
siteOrAppCat: '',
siteOrAppCat: [],
videoViewsInSession: null,
autoplay: null,
playerVolume: null,
Expand Down

0 comments on commit 03d4162

Please sign in to comment.