-
Notifications
You must be signed in to change notification settings - Fork 765
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
best practice of mocking openrtb2/auction #1409
Comments
If you're running your own PBS-Java, you can make use of the StoredResponse feature. It's cool. #861 - I just recently confirmed that you can refer to a stored response ID inside of a stored request. Even more cool for mobile scenarios. Will get that documented at some point. If running your own PBS-Go, you'll have to change the bidders endpoint to a stub of some sort -- a simple local sever or a stupid script like this one I've used for performance testing, with your desired response of course:
|
Thank you @bretg , this is of course doable for now, looking forward to the StoredResponse feature, makes life eaiser |
One bad thing about mock this way is that account id and config id are not handled which will result in PREBID_SERVER_ERROR |
If your mock script was slightly smarter, it could handle whatever you needed e.g. the mock script could parse the incoming request, grab the account ID, and echo it in the response. The config ID (assuming you mean stored request ID here) should be supported within PBS before calling the mocked endpoint. If there are params in the request that are dynamic (like account ID), the mock can look for them and respond appropriately. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Reasons
seems mock is not straightforward to achieve, please help suggest
The text was updated successfully, but these errors were encountered: