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

Core: Sync between ortb2Imp and mediaTypes #12423

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

mkomorski
Copy link
Collaborator

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Other information

#12166

@mkomorski mkomorski changed the title Core: Sync between orb2Imp and mediaTypes Core: Sync between ortb2Imp and mediaTypes Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

Tread carefully! This PR adds 1 linter error (possibly disabled through directives):

  • src/prebid.js (+1 error)

@mkomorski mkomorski force-pushed the user/mkomorski/12166-mediatypes-ortb2 branch from f0262b1 to b1b013e Compare November 8, 2024 13:05
@prebid prebid deleted a comment from github-actions bot Nov 8, 2024
@mkomorski mkomorski force-pushed the user/mkomorski/12166-mediatypes-ortb2 branch from bee9b4a to 6bf0566 Compare November 8, 2024 13:56
@mkomorski mkomorski force-pushed the user/mkomorski/12166-mediatypes-ortb2 branch from 6bf0566 to 2ae9306 Compare November 8, 2024 14:25
src/prebid.js Outdated
Comment on lines 116 to 118
'video': ORTB_VIDEO_PARAMS,
'native': ORTB_NATIVE_PARAMS,
'banner': ORTB_BANNER_PARAMS
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be broken out with feature tags (FEATURE.NATIVE & FEATURE.VIDEO)

src/prebid.js Outdated
const battr = ortb2Imp[mediaType]?.battr || mediaTypes[mediaType]?.battr;
const fields = {
'video': ORTB_VIDEO_PARAMS,
'native': ORTB_NATIVE_PARAMS,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not deal with native here, the mediaType and imp fields have no overlap, and it gets complicated with mediaType.native.ortb.

}

const battr = ortb2Imp[mediaType]?.battr || mediaTypes[mediaType]?.battr;
const fields = {
[VIDEO]: ORTB_VIDEO_PARAMS,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[VIDEO]: ORTB_VIDEO_PARAMS,
[VIDEO]: FEATURES.VIDEO && ORTB_VIDEO_PARAMS

maxduration: 'omitted_value'
}
},
ortb2Imp: {}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ortb2Imp: {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants