Skip to content

Vidazoo Adapter: New Omnidex and Tagoras Aliases #4128

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
merged 1 commit into from
Aug 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/main/resources/bidder-config/vidazoo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ adapters:
url: https://sync.programmaticx.ai/api/user/html/685297194d85991a5e6e36dd?pbs=true&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&redirect={{redirect_url}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}
support-cors: false
uid-macro: '${userId}'
omnidex:
endpoint: https://exchange.omni-dex.io/openrtb/
usersync:
enabled: true
cookie-family-name: omnidex
iframe:
url: https://sync.omni-dex.io/api/user/html/6810d0c7f163277130f3d7a9?pbs=true&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&redirect={{redirect_url}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}
support-cors: false
uid-macro: '${userId}'
tagoras:
endpoint: https://exchange.tagoras.io/openrtb/
meta-info:
maintainer-email: prebid@tagoras.io
usersync:
enabled: true
cookie-family-name: tagoras
iframe:
url: https://sync.tagoras.io/api/user/html/6819bdc3e6bb44545c55f843?pbs=true&gdpr={{gdpr}}&gdpr_consent={{gdpr_consent}}&us_privacy={{us_privacy}}&redirect={{redirect_url}}&gpp={{gpp}}&gpp_sid={{gpp_sid}}
support-cors: false
uid-macro: '${userId}'
endpoint-compression: gzip
ortb-version: "2.6"
meta-info:
Expand Down
35 changes: 35 additions & 0 deletions src/test/java/org/prebid/server/it/OmnidexTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 java.util.List;

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;

public class OmnidexTest extends IntegrationTest {

@Test
public void openrtb2AuctionShouldRespondWithBidsFromOmnidex() throws IOException, JSONException {
// given
WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/omnidex-exchange/connectionId"))
.withRequestBody(equalToJson(jsonFrom("openrtb2/omnidex/test-omnidex-bid-request.json")))
.willReturn(aResponse().withBody(jsonFrom("openrtb2/omnidex/test-omnidex-bid-response.json"))));

// when
final Response response = responseFor(
"openrtb2/omnidex/test-auction-omnidex-request.json",
Endpoint.openrtb2_auction
);

// then
assertJsonEquals("openrtb2/omnidex/test-auction-omnidex-response.json", response, List.of("omnidex"));
}

}
35 changes: 35 additions & 0 deletions src/test/java/org/prebid/server/it/TagorasTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 java.util.List;

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;

