Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

Prebid Test Bidder

Open gglas opened this issue 2 years ago • 8 comments

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.

gglas avatar Aug 30 '21 15:08 gglas

@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 avatar Feb 16 '22 16:02 patmmccann

@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 ?

dgirardi avatar Feb 16 '22 16:02 dgirardi

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 avatar Apr 02 '22 04:04 patmmccann

@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".

dgirardi avatar Apr 06 '22 16:04 dgirardi

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?

muuki88 avatar Jul 08 '22 09:07 muuki88

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

Hamper avatar Mar 03 '23 09:03 Hamper

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

patmmccann avatar Apr 22 '24 15:04 patmmccann

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

patmmccann avatar Apr 22 '24 15:04 patmmccann