From 3eb3ee3ccc05bf005b258719e968b409b57f0755 Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 18 Apr 2024 23:07:33 +0300 Subject: [PATCH] Update SmartHub adapter and add alias Markapp --- adapters/smarthub/smarthub_test.go | 2 +- adapters/smarthub/smarthubtest/exemplary/banner.json | 2 +- adapters/smarthub/smarthubtest/exemplary/native.json | 2 +- adapters/smarthub/smarthubtest/exemplary/video.json | 2 +- .../smarthub/smarthubtest/supplemental/bad-response.json | 2 +- .../smarthubtest/supplemental/empty-seatbid-0-bid.json | 2 +- .../smarthub/smarthubtest/supplemental/empty-seatbid.json | 2 +- adapters/smarthub/smarthubtest/supplemental/status-204.json | 2 +- adapters/smarthub/smarthubtest/supplemental/status-400.json | 2 +- adapters/smarthub/smarthubtest/supplemental/status-503.json | 2 +- .../smarthubtest/supplemental/unexpected-status.json | 2 +- .../smarthub/smarthubtest/supplemental/wrong-bidtype.json | 2 +- static/bidder-info/markapp.yaml | 5 +++++ static/bidder-info/smarthub.yaml | 2 +- 14 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 static/bidder-info/markapp.yaml diff --git a/adapters/smarthub/smarthub_test.go b/adapters/smarthub/smarthub_test.go index d231f77703a..7194421a20e 100644 --- a/adapters/smarthub/smarthub_test.go +++ b/adapters/smarthub/smarthub_test.go @@ -11,7 +11,7 @@ import ( func TestJsonSamples(t *testing.T) { bidder, buildErr := Builder(openrtb_ext.BidderSmartHub, config.Adapter{ - Endpoint: "http://{{.Host}}-prebid.smart-hub.io/?seat={{.AccountID}}&token={{.SourceId}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) + Endpoint: "http://prebid.smart-hub.io/pbserver?partnerName={{.Host}}&seat={{.AccountID}}&token={{.SourceId}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) assert.NoError(t, buildErr) adapterstest.RunJSONBidderTest(t, "smarthubtest", bidder) diff --git a/adapters/smarthub/smarthubtest/exemplary/banner.json b/adapters/smarthub/smarthubtest/exemplary/banner.json index a8b231b0ec5..77acbbaf8bf 100644 --- a/adapters/smarthub/smarthubtest/exemplary/banner.json +++ b/adapters/smarthub/smarthubtest/exemplary/banner.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/exemplary/native.json b/adapters/smarthub/smarthubtest/exemplary/native.json index 60c9472ab78..ddc8f811da3 100644 --- a/adapters/smarthub/smarthubtest/exemplary/native.json +++ b/adapters/smarthub/smarthubtest/exemplary/native.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/exemplary/video.json b/adapters/smarthub/smarthubtest/exemplary/video.json index f64e4fe1fd4..581199a07fc 100644 --- a/adapters/smarthub/smarthubtest/exemplary/video.json +++ b/adapters/smarthub/smarthubtest/exemplary/video.json @@ -66,7 +66,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/bad-response.json b/adapters/smarthub/smarthubtest/supplemental/bad-response.json index 423d144b979..778f834640d 100644 --- a/adapters/smarthub/smarthubtest/supplemental/bad-response.json +++ b/adapters/smarthub/smarthubtest/supplemental/bad-response.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json index d40787a707f..cbfd0d78261 100644 --- a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json +++ b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid-0-bid.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json index 1789e71f785..982be57bfd3 100644 --- a/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json +++ b/adapters/smarthub/smarthubtest/supplemental/empty-seatbid.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/status-204.json b/adapters/smarthub/smarthubtest/supplemental/status-204.json index a72264d0207..a10c149b317 100644 --- a/adapters/smarthub/smarthubtest/supplemental/status-204.json +++ b/adapters/smarthub/smarthubtest/supplemental/status-204.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/status-400.json b/adapters/smarthub/smarthubtest/supplemental/status-400.json index 7af75b06c5e..b0781578360 100644 --- a/adapters/smarthub/smarthubtest/supplemental/status-400.json +++ b/adapters/smarthub/smarthubtest/supplemental/status-400.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/status-503.json b/adapters/smarthub/smarthubtest/supplemental/status-503.json index d2cc83dd54f..d8bc679d9f9 100644 --- a/adapters/smarthub/smarthubtest/supplemental/status-503.json +++ b/adapters/smarthub/smarthubtest/supplemental/status-503.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json b/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json index b2f1c76e143..c960dbb8ffc 100644 --- a/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json +++ b/adapters/smarthub/smarthubtest/supplemental/unexpected-status.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json b/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json index 7c65602c195..ba9f9daab7f 100644 --- a/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json +++ b/adapters/smarthub/smarthubtest/supplemental/wrong-bidtype.json @@ -46,7 +46,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://partnertest-prebid.smart-hub.io/?seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", + "uri": "http://prebid.smart-hub.io/pbserver?partnerName=partnertest&seat=9Q20EdGxzgWdfPYShScl&token=zpl5iB5Ugpe9ofVTzi44WzfjZZYq1yer", "body": { "id": "id", "imp": [ diff --git a/static/bidder-info/markapp.yaml b/static/bidder-info/markapp.yaml new file mode 100644 index 00000000000..79d8887c20c --- /dev/null +++ b/static/bidder-info/markapp.yaml @@ -0,0 +1,5 @@ +endpoint: "http://markapp-prebid.smart-hub.io/pbserver/?seat={{.AccountID}}&token={{.SourceId}}" +aliasOf: "smarthub" +userSync: + supports: + - redirect \ No newline at end of file diff --git a/static/bidder-info/smarthub.yaml b/static/bidder-info/smarthub.yaml index dcb65ede0ce..687c6c3fe81 100644 --- a/static/bidder-info/smarthub.yaml +++ b/static/bidder-info/smarthub.yaml @@ -1,4 +1,4 @@ -endpoint: "http://{{.Host}}-prebid.smart-hub.io/?seat={{.AccountID}}&token={{.SourceId}}" +endpoint: "http://prebid.smart-hub.io/pbserver?partnerName={{.Host}}&seat={{.AccountID}}&token={{.SourceId}}" maintainer: email: "support@smart-hub.io" capabilities: