Skip to content

Commit 41c0e01

Browse files
authored
Documentation: Local dev request examples (prebid#4189)
1 parent ae10a63 commit 41c0e01

7 files changed

Lines changed: 173 additions & 0 deletions
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
status-response: "ok"
2+
adapters:
3+
generic:
4+
enabled: true
5+
endpoint: http://localhost
6+
cache:
7+
scheme: http
8+
host: localhost
9+
path: /cache
10+
query: uuid=
11+
settings:
12+
enforce-valid-account: false
13+
filesystem:
14+
settings-filename: sample/configs/sample-app-settings.yaml
15+
stored-requests-dir: sample/stored
16+
stored-imps-dir: sample/stored
17+
profiles-dir: sample/profiles
18+
stored-responses-dir: sample/stored
19+
categories-dir:
20+
gdpr:
21+
default-value: 1
22+
vendorlist:
23+
v2:
24+
cache-dir: /var/tmp/vendor2
25+
v3:
26+
cache-dir: /var/tmp/vendor3

sample/profiles/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
### This is a directory to store profiles for file-based configuration.
2+
### Please put only valid OpenRTB JSON files here.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
POST http://localhost:8080/openrtb2/auction
2+
Content-Type: application/json
3+
4+
{
5+
"id": "test-bid-request-id",
6+
"site": {
7+
"id": "test-site-id",
8+
"name": "Test site",
9+
"domain": "test.com",
10+
"publisher": {
11+
"id": "1001"
12+
}
13+
},
14+
"regs": {
15+
"gdpr": 0
16+
},
17+
"imp": [
18+
{
19+
"id": "test-imp-id",
20+
"banner": {
21+
"w": 300,
22+
"h": 250
23+
},
24+
"ext": {
25+
"prebid": {
26+
"bidder": {
27+
"generic": {}
28+
}
29+
}
30+
}
31+
}
32+
],
33+
"test": 1
34+
}
35+
36+
###
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
POST http://localhost:8080/openrtb2/auction
2+
Content-Type: application/json
3+
4+
{
5+
"id": "test-bid-request-id",
6+
"site": {
7+
"id": "test-site-id",
8+
"name": "Test site",
9+
"domain": "test.com",
10+
"publisher": {
11+
"id": "1001"
12+
}
13+
},
14+
"regs": {
15+
"gdpr": 0
16+
},
17+
"imp": [
18+
{
19+
"id": "test-imp-id",
20+
"banner": {
21+
"w": 300,
22+
"h": 250
23+
}
24+
}
25+
],
26+
"ext": {
27+
"prebid": {
28+
"storedauctionresponse": {
29+
"id": "sample-stored-auction-response"
30+
}
31+
}
32+
},
33+
"test": 1
34+
}
35+
36+
###
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
POST http://localhost:8080/openrtb2/auction
2+
Content-Type: application/json
3+
4+
{
5+
"id": "test-bid-request-id",
6+
"site": {
7+
"id": "test-site-id",
8+
"name": "Test site",
9+
"domain": "test.com",
10+
"publisher": {
11+
"id": "1001"
12+
}
13+
},
14+
"regs": {
15+
"gdpr": 0
16+
},
17+
"imp": [
18+
{
19+
"id": "test-imp-id",
20+
"banner": {
21+
"w": 300,
22+
"h": 250
23+
},
24+
"ext": {
25+
"prebid": {
26+
"bidder": {
27+
"generic": {}
28+
},
29+
"storedbidresponse": [
30+
{
31+
"bidder": "generic",
32+
"id": "sample-stored-bidder-response"
33+
}
34+
]
35+
}
36+
}
37+
}
38+
],
39+
"test": 1
40+
}
41+
42+
###
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"bid": [
3+
{
4+
"id": "1",
5+
"impid": "test-imp-id",
6+
"price": 0.5,
7+
"adm": "<div>Ad Content</div>",
8+
"crid": "creative123",
9+
"w": 300,
10+
"h": 250
11+
}
12+
],
13+
"seat": "stored-auction-response-seat"
14+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"seatbid": [
3+
{
4+
"bid": [
5+
{
6+
"id": "1",
7+
"impid": "test-imp-id",
8+
"price": 0.5,
9+
"adm": "<div>Ad Content</div>",
10+
"crid": "creative123",
11+
"w": 300,
12+
"h": 250
13+
}
14+
]
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)