-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
base: master
Are you sure you want to change the base?
Conversation
Tread carefully! This PR adds 1 linter error (possibly disabled through directives):
|
f0262b1
to
b1b013e
Compare
bee9b4a
to
6bf0566
Compare
6bf0566
to
2ae9306
Compare
src/prebid.js
Outdated
'video': ORTB_VIDEO_PARAMS, | ||
'native': ORTB_NATIVE_PARAMS, | ||
'banner': ORTB_BANNER_PARAMS |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[VIDEO]: ORTB_VIDEO_PARAMS, | |
[VIDEO]: FEATURES.VIDEO && ORTB_VIDEO_PARAMS |
maxduration: 'omitted_value' | ||
} | ||
}, | ||
ortb2Imp: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ortb2Imp: {} |
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