diff --git a/sample/configs/localdev-config.yaml b/sample/configs/localdev-config.yaml new file mode 100644 index 00000000000..c2991cdf3b6 --- /dev/null +++ b/sample/configs/localdev-config.yaml @@ -0,0 +1,26 @@ +status-response: "ok" +adapters: + generic: + enabled: true + endpoint: http://localhost +cache: + scheme: http + host: localhost + path: /cache + query: uuid= +settings: + enforce-valid-account: false + filesystem: + settings-filename: sample/configs/sample-app-settings.yaml + stored-requests-dir: sample/stored + stored-imps-dir: sample/stored + profiles-dir: sample/profiles + stored-responses-dir: sample/stored + categories-dir: +gdpr: + default-value: 1 + vendorlist: + v2: + cache-dir: /var/tmp/vendor2 + v3: + cache-dir: /var/tmp/vendor3 diff --git a/sample/profiles/README.md b/sample/profiles/README.md new file mode 100644 index 00000000000..ff7afdd219b --- /dev/null +++ b/sample/profiles/README.md @@ -0,0 +1,2 @@ +### This is a directory to store profiles for file-based configuration. +### Please put only valid OpenRTB JSON files here. diff --git a/sample/requests/localdev-test-request.http b/sample/requests/localdev-test-request.http new file mode 100644 index 00000000000..eb5da3d7b35 --- /dev/null +++ b/sample/requests/localdev-test-request.http @@ -0,0 +1,36 @@ +POST http://localhost:8080/openrtb2/auction +Content-Type: application/json + +{ + "id": "test-bid-request-id", + "site": { + "id": "test-site-id", + "name": "Test site", + "domain": "test.com", + "publisher": { + "id": "1001" + } + }, + "regs": { + "gdpr": 0 + }, + "imp": [ + { + "id": "test-imp-id", + "banner": { + "w": 300, + "h": 250 + }, + "ext": { + "prebid": { + "bidder": { + "generic": {} + } + } + } + } + ], + "test": 1 +} + +### diff --git a/sample/requests/localdev-test-stored-auction-response.http b/sample/requests/localdev-test-stored-auction-response.http new file mode 100644 index 00000000000..45509e61570 --- /dev/null +++ b/sample/requests/localdev-test-stored-auction-response.http @@ -0,0 +1,36 @@ +POST http://localhost:8080/openrtb2/auction +Content-Type: application/json + +{ + "id": "test-bid-request-id", + "site": { + "id": "test-site-id", + "name": "Test site", + "domain": "test.com", + "publisher": { + "id": "1001" + } + }, + "regs": { + "gdpr": 0 + }, + "imp": [ + { + "id": "test-imp-id", + "banner": { + "w": 300, + "h": 250 + } + } + ], + "ext": { + "prebid": { + "storedauctionresponse": { + "id": "sample-stored-auction-response" + } + } + }, + "test": 1 +} + +### diff --git a/sample/requests/localdev-test-stored-bidder-response.http b/sample/requests/localdev-test-stored-bidder-response.http new file mode 100644 index 00000000000..eec448271e5 --- /dev/null +++ b/sample/requests/localdev-test-stored-bidder-response.http @@ -0,0 +1,42 @@ +POST http://localhost:8080/openrtb2/auction +Content-Type: application/json + +{ + "id": "test-bid-request-id", + "site": { + "id": "test-site-id", + "name": "Test site", + "domain": "test.com", + "publisher": { + "id": "1001" + } + }, + "regs": { + "gdpr": 0 + }, + "imp": [ + { + "id": "test-imp-id", + "banner": { + "w": 300, + "h": 250 + }, + "ext": { + "prebid": { + "bidder": { + "generic": {} + }, + "storedbidresponse": [ + { + "bidder": "generic", + "id": "sample-stored-bidder-response" + } + ] + } + } + } + ], + "test": 1 +} + +### diff --git a/sample/stored/sample-stored-auction-response.json b/sample/stored/sample-stored-auction-response.json new file mode 100644 index 00000000000..34887d0fbb5 --- /dev/null +++ b/sample/stored/sample-stored-auction-response.json @@ -0,0 +1,14 @@ +{ + "bid": [ + { + "id": "1", + "impid": "test-imp-id", + "price": 0.5, + "adm": "