-
Notifications
You must be signed in to change notification settings - Fork 224
Equativ: SmartAdserver alias with update to use mtype #3678
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
Merged
CTMBNara
merged 11 commits into
prebid:master
from
highfivve:port-3608-smartadserver-parse-openrtb2-markup-type
Aug 1, 2025
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cfbbdea
Fix #3608 Smartadserver config: added audio support, endpoint compres…
1c1cc32
Fix #3608 Smartadserver: parse BidType from mType in the bid response
fbce7ca
Merge remote-tracking branch 'origin/master' into port-3608-smartadse…
f863e8c
Merge branch 'refs/heads/master' into port-3608-smartadserver-parse-o…
e8e5f12
Added an integration test for the alias (#3608)
e30e7ae
Disable alias by default (#3608)
f2ed4ca
Simplified conditional statements in the adapter (#3608)
771ac46
Separated the integration test for an alias from Smartadserver's test…
e1a132a
Codestyle-related post-review changes (#3608)
05e7465
Corrected Equativ integration test (#3608)
944c885
Merge branch 'refs/heads/master' into port-3608-smartadserver-parse-o…
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,36 @@ | ||
| package org.prebid.server.it; | ||
|
|
||
| import io.restassured.response.Response; | ||
| import org.json.JSONException; | ||
| import org.junit.jupiter.api.Test; | ||
| import org.prebid.server.model.Endpoint; | ||
|
|
||
| import java.io.IOException; | ||
|
|
||
| import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; | ||
| import static com.github.tomakehurst.wiremock.client.WireMock.equalToJson; | ||
| import static com.github.tomakehurst.wiremock.client.WireMock.post; | ||
| import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo; | ||
| import static java.util.Collections.singletonList; | ||
|
|
||
| public class EquativTest extends IntegrationTest { | ||
|
|
||
| @Test | ||
| public void openrtb2AuctionShouldRespondWithBidsFromEquativ() throws IOException, JSONException { | ||
| // given | ||
| WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/smartadserver-exchange/api/bid")) | ||
| .withRequestBody( | ||
| equalToJson(jsonFrom("openrtb2/equativ/test-equativ-bid-request.json"))) | ||
| .willReturn(aResponse() | ||
| .withBody(jsonFrom("openrtb2/equativ/test-equativ-bid-response.json")))); | ||
|
|
||
| // when | ||
| final Response response = responseFor( | ||
| "openrtb2/equativ/test-auction-equativ-request.json", | ||
| Endpoint.openrtb2_auction); | ||
|
|
||
| // then | ||
| assertJsonEquals("openrtb2/equativ/test-auction-equativ-response.json", response, | ||
| singletonList("equativ")); | ||
| } | ||
| } |
30 changes: 30 additions & 0 deletions
30
src/test/resources/org/prebid/server/it/openrtb2/equativ/test-auction-equativ-request.json
This file contains hidden or 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,30 @@ | ||
| { | ||
| "id": "request_id", | ||
| "imp": [ | ||
| { | ||
| "id": "imp_id", | ||
| "banner": { | ||
| "w": 300, | ||
| "h": 250 | ||
| }, | ||
| "ext": { | ||
| "prebid": { | ||
| "bidder": { | ||
| "equativ": { | ||
| "siteId": 1, | ||
| "pageId": 2, | ||
| "formatId": 3, | ||
| "networkId": 73 | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ], | ||
| "tmax": 5000, | ||
| "regs": { | ||
| "ext": { | ||
| "gdpr": 0 | ||
| } | ||
| } | ||
| } |
46 changes: 46 additions & 0 deletions
46
src/test/resources/org/prebid/server/it/openrtb2/equativ/test-auction-equativ-response.json
This file contains hidden or 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,46 @@ | ||
| { | ||
| "id": "request_id", | ||
| "seatbid": [ | ||
| { | ||
| "bid": [ | ||
| { | ||
| "id": "bid_id", | ||
| "impid": "imp_id", | ||
| "exp": 300, | ||
| "price": 0.5, | ||
| "adm": "some-test-ad", | ||
| "adid": "adid", | ||
| "adomain": [ | ||
| "advertsite.com" | ||
| ], | ||
| "cid": "cid", | ||
| "crid": "crid", | ||
| "w": 1024, | ||
| "h": 576, | ||
| "ext": { | ||
| "prebid": { | ||
| "type": "banner", | ||
| "meta": { | ||
| "adaptercode": "equativ" | ||
| } | ||
| }, | ||
| "origbidcpm": 0.5 | ||
| }, | ||
| "mtype": 1 | ||
| } | ||
| ], | ||
| "seat": "equativ", | ||
| "group": 0 | ||
| } | ||
| ], | ||
| "cur": "USD", | ||
| "ext": { | ||
| "responsetimemillis": { | ||
| "equativ": "{{ equativ.response_time_ms }}" | ||
| }, | ||
| "prebid": { | ||
| "auctiontimestamp": 0 | ||
| }, | ||
| "tmaxrequest": 5000 | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.