Skip to content

Commit

Permalink
add device object to test json
Browse files Browse the repository at this point in the history
  • Loading branch information
bakicam committed Dec 19, 2024
1 parent 313c6a1 commit b46d969
Show file tree
Hide file tree
Showing 10 changed files with 139 additions and 19 deletions.
12 changes: 12 additions & 0 deletions adapters/admatic/admatictest/exemplary/banner.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down Expand Up @@ -41,6 +47,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down
18 changes: 18 additions & 0 deletions adapters/admatic/admatictest/exemplary/multiple-imps.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down Expand Up @@ -58,6 +64,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down Expand Up @@ -109,6 +121,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer2.serve.admatic.com.tr",
"body": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner2",
Expand Down
12 changes: 12 additions & 0 deletions adapters/admatic/admatictest/exemplary/native.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id-native",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-native",
Expand Down Expand Up @@ -36,6 +42,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id-native",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-native",
Expand Down
12 changes: 12 additions & 0 deletions adapters/admatic/admatictest/exemplary/optional-params.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down Expand Up @@ -43,6 +49,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down
12 changes: 12 additions & 0 deletions adapters/admatic/admatictest/exemplary/video.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-video-id",
Expand Down Expand Up @@ -38,6 +44,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-video-id",
Expand Down
38 changes: 25 additions & 13 deletions adapters/admatic/admatictest/supplemental/bad-request.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand All @@ -26,22 +32,28 @@
{
"expectedRequest": {
"headers": {
"Content-Type": [
"application/json;charset=utf-8"
],
"Accept": [
"application/json"
],
"User-Agent": [
"test-user-agent"
],
"X-Forwarded-For": [
"123.123.123.123"
]
},
"Content-Type": [
"application/json;charset=utf-8"
],
"Accept": [
"application/json"
],
"User-Agent": [
"test-user-agent"
],
"X-Forwarded-For": [
"123.123.123.123"
]
},
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down Expand Up @@ -58,6 +64,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down Expand Up @@ -42,6 +48,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down
12 changes: 12 additions & 0 deletions adapters/admatic/admatictest/supplemental/response-204.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down Expand Up @@ -42,6 +48,12 @@
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down
18 changes: 12 additions & 6 deletions adapters/admatic/admatictest/supplemental/server-error.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"mockBidRequest": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down Expand Up @@ -31,17 +37,17 @@
],
"Accept": [
"application/json"
],
"User-Agent": [
"test-user-agent"
],
"X-Forwarded-For": [
"123.123.123.123"
]
},
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id",
Expand Down

0 comments on commit b46d969

Please sign in to comment.