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

Concurrent refresh #353

Closed
wants to merge 2 commits into from
Closed

Concurrent refresh #353

wants to merge 2 commits into from

Conversation

protonate
Copy link
Collaborator

No description provided.

@protonate protonate force-pushed the concurrent-refresh branch from fc70bb1 to db9c120 Compare May 16, 2016 06:34
@ialex
Copy link
Contributor

ialex commented May 17, 2016

Im testing this branch using Partial Refresh with PulsePoint adapter causes and error on addBidResponse in the following line:

requestTimestamp: getBidSetForBidder(bid.bidderCode).start

This is the error: Uncaught TypeError: Cannot read property 'start' of undefined

This is the bid received by addBidResponse:

{
adId: "66517dac3823e259"
bidderCode: "pulsepoint"
getSize: ()
getStatusCode: ()
height: 0
statusMessage: "Bid returned empty or error response"
width: 0
}

@@ -456,12 +496,12 @@ pbjs.registerBidAdapter = function (bidderAdaptor, bidderCode) {
}
};

pbjs.bidsAvailableForAdapter = function (bidderCode) {
pbjs.bidsAvailableForAdapter = function ({ auction, bidderCode }) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use destructuring here it will break current implementation

protonate pushed a commit that referenced this pull request May 27, 2016
If an auction is running don't accept a new request for bids..
This adds a `clearAuction` function to set `auctionRunning` false and to clear `_bidsRequested` and `_bidsReceived`. This is a stopgap measure util #353
mkendall07 pushed a commit that referenced this pull request May 31, 2016
* a `groupByPlacement` reduce function transforms the bids received array to a map

* prevent concurrent bid requests

If an auction is running don't accept a new request for bids..
This adds a `clearAuction` function to set `auctionRunning` false and to clear `_bidsRequested` and `_bidsReceived`. This is a stopgap measure util #353

* clear data structures on additional bid request

* make auctionRunning private and allow passing adUnits to requestBids

* pass adUnitCodes on refresh bids

* use adUnitCodes if passed in to requestBids, otherwise `getBidderCodes()`, disambiguate `bidmanager.getBidderCode`

* restore use of adUnitCodes to filter adUnits

* cherrypick reset targeting merged

* clear targeting fixes and test mock

* Add GptPubadsDefined check
@protonate
Copy link
Collaborator Author

Closing as work has moved to Prebid Auctions branch and a new PR will be opened from there.

@protonate protonate closed this May 31, 2016
@ialex
Copy link
Contributor

ialex commented May 31, 2016

@protonate do you have a TODO list for the auctions branch, i would like to help since we are using our custom solution now to run concurrent bids but we would rather to have official support on it, let me know where we would help you on that branch.

@protonate
Copy link
Collaborator Author

protonate commented Jun 1, 2016

@ialex great, yes, thanks for the help. I've opened the Prebid Auctions PR #386 and working to complete dev on this today. Further updates are pending on this PR but please start taking a look at it to provide any feedback and confirm that these changes will accommodate your use case.

At this point TODO items are:

  • make minimal changes to adapters so that linkage is possible between requests and responses where needed
  • exposing auction instances to events
  • testing
  • code review

protonate pushed a commit that referenced this pull request Jun 15, 2016
* a `groupByPlacement` reduce function transforms the bids received array to a map

* prevent concurrent bid requests

If an auction is running don't accept a new request for bids..
This adds a `clearAuction` function to set `auctionRunning` false and to clear `_bidsRequested` and `_bidsReceived`. This is a stopgap measure util #353

* clear data structures on additional bid request

* make auctionRunning private and allow passing adUnits to requestBids

* pass adUnitCodes on refresh bids

* use adUnitCodes if passed in to requestBids, otherwise `getBidderCodes()`, disambiguate `bidmanager.getBidderCode`

* restore use of adUnitCodes to filter adUnits

* cherrypick reset targeting merged

* clear targeting fixes and test mock

* Add GptPubadsDefined check
@protonate protonate deleted the concurrent-refresh branch June 24, 2016 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants