-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b4e2d2
commit f743645
Showing
8 changed files
with
373 additions
and
2 deletions.
There are no files selected for viewing
247 changes: 247 additions & 0 deletions
247
adapters/smartadserver/smartadservertest/exemplary/multi-banner-multi-imp-type.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,247 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-multi-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-1", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
1 | ||
], | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"siteId": 1, | ||
"pageId": 2, | ||
"formatId": 3, | ||
"networkId": 73 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "test-imp-id-2", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 150 | ||
} | ||
] | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
1 | ||
], | ||
"w": 920, | ||
"h": 200 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"siteId": 1, | ||
"pageId": 2, | ||
"formatId": 4, | ||
"networkId": 73 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://ssb.smartadserver.com/api/bid?callerId=5", | ||
"body": { | ||
"id": "test-request-multi-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-1", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
1 | ||
], | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"siteId": 1, | ||
"pageId": 2, | ||
"formatId": 3, | ||
"networkId": 73 | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"publisher": { | ||
"id": "73" | ||
} | ||
} | ||
}, | ||
"impIDs": [ | ||
"test-imp-id-1" | ||
] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-multi-id", | ||
"seatbid": [ | ||
{ | ||
"seat": "smartadserver", | ||
"bid": [ | ||
{ | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-1", | ||
"price": 0.500000, | ||
"adm": "some-test-ad", | ||
"crid": "crid_10", | ||
"mtype": 1, | ||
"w": 728, | ||
"h": 90 | ||
} | ||
] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
}, | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://ssb.smartadserver.com/api/bid?callerId=5", | ||
"body": { | ||
"id": "test-request-multi-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-2", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 150 | ||
} | ||
] | ||
}, | ||
"video": { | ||
"mimes": [ | ||
"video/mp4" | ||
], | ||
"protocols": [ | ||
1 | ||
], | ||
"w": 920, | ||
"h": 200 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"siteId": 1, | ||
"pageId": 2, | ||
"formatId": 4, | ||
"networkId": 73 | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"publisher": { | ||
"id": "73" | ||
} | ||
} | ||
}, | ||
"impIDs": [ | ||
"test-imp-id-2" | ||
] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-multi-id", | ||
"seatbid": [ | ||
{ | ||
"seat": "smartadserver", | ||
"bid": [ | ||
{ | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e801", | ||
"impid": "test-imp-id-2", | ||
"price": 0.800000, | ||
"adm": "some-test-ad", | ||
"crid": "crid_11", | ||
"mtype": 2, | ||
"w": 920, | ||
"h": 200 | ||
} | ||
] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-1", | ||
"price": 0.5, | ||
"adm": "some-test-ad", | ||
"crid": "crid_10", | ||
"mtype": 1, | ||
"w": 728, | ||
"h": 90 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
}, | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e801", | ||
"impid": "test-imp-id-2", | ||
"price": 0.8, | ||
"adm": "some-test-ad", | ||
"crid": "crid_11", | ||
"mtype": 2, | ||
"w": 920, | ||
"h": 200 | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
110 changes: 110 additions & 0 deletions
110
adapters/smartadserver/smartadservertest/exemplary/multi-impression-types-video-banner.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-multi-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-1", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"protocols": [1], | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"siteId": 1, | ||
"pageId": 2, | ||
"formatId": 3, | ||
"networkId": 73 | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"uri": "https://ssb.smartadserver.com/api/bid?callerId=5", | ||
"body": { | ||
"id": "test-request-multi-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id-1", | ||
"banner": { | ||
"format": [{"w": 728, "h": 90}] | ||
}, | ||
"video": { | ||
"mimes": ["video/mp4"], | ||
"protocols": [1], | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"siteId": 1, | ||
"pageId": 2, | ||
"formatId": 3, | ||
"networkId": 73 | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"publisher": { | ||
"id": "73" | ||
} | ||
} | ||
}, | ||
"impIDs":["test-imp-id-1"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-multi-type", | ||
"seatbid": [ | ||
{ | ||
"seat": "smartadserver", | ||
"bid": [{ | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-video", | ||
"price": 0.500000, | ||
"adm": "some-test-ad", | ||
"crid": "crid_10", | ||
"mtype": 2, | ||
"w": 1024, | ||
"h": 576 | ||
}] | ||
} | ||
], | ||
"cur": "USD" | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "8ee514f1-b2b8-4abb-89fd-084437d1e800", | ||
"impid": "test-imp-id-video", | ||
"price": 0.5, | ||
"adm": "some-test-ad", | ||
"crid": "crid_10", | ||
"mtype": 2, | ||
"w": 1024, | ||
"h": 576 | ||
}, | ||
"type": "video" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
|
Oops, something went wrong.