Skip to content

Commit

Permalink
added ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
bakicam committed Jan 27, 2025
1 parent fe786a5 commit 6e30190
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 0 deletions.
122 changes: 122 additions & 0 deletions adapters/admatic/admatictest/exemplary/headers_ipv4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"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",
"banner": {
"format": [
{
"w": 728,
"h": 90
}
]
},
"ext": {
"bidder": {
"host": "layer.serve.admatic.com.tr",
"networkId": 12345
}
}
}
]
},
"httpCalls": [
{
"expectedRequest": {
"headers": {
"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-banner",
"device": {
"ua": "test-user-agent",
"ip": "123.123.123.123",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
"banner": {
"format": [
{
"w": 728,
"h": 90
}
]
},
"ext": {
"bidder": {
"host": "layer.serve.admatic.com.tr",
"networkId": 12345
}
}
}
]
},
"impIDs": ["test-imp-id-banner"]
},
"mockResponse": {
"status": 200,
"body": {
"id": "test-request-id-banner",
"seatbid": [
{
"seat": "admatic",
"bid": [
{
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800",
"impid": "test-imp-id-banner",
"price": 0.5,
"adm": "some-test-ad-banner",
"crid": "crid_10",
"w": 728,
"h": 90
}
]
}
],
"cur": "USD"
}
}
}
],
"expectedBidResponses": [
{
"currency": "USD",
"bids": [
{
"bid": {
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800",
"impid": "test-imp-id-banner",
"price": 0.5,
"adm": "some-test-ad-banner",
"crid": "crid_10",
"w": 728,
"h": 90
},
"type": "banner"
}
]
}
]
}
123 changes: 123 additions & 0 deletions adapters/admatic/admatictest/exemplary/headers_ipv6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"mockBidRequest": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ipv6": "2607:fb90:f27:4512:d800:cb23:a603:e245",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
"banner": {
"format": [
{
"w": 728,
"h": 90
}
]
},
"ext": {
"bidder": {
"host": "layer.serve.admatic.com.tr",
"networkId": 12345
}
}
}
]
},
"httpCalls": [
{
"expectedRequest": {
"headers": {
"Content-Type": [
"application/json;charset=utf-8"
],
"Accept": [
"application/json"
],
"User-Agent": [
"test-user-agent"
],
"X-Forwarded-For": [
"2607:fb90:f27:4512:d800:cb23:a603:e245"
]
},
"uri": "http://pbs.admatic.com.tr?host=layer.serve.admatic.com.tr",
"body": {
"id": "test-request-id-banner",
"device": {
"ua": "test-user-agent",
"ipv6": "2607:fb90:f27:4512:d800:cb23:a603:e245",
"language": "en",
"dnt": 0
},
"imp": [
{
"id": "test-imp-id-banner",
"banner": {
"format": [
{
"w": 728,
"h": 90
}
]
},
"ext": {
"bidder": {
"host": "layer.serve.admatic.com.tr",
"networkId": 12345
}
}
}
]
},
"impIDs": ["test-imp-id-banner"]
},
"mockResponse": {
"status": 200,
"body": {
"id": "test-request-id-banner",
"seatbid": [
{
"seat": "admatic",
"bid": [
{
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800",
"impid": "test-imp-id-banner",
"price": 0.5,
"adm": "some-test-ad-banner",
"crid": "crid_10",
"w": 728,
"h": 90
}
]
}
],
"cur": "USD"
}
}
}
],
"expectedBidResponses": [
{
"currency": "USD",
"bids": [
{
"bid": {
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800",
"impid": "test-imp-id-banner",
"price": 0.5,
"adm": "some-test-ad-banner",
"crid": "crid_10",
"w": 728,
"h": 90
},
"type": "banner"
}
]
}
]
}

0 comments on commit 6e30190

Please sign in to comment.