public class TagorasTest extends IntegrationTest {

@Test
public void openrtb2AuctionShouldRespondWithBidsFromTagoras() throws IOException, JSONException {
// given
WIRE_MOCK_RULE.stubFor(post(urlPathEqualTo("/tagoras-exchange/connectionId"))
.withRequestBody(equalToJson(jsonFrom("openrtb2/tagoras/test-tagoras-bid-request.json")))
.willReturn(aResponse().withBody(jsonFrom("openrtb2/tagoras/test-tagoras-bid-response.json"))));

// when
final Response response = responseFor(
"openrtb2/tagoras/test-auction-tagoras-request.json",
Endpoint.openrtb2_auction
);

// then
assertJsonEquals("openrtb2/tagoras/test-auction-tagoras-response.json", response, List.of("tagoras"));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 320,
"h": 250
},
"ext": {
"omnidex": {
"cId": "connectionId"
}
}
}
],
"tmax": 5000,
"regs": {
"ext": {
"gdpr": 0
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"id": "request_id",
"seatbid": [
{
"bid": [
{
"id": "bid_id",
"impid": "imp_id",
"exp": 300,
"price": 0.01,
"adid": "2068416",
"cid": "8048",
"crid": "24080",
"mtype": 1,
"ext": {
"prebid": {
"type": "banner",
"meta": {
"adaptercode": "omnidex"
}
},
"origbidcpm": 0.01
}
}
],
"seat": "omnidex",
"group": 0
}
],
"cur": "USD",
"ext": {
"responsetimemillis": {
"omnidex": "{{ omnidex.response_time_ms }}"
},
"prebid": {
"auctiontimestamp": 0
},
"tmaxrequest": 5000
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 320,
"h": 250
},
"ext": {
"tid": "${json-unit.any-string}",
"bidder": {
"cId": "connectionId"
}
}
}
],
"source": {
"tid": "${json-unit.any-string}"
},
"site": {
"domain": "www.example.com",
"page": "http://www.example.com",
"publisher": {
"domain": "example.com"
},
"ext": {
"amp": 0
}
},
"device": {
"ua": "userAgent",
"ip": "193.168.244.1"
},
"at": 1,
"tmax": "${json-unit.any-number}",
"cur": [
"USD"
],
"regs": {
"gdpr": 0
},
"ext": {
"prebid": {
"server": {
"externalurl": "http://localhost:8080",
"gvlid": 1,
"datacenter": "local",
"endpoint": "/openrtb2/auction"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "tid",
"seatbid": [
{
"bid": [
{
"crid": "24080",
"adid": "2068416",
"price": 0.01,
"id": "bid_id",
"impid": "imp_id",
"cid": "8048",
"mtype": 1
}
],
"type": "banner"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 320,
"h": 250
},
"ext": {
"tagoras": {
"cId": "connectionId"
}
}
}
],
"tmax": 5000,
"regs": {
"ext": {
"gdpr": 0
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"id": "request_id",
"seatbid": [
{
"bid": [
{
"id": "bid_id",
"impid": "imp_id",
"exp": 300,
"price": 0.01,
"adid": "2068416",
"cid": "8048",
"crid": "24080",
"mtype": 1,
"ext": {
"prebid": {
"type": "banner",
"meta": {
"adaptercode": "tagoras"
}
},
"origbidcpm": 0.01
}
}
],
"seat": "tagoras",
"group": 0
}
],
"cur": "USD",
"ext": {
"responsetimemillis": {
"tagoras": "{{ tagoras.response_time_ms }}"
},
"prebid": {
"auctiontimestamp": 0
},
"tmaxrequest": 5000
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"id": "request_id",
"imp": [
{
"id": "imp_id",
"secure": 1,
"banner": {
"w": 320,
"h": 250
},
"ext": {
"tid": "${json-unit.any-string}",
"bidder": {
"cId": "connectionId"
}
}
}
],
"source": {
"tid": "${json-unit.any-string}"
},
"site": {
"domain": "www.example.com",
"page": "http://www.example.com",
"publisher": {
"domain": "example.com"
},
"ext": {
"amp": 0
}
},
"device": {
"ua": "userAgent",
"ip": "193.168.244.1"
},
"at": 1,
"tmax": "${json-unit.any-number}",
"cur": [
"USD"
],
"regs": {
"gdpr": 0
},
"ext": {
"prebid": {
"server": {
"externalurl": "http://localhost:8080",
"gvlid": 1,
"datacenter": "local",
"endpoint": "/openrtb2/auction"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "tid",
"seatbid": [
{
"bid": [
{
"crid": "24080",
"adid": "2068416",
"price": 0.01,
"id": "bid_id",
"impid": "imp_id",
"cid": "8048",
"mtype": 1
}
],
"type": "banner"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,10 @@ adapters.vidazoo.enabled=true
adapters.vidazoo.endpoint=http://localhost:8090/vidazoo-exchange/
adapters.vidazoo.aliases.progx.enabled=true
adapters.vidazoo.aliases.progx.endpoint=http://localhost:8090/progx-exchange/
adapters.vidazoo.aliases.omnidex.enabled=true
adapters.vidazoo.aliases.omnidex.endpoint=http://localhost:8090/omnidex-exchange/
adapters.vidazoo.aliases.tagoras.enabled=true
adapters.vidazoo.aliases.tagoras.endpoint=http://localhost:8090/tagoras-exchange/
adapters.videobyte.enabled=true
adapters.videobyte.endpoint=http://localhost:8090/videobyte-exchange
adapters.videoheroes.enabled=true
Expand Down
Loading