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

Merged
merged 15 commits into from
Dec 9, 2024

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.

@mkomorski mkomorski requested a review from dgirardi November 21, 2024 14:04
src/prebid.js Outdated Show resolved Hide resolved
test/spec/banner_spec.js Outdated Show resolved Hide resolved
patmmccann and others added 2 commits December 2, 2024 11:58
Co-authored-by: Demetrio Girardi <dgirardi@prebid.org>
Co-authored-by: Demetrio Girardi <dgirardi@prebid.org>
Copy link

github-actions bot commented Dec 2, 2024

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

  • src/prebid.js (+1 error)

@ChrisHuie ChrisHuie merged commit 05d9c74 into master Dec 9, 2024
6 checks passed
@ChrisHuie ChrisHuie deleted the user/mkomorski/12166-mediatypes-ortb2 branch December 9, 2024 13:34
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