-
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
drop specific code for index adapter #1487
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.
I think an additional line was taken out, otherwise looks good to me.
@@ -46,33 +46,18 @@ function getBidders(bid) { | |||
function bidsBackAdUnit(adUnitCode) { | |||
const requested = $$PREBID_GLOBAL$$._bidsRequested | |||
.map(request => request.bids | |||
.filter(adUnitsFilter.bind(this, $$PREBID_GLOBAL$$._adUnitCodes)) |
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 think the above line needs to remain in for now -- not related to index bid counting.
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.
shouldn't the line below take care of filtering? I don't understand the need for the double filter.
i.e adUnitCode
is a subset of ._adUnitCodes
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 is the adUnitsFilter
function:
export function adUnitsFilter(filter, bid) {
return filter.includes((bid && bid.placementCode) || (bid && bid.adUnitCode));
}
so while it does behave somewhat differently by testing for placementCode
and adUnitCode
your right that the next filter cuts that down to just placementCode
. Ok, makes sense.
This reverts commit d3cd291.
…built * 'master' of https://github.com/prebid/Prebid.js: (83 commits) feat(strAdapt): check if tagJS is already present (prebid#1500) Updated karma-mocha, and simplified the test framework for runs which dont include --watch. (prebid#1520) Revert "drop specific code for index adapter (prebid#1487)" (prebid#1529) Override default asset params when set on ad unit (prebid#1524) Adding new kv to xhb Adapter (prebid#1513) removing for...of loops because IE cannot handle them properly (prebid#1523) Increment pre version Prebid 0.27.0 Release Move unit test file to appropriate location (prebid#1516) Support 'cta' native asset (prebid#1505) Add adapter parameter types (prebid#1504) Register bid adapter (prebid#1514) Match port when testing legacy browser (prebid#1511) modify 'featureforward' adapter to be an indepandant adapter (prebid#1288) Feature/s2s client side fallback (prebid#1485) Make bid.vastUrl use the cache URL if the bid didnt already have one. (prebid#1506) OpenX Adapter Update: (prebid#1438) Add session id feature for roxot analytics adapter (prebid#1498) Update platformioBidAdapter (prebid#1493) Adding VAST Payload support for video bids (prebid#1407) ...
) This reverts commit d3cd291.
) This reverts commit d3cd291.
…rebid-official-0.27.1 to release/1.27.0 * commit 'ed7a85baafff3cade5fc05df1cd2bbadca782463': (98 commits) Added compatibility with 0.27.1 for Komoona adapter. Added aol partners ids. Added changelog entry. Fixed minor eslint issues. Fixed failing prebid-cache unit test. Prebid 0.27.1 Release use utils.getTopWindowUrl() to get top window URL for indexexchange a… (prebid#1507) fix prebid#1509 - utils.getTopWindowLocation() returns exception object (prebid#1530) feat(strAdapt): check if tagJS is already present (prebid#1500) Updated karma-mocha, and simplified the test framework for runs which dont include --watch. (prebid#1520) Revert "drop specific code for index adapter (prebid#1487)" (prebid#1529) Override default asset params when set on ad unit (prebid#1524) Adding new kv to xhb Adapter (prebid#1513) removing for...of loops because IE cannot handle them properly (prebid#1523) Increment pre version Prebid 0.27.0 Release Move unit test file to appropriate location (prebid#1516) Support 'cta' native asset (prebid#1505) Add adapter parameter types (prebid#1504) Register bid adapter (prebid#1514) ...
….27.0 to aolgithub-master * commit '5c33711e8d9e543b4a1da00563d78f6d0abd1179': (99 commits) Added compatibility with 0.27.1 for Komoona adapter. Added aol partners ids. Added changelog entry. Fixed minor eslint issues. Fixed failing prebid-cache unit test. Updated Komoona bid adapter. Prebid 0.27.1 Release use utils.getTopWindowUrl() to get top window URL for indexexchange a… (prebid#1507) fix prebid#1509 - utils.getTopWindowLocation() returns exception object (prebid#1530) feat(strAdapt): check if tagJS is already present (prebid#1500) Updated karma-mocha, and simplified the test framework for runs which dont include --watch. (prebid#1520) Revert "drop specific code for index adapter (prebid#1487)" (prebid#1529) Override default asset params when set on ad unit (prebid#1524) Adding new kv to xhb Adapter (prebid#1513) removing for...of loops because IE cannot handle them properly (prebid#1523) Increment pre version Prebid 0.27.0 Release Move unit test file to appropriate location (prebid#1516) Support 'cta' native asset (prebid#1505) Add adapter parameter types (prebid#1504) ...
Type of change
Description of change
Resolves #1341
Other information