Skip to content

Commit

Permalink
AdagioAnalyticsAdapter: stop trying to read sizes of sizeless ad-units (
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyfall authored Nov 22, 2024
1 parent 8a95ab2 commit 5401652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/adagioAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function handlerAuctionInit(event) {
mediaTypeKey => mediaTypeKey
).map(mediaType => getMediaTypeAlias(mediaType)).sort();
const bannerSizes = removeDuplicates(
mediaTypes.filter(mediaType => mediaType.hasOwnProperty(BANNER))
mediaTypes.filter(mediaType => mediaType.hasOwnProperty(BANNER) && mediaType[BANNER].hasOwnProperty('sizes'))
.map(mediaType => mediaType[BANNER].sizes.map(size => size.join('x')))
.flat(),
bannerSize => bannerSize
Expand Down

0 comments on commit 5401652

Please sign in to comment.