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

Creat a Fail-To_Bid error #636

Merged
merged 2 commits into from
Aug 2, 2018
Merged

Creat a Fail-To_Bid error #636

merged 2 commits into from
Aug 2, 2018

Conversation

hhhjort
Copy link
Collaborator

@hhhjort hhhjort commented Aug 1, 2018

Adapters should either generate one or more http requests to their bidder to get bids, or return errors indicating why they could not bid on the supplied bid request (or both). However this is not enforced. This PR adds a failedToBid error to catch this case, and signal that an adapter is misbehaving in this manner. This should hopefully never happen, but now we will be able to catch and debug if it ever does.

cirla
cirla previously approved these changes Aug 1, 2018
@@ -146,6 +146,7 @@ const (
AdapterErrorBadInput AdapterError = "badinput"
AdapterErrorBadServerResponse AdapterError = "badserverresponse"
AdapterErrorTimeout AdapterError = "timeout"
AdapterErrorFailedToBid AdapterError = "failedtobid"
Copy link
Contributor

@dbemiller dbemiller Aug 1, 2018

Choose a reason for hiding this comment

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

Name seems a bit confusing to me... if you were unfamiliar with the project and saw the metrics, how do you think this would compare with nobid?

Maybe failedtorequest would be more accurate?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, that is what I use elsewhere, Not sure how I got off track here. Thanks

@dbemiller dbemiller merged commit 534f8a8 into master Aug 2, 2018
@dbemiller dbemiller deleted the fail-to-bid-error branch August 2, 2018 14:43
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
* Initial implementation

* Makes naming more consistent
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
* Initial implementation

* Makes naming more consistent
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
* Initial implementation

* Makes naming more consistent
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.

3 participants