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

Set bid response ID to bid request ID for aardvark #543

Closed
wants to merge 23 commits into from
Closed

Set bid response ID to bid request ID for aardvark #543

wants to merge 23 commits into from

Conversation

nanek
Copy link
Contributor

@nanek nanek commented Aug 19, 2016

Updates aardvark for #509

johngeorgewright and others added 23 commits August 8, 2016 14:22
* Facebook Audience Network adapter

* 🐛 Adding required dependency for testing.

* 🐛 Size check was incorrect and not required.

* ✅ Adding error hanlding tests.

* MOL specific builds.

* FAN doesn't exist yet.

* Adding a URL helper

* Using custom ajax helper for FAN

* 🐛 Avoid empty query strings

* 🐛 Preflight ajax issues.

* Using Array::includes instead of Array::indexOf

* Keeping to naming conventions

* Example

* 🐛 Removing MOL specific build scripts

* Building FAN ads
* Add UT endpoint adapter

Make one request to /ut for all adslots on page

* Build minimal request object

* Correctly format size object

* Implement inital response handler function

* Create bid based on response status

* Test response handling function

* Extend base adapter to allow for alias bidding

* Handle nobid response

* Check for required parameters

* Validate bid parameters

* Store bid reference in request-response map

* Configure XHR options

* Add NO_BID to each placement for response error

* Update adapter name

* Update endpoint to /prebid and to use protocol-relative scheme
Currently, the load time events are passed through to GA as follows:

0-200ms
200-300ms
300-400ms
400-500ms
500-600ms
600-800ms
800-1000ms
1000-1200ms
1200-1500ms
1500-2000ms
2000ms above

Unfortunately, this means they are sorted like this in the GA sheet:

0-200ms
1000-1200ms
1200-1500ms
1500-2000ms
2000ms above
200-300ms
300-400ms
400-500ms
500-600ms
600-800ms
800-1000ms

This makes the Load Time Distribution chart difficult to read. I've fixed this within my own prebid.js file by adding a leading 0 to the 200-1000ms ranges, e.g. '0200-300ms'. It appears as though in the past the 1000ms+ ranges were entered as follows solving for this issue as well:

t2:1000-1200ms

t2:1200-1500ms

t2:1500-2000ms

t2:2000ms above
* Save bidWon adObject to _winningBids

* Add test case fir getAllWinningBids

* Add more unit tests
* gather bidders without responses during timeout callback. Fixes #489

- fixes bidders not being recorded as timed out if there is never a response
- fixes `getTimedOutBidders()` always returning an empty array when only one bidder is used
That happened because the function returned `slots requested - slots that replied`, but was called after timed out slots were marked as having replied before timeout
- fixes `bidManager` ignoring the timeout override passed to `$$PREBID_GLOBAL$$.requestBids`

* remove timeout triggering public function

This is not necessary anymore as bidder timeouts are now handled automatically

* remove unused event

* rewrite timeout test to be async

* handle responses arrived after timeout - mitigates #311

* notify the callback of timeout and delegate its event triggering

* bid timeout must be executed BEFORE `_bidsReceived.push`

This ensures that `getTimedOutBidders` recognises the current response as timed out
* Set bid response ID to bid request ID

* Refactor
* JSCS fixes

* queue bid requests

* close over auction instance data when queuing a request for bids

* review notes

* mark bid requests and responses complete when the ad for a given auction and placement renders

* call markComplete on renderAd and removeComplete on requestBids

* test presence before accessing properties, add tests, ignore selenium files
* iterate over adUnits backwards to prevent errors with in-place array mutation

* add unit test for removeAdUnit
…#502)

* #494 fix. AUCTION_END event was getting emitted in multiple scenarios

* Fixed failing test case

* Fixed jshint error

* Moving clearAuction to finally after processing callback
* Memeglobal initial commit

* Bid Request changes

* Bid Request changes

* Update memeglobal.js

* add unit test

* fix for continuous integration

* fix bid floor to number

* fix bid floor to number

* fix bid floor to number
* allows multiple bids to be registered per a slot, related to #496

* keep track of bid request in rubicon adapter to use when calling createBid
* Add tests for triplelift adapter.

* Add whitespace.
@protonate
Copy link
Collaborator

Thanks for the contribution, can we get a review from @prebid/aardvark?

@protonate
Copy link
Collaborator

On Friday it was necessary to remove a commit from Prebid.js, and a force push of master branch has rewritten history. As a committer with an open PR this event impacts you, and we regret the inconvenience. We will need to close your PR and ask that you reapply your changes to a current fork of master, then open a new PR. This will align your history with the main project and your PR will show only your changes.

Committers are referred to the Apache License (https://github.com/prebid/Prebid.js/blob/master/LICENSE) for details on submitting code to the Prebid.js project.

@protonate protonate closed this Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.