Skip to content
Jaime Rump edited this page Aug 23, 2019 · 2 revisions

New Development

When you clone the repo, you must use dep ensure to install packages. Dep installation instructions can be found here.

To test your changes, run the tests with ./validate.sh. The validation script rebuilds the project, so you can just save your files and rerun it.

To run the app, build it with go build ., then start it with ./prebid-server.

Updates

If part of our API changes, you need to check and update the following locations.

The bidder url must be changed in /config/config.go and /adapters/martinai/martinai_test.go. The cookie sync url must be changed in /config/config.go and /adapters/martinai/usersync_test.go.

If the request or response format changes, you must change the test samples in /adapters/martinai/martinaitest and the MakeRequests and MakeBids functions in /adapters/martinai/martinai.go.

Any custom parameters must be updated in static/bidder-params/martinai.json, openrtb_ext/imp_martinai.go, and the test samples in /adapters/martinai/martinaitest/parameters/race.

Cautions

The tests in /adapters/martinai/martinaitest are unit tests, just inputs and expected outputs of the MakeRequests and MakeBids functions. They do not test the integration between prebid and our bidder. If the interface changes, they may break. If the expectedRequest and mockResponse match the request and response formats of our bidder, everything should work, but you should integration test to be sure.

Clone this wiki locally