-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equativ: SmartAdserver alias with update to use mtype #4045
Merged
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6b4e2d2
[AUC-470] Equativ: Update bid type computation with Markup type
rneuplanche f743645
[AUC-470] Fix and add tests
rneuplanche 6b13b58
[AUC-470] Edit bidder info
rneuplanche d288bec
[AUC-470] Add geoscope
rneuplanche ccd5dd4
[AUC-470] Add compression + GPP supported
rneuplanche 579103e
[AUC-470] remove useless tests
rneuplanche d03f94a
[AUC-470] remove useless imports
rneuplanche 51e8f58
[AUC-470] Change tests JSON files
rneuplanche 46055f4
[AUC-470] Remove not supported field in yaml doc file
rneuplanche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this test be named
multi-format-multi-imp-type.json
? Your imps are both banner and video.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed 👍