Skip to content

Commit bfc7fed

Browse files
committed
Documentation: Local dev request examples
1 parent 27d6364 commit bfc7fed

6 files changed

Lines changed: 179 additions & 0 deletions
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
status-response: "ok"
2+
adapters:
3+
generic:
4+
enabled: true
5+
endpoint: http://localhost
6+
metrics:
7+
prefix: prebid
8+
cache:
9+
scheme: http
10+
host: localhost
11+
path: /cache
12+
query: uuid=
13+
settings:
14+
enforce-valid-account: false
15+
generate-storedrequest-bidrequest-id: true
16+
filesystem:
17+
settings-filename: sample/configs/sample-app-settings.yaml
18+
stored-requests-dir: sample/stored
19+
stored-imps-dir: sample/stored
20+
stored-responses-dir: sample/stored
21+
categories-dir:
22+
gdpr:
23+
default-value: 1
24+
vendorlist:
25+
v2:
26+
cache-dir: /var/tmp/vendor2
27+
v3:
28+
cache-dir: /var/tmp/vendor3
29+
admin-endpoints:
30+
logging-changelevel:
31+
enabled: true
32+
path: /logging/changelevel
33+
on-application-port: true
34+
protected: false
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)