Open MatejaMaric opened 1 year ago
@MatejaMaric - there's no need to get an account ID from anywhere. Each company that hosts PBS allocates their own IDs. It seems like the real issue here is that better documentation is needed on how to standup a local server and get a response. Nowadays we're recommending the use of 'stored responses' for this kind of testing. @SyntaxNode has offered to post an outline of this for PBS-Go, and I'll take the item for PBS-Java.
Hello @bretg , thanks for the reply! I guess I was confused since I kind of expected that Prebid.js example that I showed would display some kind of a test ad.
Anyway, I managed to create a local test environment by creating my own PBS Adapter and a mock bidder. Adapter would just pass the OpenRTB BidRequest to my mock bidder which would then create a mock OpenRTB BidResponse with an Ad HTML in the AdM
field. I would run both the mock bidder and my version of PBS locally. I also added an AdUnit for my bidder to the Prebid.js example that would then connect to my local PBS and serve the Ad that I created. I hope the helps somebody.
I'm interested if there is already some kind of PBS Adapter that just forwards the OpenRTB requests and responses? From what I saw every company that uses PBS makes their own adapter.
P.S. Maybe, it would be good to leave an comment on setting up AccountIDs in this issue (or just a link to the docs, when they are complete), just in case somebody searches for answers and finds this issue. 😃
I'm setting up a Prebid Server test environment. I spawn Prebid Server Docker container with PBS_GDPR_DEFAULT_VALUE set to 0 and I'm using Prebid.js-GPT-PBS integration example. I want to get a test ad show instead of "All Bidders Took Too Long or No Bid" message that I currently get. I guess the problem is that accountId in that Prebid.js example is just set to 1 instead of a real value, although I don't know how to get an accountId. I saw there was a similar question (#2073) where somebody said that PBS Go accounts are configured by an API endpoint, however I'm unable to find any documentation on the subject...
Here's the changes that I applied to the Prebid.js example: