Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions sample/configs/localdev-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add profiles

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
2 changes: 2 additions & 0 deletions sample/profiles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### This is a directory to store profiles for file-based configuration.
### Please put only valid OpenRTB JSON files here.
36 changes: 36 additions & 0 deletions sample/requests/localdev-test-request.http
Original file line number Diff line number Diff line change
@@ -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
}

###
36 changes: 36 additions & 0 deletions sample/requests/localdev-test-stored-auction-response.http
Original file line number Diff line number Diff line change
@@ -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
}

###
42 changes: 42 additions & 0 deletions sample/requests/localdev-test-stored-bidder-response.http
Original file line number Diff line number Diff line change
@@ -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
}

###
14 changes: 14 additions & 0 deletions sample/stored/sample-stored-auction-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"bid": [
{
"id": "1",
"impid": "test-imp-id",
"price": 0.5,
"adm": "<div>Ad Content</div>",
"crid": "creative123",
"w": 300,
"h": 250
}
],
"seat": "stored-auction-response-seat"
}
17 changes: 17 additions & 0 deletions sample/stored/sample-stored-bidder-response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"seatbid": [
{
"bid": [
{
"id": "1",
"impid": "test-imp-id",
"price": 0.5,
"adm": "<div>Ad Content</div>",
"crid": "creative123",
"w": 300,
"h": 250
}
]
}
]
}
Loading