Prebid.js
Prebid.js copied to clipboard
Prebid Test Bidder
It would be great if Prebid had an example bidder that replied with a static creative to function as a participant in the auction that always replies with something.
The details of this configuration get complicated relatively quickly, considerations include (but wouldn't be limited to) :
Bid Price Format Consent status
This would be statically hosted, and provide a reliable way to ensure there are bids in a given prebid auction for testing purposes.
@dgirardi this feature request is slightly diff that what is solved in 7801; the idea is to have an endpoint that returns a creative that can be used in place of the appnexus endpoint on the examples page
@patmmccann true, but the assumption is that if a publisher has to include and configure a "test bidder" module to make the examples work, they could also include and configure a debugging module that has the same effect.
Maybe a good middle ground is to have the debugging module automatically intercept all requests for say testBidder
?
I dont follow how the debugging module solves the three or four issues we consolidated into this one. I think publishers want to demonstrate end to end a bid was sent out and markup was returned and rendered. The interception seems to almost by definition break the end to end test.
@patmmccann I don't disagree, but if the goal is true end-to-end, wouldn't it be easier to strike a deal with some member SSPs to get some demo account set up that always replies with some bid? anything else is a tradeoff between maintenance costs and true "real-world-ness".
We are currently starting to add more prebid native bidders and would like to check if the native designs work as expected with GAM as well and also to demonstrate them SSPs.
I couldn't figure exactly if the debugging module is suitable to do this? The replacing functions look very generic, which means I would only reverse engineer the proper fields required in the bidResponse
object so that native works, right?
I think that testBidder can be very usable for something like native design testing or video tests, it can looks like
{
bidder: 'test',
parameters: {
type: 'native',
bid: { /* full bid response */ }
}
}
and can contains some minimal tests like check that type match available types for adunit
If we build a new bid adapter called 'notForProdExampleBidder' that was not on the download page but was always in not for prod giant build for examples pages, and that bidder did not generate network traffic but instead had a json forcing a bid where the markup was an call to something on imgur or somewhere like that, we could solve this. Or perhaps mockBidAdapter.js
As an alternative, we're preferring some sort of config that could be identified in an example that would abstract away much of the work of mocking responses