-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Equativ: SmartAdserver alias with update to use mtype (#4045)
- Loading branch information
1 parent
f963cdb
commit 2bc2d36
Showing
11 changed files
with
398 additions
and
14 deletions.
There are no files selected for viewing
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
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
247 changes: 247 additions & 0 deletions
247
adapters/smartadserver/smartadservertest/exemplary/multi-format-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" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.