Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nativo Bid Adapter: fix floors bug #9041

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/nativoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,9 @@ export function parseFloorPriceData(bidRequest) {
// Setup price floor data per media type
let mediaTypeData = bidMediaTypes[mediaType]
let mediaTypeFloorPriceData = {}
let mediaTypeSizes = mediaTypeData.sizes || mediaTypeData.playerSize || [];
// Step through each size of the media type so we can get floor data for each size per media type
mediaTypeData.sizes.forEach((size) => {
mediaTypeSizes.forEach((size) => {
// Get floor price data per the getFloor method and respective media type / size combination
const priceFloorData = bidRequest.getFloor({
currency: FLOOR_PRICE_CURRENCY,
Expand Down