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

added timeouts to rubicon adapter that consider time-to-start costs #629

Merged
merged 1 commit into from
Sep 19, 2016

Conversation

snapwich
Copy link
Collaborator

Type of change

  • [x ] Refactoring (no functional changes, no api changes)

Description of change

updated the timestamp sent to the adapters, use auction start (which I think is what start was meant to represent) instead of generating new timestamps before each call to callBids.

Also updated the rubicon adapter to use that start timestamp value to generate a relevant timeout to use for rubicon's fastlane calls.

@mkendall07
Copy link
Member

@snapwich
Can you explain why you want a timestamp to be static sent to all bidders? IMO, it's more accurate to get a timestamp when you call that particular bidder. Otherwise it will be off by a few ms.

@snapwich
Copy link
Collaborator Author

snapwich commented Sep 15, 2016

@mkendall07 well it depends on whether we want the start value to represent the time that the auction was initiated, or the time that our adapter was called. The former seems to have more value and cannot be determined from within the adapter, whereas the later can be inferred by calling Date.now() from within the callBids implementation. Some adapters already do something similar.

In our use case we wanted to know when the auction was initiated, or more specifically, how long we had before Prebid.js' auction timeout callback would fire. Making the start time a singular value that represents the start of the auction gives us the ability to make a smart judgement call for when we should timeout inside our adapter relative to Prebid.js' auction timeout.

@snapwich
Copy link
Collaborator Author

I just noticed that start is used in the bidmanager.addBidResponse: requestTimestamp: getBidSetForBidder(bid.bidderCode).start,

Perhaps a new property could be added to the bidderRequest, auctionStart?

@mkendall07
Copy link
Member

@snapwich
Yes a new property would be preferred. Thanks

@snapwich
Copy link
Collaborator Author

updated

@mkendall07 mkendall07 added this to the Prebid 0.13.0 milestone Sep 19, 2016
@mkendall07
Copy link
Member

LGTM.

@mkendall07 mkendall07 merged commit 7b03cfc into prebid:master Sep 19, 2016
marian-r added a commit to aol/Prebid.js that referenced this pull request Sep 23, 2016
…3.0 to master

* commit '9d4bc7fda6bcc249544fb8636b98e90fdc8d474b': (44 commits)
  Added support for new adapters introduced in 0.13.0 into AOL analytics
  Updated CHANGELOG
  Fixed merge conflict
  Prebid 0.13.0 Release
  Resolves prebid#635 (prebid#640)
  Add IX Deal Support (prebid#638)
  Bug fix: accept custom timeout prebid#582 & prebid#604 (prebid#641)
  added timeouts to rubicon adapter that consider time-to-start costs (prebid#629)
  Modify handling of no-bids in Krux Link adapter (prebid#628)
  Allow bypassing ajax preflights with config options (prebid#630)
  validateIndentation: Invalid indentation character (prebid#631)
  use `splice` rather than `slice` to remove bids from array (prebid#637)
  delete the callback before calling clearAuction (prebid#636)
  Deal override fix to resolve prebid#618 (prebid#619)
  Update package.json
  Video - create mastertagUrl from adservertag (prebid#614)
  Prevent renderAd from rendering videos (prebid#623)
  Remove unused build depencencies (prebid#622)
  Add pull request template (prebid#615)
  Openx adaptor deal update (prebid#612)
  ...
Studnicky pushed a commit to sonobi/Prebid.js that referenced this pull request Oct 4, 2016
Studnicky pushed a commit to sonobi/Prebid.js that referenced this pull request Oct 4, 2016
@robertrmartinez robertrmartinez deleted the rubicon-timeout branch July 5, 2023 19:44
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.

None yet

2 participants