Skip to content

Commit

Permalink
Prebid Src: pass requestObject to BEFORE_BIDDER_REQUEST event (#7989)
Browse files Browse the repository at this point in the history
* pass requestObject to BEFORE_BIDDER_REQUEST event

* kick off circleci tests

Co-authored-by: Chris Huie <phoenixtechnerd@gmail.com>
  • Loading branch information
elad-yosifon and ChrisHuie authored Feb 4, 2022
1 parent 18285d4 commit aa93d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/adapters/bidderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const storage = getCoreStorageManager('bidderFactory');
* });
*
* @see BidderSpec for the full API and more thorough descriptions.
*
*/

/**
Expand Down Expand Up @@ -231,7 +232,7 @@ export function newBidder(spec) {
// Server requests have returned and been processed. Since `ajax` accepts a single callback,
// we need to rig up a function which only executes after all the requests have been responded.
const onResponse = delayExecution(configEnabledCallback(afterAllResponses), requests.length)
requests.forEach(_ => events.emit(CONSTANTS.EVENTS.BEFORE_BIDDER_HTTP, bidderRequest));
requests.forEach(requestObject => events.emit(CONSTANTS.EVENTS.BEFORE_BIDDER_HTTP, bidderRequest, requestObject));
requests.forEach(processRequest);

function formatGetParameters(data) {
Expand Down

0 comments on commit aa93d86

Please sign in to comment.