-
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: Adding useBaseGvlid to aliasBidAdapter #12247
Conversation
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.
@@ -1630,6 +1630,16 @@ describe('adapterManager tests', function () { | |||
expect(adapterManager.videoAdapters).to.include(alias); | |||
} | |||
}); | |||
|
|||
it('should use gvlid of original adapter when option set', () => { | |||
const mediaType = FEATURES.VIDEO ? 'video' : 'banner' |
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.
This doesn't seem necessary - you're not testing anything about media types.
src/adapterManager.js
Outdated
let gvlid = options && options.gvlid; | ||
if (spec.gvlid != null && gvlid == null) { | ||
const gvlid = useBaseGvlid ? spec.gvlid : options?.gvlid; | ||
if (!useBaseGvlid && spec.gvlid != null && options?.gvlid == null) { |
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.
if (!useBaseGvlid && spec.gvlid != null && options?.gvlid == null) { | |
if (gvlid == null && spec.gvlid != null) { |
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
#10759