diff --git a/adapters/bizzclick/bizzclick.go b/adapters/blasto/blasto.go similarity index 89% rename from adapters/bizzclick/bizzclick.go rename to adapters/blasto/blasto.go index 40805da0cb0..628ba0e9cf4 100644 --- a/adapters/bizzclick/bizzclick.go +++ b/adapters/blasto/blasto.go @@ -1,4 +1,4 @@ -package bizzclick +package blasto import ( "encoding/json" @@ -60,7 +60,7 @@ func (a *adapter) MakeRequests( requestsToBidder []*adapters.RequestData, errs []error, ) { - bizzclickExt, err := a.getImpressionExt(&openRTBRequest.Imp[0]) + blastoExt, err := a.getImpressionExt(&openRTBRequest.Imp[0]) if err != nil { return nil, []error{err} } @@ -68,7 +68,7 @@ func (a *adapter) MakeRequests( for idx := range openRTBRequest.Imp { openRTBRequest.Imp[idx].Ext = nil } - url, err := a.buildEndpointURL(bizzclickExt) + url, err := a.buildEndpointURL(blastoExt) if err != nil { return nil, []error{err} } @@ -87,33 +87,26 @@ func (a *adapter) MakeRequests( }}, nil } -func (a *adapter) getImpressionExt(imp *openrtb2.Imp) (*openrtb_ext.ExtBizzclick, error) { +func (a *adapter) getImpressionExt(imp *openrtb2.Imp) (*openrtb_ext.ExtBlasto, error) { var bidderExt adapters.ExtImpBidder if err := json.Unmarshal(imp.Ext, &bidderExt); err != nil { return nil, &errortypes.BadInput{ Message: "ext.bidder not provided", } } - var bizzclickExt openrtb_ext.ExtBizzclick - if err := json.Unmarshal(bidderExt.Bidder, &bizzclickExt); err != nil { + var blastoExt openrtb_ext.ExtBlasto + if err := json.Unmarshal(bidderExt.Bidder, &blastoExt); err != nil { return nil, &errortypes.BadInput{ Message: "ext.bidder not provided", } } - return &bizzclickExt, nil + return &blastoExt, nil } -func (a *adapter) buildEndpointURL(params *openrtb_ext.ExtBizzclick) (string, error) { - host := "us-e-node1" - if params.Host != "" { - host = params.Host - } +func (a *adapter) buildEndpointURL(params *openrtb_ext.ExtBlasto) (string, error) { sourceId := params.SourceID - if params.SourceID == "" { - sourceId = params.PlacementID - } - endpointParams := macros.EndpointTemplateParams{AccountID: params.AccountID, SourceId: sourceId, Host: host} + endpointParams := macros.EndpointTemplateParams{AccountID: params.AccountID, SourceId: sourceId} return macros.ResolveMacros(a.endpoint, endpointParams) } diff --git a/adapters/bizzclick/bizzclick_test.go b/adapters/blasto/blasto_test.go similarity index 57% rename from adapters/bizzclick/bizzclick_test.go rename to adapters/blasto/blasto_test.go index 5933ee551a6..f63cc58871c 100644 --- a/adapters/bizzclick/bizzclick_test.go +++ b/adapters/blasto/blasto_test.go @@ -1,4 +1,4 @@ -package bizzclick +package blasto import ( "testing" @@ -10,18 +10,18 @@ import ( ) func TestJsonSamples(t *testing.T) { - bidder, buildErr := Builder(openrtb_ext.BidderBizzclick, config.Adapter{ - Endpoint: "http://{{.Host}}.bizzclick.com/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) + bidder, buildErr := Builder(openrtb_ext.BidderBlasto, config.Adapter{ + Endpoint: "http://t-us.blasto.ai/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) if buildErr != nil { t.Fatalf("Builder returned unexpected error %v", buildErr) } - adapterstest.RunJSONBidderTest(t, "bizzclicktest", bidder) + adapterstest.RunJSONBidderTest(t, "blastotest", bidder) } func TestEndpointTemplateMalformed(t *testing.T) { - _, buildErr := Builder(openrtb_ext.BidderBizzclick, config.Adapter{ + _, buildErr := Builder(openrtb_ext.BidderBlasto, config.Adapter{ Endpoint: "{{Malformed}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) assert.Error(t, buildErr) diff --git a/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json b/adapters/blasto/blastotest/exemplary/banner-app.json similarity index 93% rename from adapters/bizzclick/bizzclicktest/exemplary/banner-app.json rename to adapters/blasto/blastotest/exemplary/banner-app.json index 840ed212623..81b8e21fc3b 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json +++ b/adapters/blasto/blastotest/exemplary/banner-app.json @@ -34,8 +34,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -61,7 +60,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -97,7 +96,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -120,7 +121,7 @@ } ], "type": "banner", - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json b/adapters/blasto/blastotest/exemplary/banner-web.json similarity index 92% rename from adapters/bizzclick/bizzclicktest/exemplary/banner-web.json rename to adapters/blasto/blastotest/exemplary/banner-web.json index 21dad82fd12..d971bfa605f 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json +++ b/adapters/blasto/blastotest/exemplary/banner-web.json @@ -28,8 +28,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } }, @@ -43,8 +42,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -70,7 +68,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -108,7 +106,10 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id1","some-impression-id2"] + "impIDs": [ + "some-impression-id1", + "some-impression-id2" + ] }, "mockResponse": { "status": 200, @@ -143,7 +144,7 @@ } ], "type": "banner", - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json b/adapters/blasto/blastotest/exemplary/default-host-param.json similarity index 93% rename from adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json rename to adapters/blasto/blastotest/exemplary/default-host-param.json index a99099092d7..81b8e21fc3b 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json +++ b/adapters/blasto/blastotest/exemplary/default-host-param.json @@ -34,7 +34,7 @@ "ext": { "bidder": { "accountId": "accountId", - "placementId": "placementId" + "sourceId": "sourceId" } } } @@ -60,7 +60,7 @@ "123.123.123.123" ] }, - "uri": "http://us-e-node1.bizzclick.com/bid?rtb_seat_id=placementId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -96,7 +96,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -119,7 +121,7 @@ } ], "type": "banner", - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/exemplary/native-app.json b/adapters/blasto/blastotest/exemplary/native-app.json similarity index 94% rename from adapters/bizzclick/bizzclicktest/exemplary/native-app.json rename to adapters/blasto/blastotest/exemplary/native-app.json index 65fe85085ad..946fa9e0300 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/native-app.json +++ b/adapters/blasto/blastotest/exemplary/native-app.json @@ -34,8 +34,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -61,7 +60,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -97,7 +96,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -118,7 +119,7 @@ } ], "type": "native", - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/exemplary/native-web.json b/adapters/blasto/blastotest/exemplary/native-web.json similarity index 94% rename from adapters/bizzclick/bizzclicktest/exemplary/native-web.json rename to adapters/blasto/blastotest/exemplary/native-web.json index 0e36975194c..f55da66081e 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/native-web.json +++ b/adapters/blasto/blastotest/exemplary/native-web.json @@ -28,8 +28,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -55,7 +54,7 @@ "2607:fb90:f27:4512:d800:cb23:a603:e245" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -85,7 +84,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -105,7 +106,7 @@ "crid": "20" } ], - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/exemplary/video-app.json b/adapters/blasto/blastotest/exemplary/video-app.json similarity index 93% rename from adapters/bizzclick/bizzclicktest/exemplary/video-app.json rename to adapters/blasto/blastotest/exemplary/video-app.json index 9c16795230a..64606f73b0d 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/video-app.json +++ b/adapters/blasto/blastotest/exemplary/video-app.json @@ -39,8 +39,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -66,7 +65,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -107,7 +106,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -129,7 +130,7 @@ "h": 720 } ], - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/exemplary/video-web.json b/adapters/blasto/blastotest/exemplary/video-web.json similarity index 93% rename from adapters/bizzclick/bizzclicktest/exemplary/video-web.json rename to adapters/blasto/blastotest/exemplary/video-web.json index 9410fdb78df..2904880889c 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/video-web.json +++ b/adapters/blasto/blastotest/exemplary/video-web.json @@ -33,8 +33,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -60,7 +59,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -95,7 +94,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -122,7 +123,7 @@ } } ], - "seat": "bizzclick" + "seat": "blasto" } ], "cur": "USD" diff --git a/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json b/adapters/blasto/blastotest/supplemental/empty-seatbid-array.json similarity index 93% rename from adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json rename to adapters/blasto/blastotest/supplemental/empty-seatbid-array.json index 40aa5374504..9bb5ebda566 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json +++ b/adapters/blasto/blastotest/supplemental/empty-seatbid-array.json @@ -39,8 +39,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -66,7 +65,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -107,7 +106,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/supplemental/invalid-bizzclick-ext-object.json b/adapters/blasto/blastotest/supplemental/invalid-blasto-ext-object.json similarity index 100% rename from adapters/bizzclick/bizzclicktest/supplemental/invalid-bizzclick-ext-object.json rename to adapters/blasto/blastotest/supplemental/invalid-blasto-ext-object.json diff --git a/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json b/adapters/blasto/blastotest/supplemental/invalid-response.json similarity index 92% rename from adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json rename to adapters/blasto/blastotest/supplemental/invalid-response.json index 4808f4823ee..620e95148a8 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json +++ b/adapters/blasto/blastotest/supplemental/invalid-response.json @@ -34,8 +34,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -61,7 +60,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -97,7 +96,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json b/adapters/blasto/blastotest/supplemental/status-code-bad-request.json similarity index 90% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json rename to adapters/blasto/blastotest/supplemental/status-code-bad-request.json index b274c758856..df55900b99d 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json +++ b/adapters/blasto/blastotest/supplemental/status-code-bad-request.json @@ -33,8 +33,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -43,7 +42,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -78,7 +77,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 400 diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json b/adapters/blasto/blastotest/supplemental/status-code-no-content.json similarity index 88% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json rename to adapters/blasto/blastotest/supplemental/status-code-no-content.json index 6163a4af0dd..f59c785b218 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json +++ b/adapters/blasto/blastotest/supplemental/status-code-no-content.json @@ -27,8 +27,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -37,7 +36,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -66,7 +65,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 204 diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json b/adapters/blasto/blastotest/supplemental/status-code-other-error.json similarity index 89% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json rename to adapters/blasto/blastotest/supplemental/status-code-other-error.json index af2a91110d2..c58e935a3e6 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json +++ b/adapters/blasto/blastotest/supplemental/status-code-other-error.json @@ -27,8 +27,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -37,7 +36,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -66,7 +65,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 306 diff --git a/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json b/adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json similarity index 89% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json rename to adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json index d4c0fa392c8..d1bbba75afb 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json +++ b/adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json @@ -27,8 +27,7 @@ "ext": { "bidder": { "accountId": "accountId", - "sourceId": "sourceId", - "host": "host" + "sourceId": "sourceId" } } } @@ -37,7 +36,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://t-us.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -66,7 +65,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 503 diff --git a/adapters/bizzclick/params_test.go b/adapters/blasto/params_test.go similarity index 71% rename from adapters/bizzclick/params_test.go rename to adapters/blasto/params_test.go index fe72e41f16b..a3c572ac3f8 100644 --- a/adapters/bizzclick/params_test.go +++ b/adapters/blasto/params_test.go @@ -1,4 +1,4 @@ -package bizzclick +package blasto import ( "encoding/json" @@ -8,7 +8,7 @@ import ( ) var validParams = []string{ - `{ "host": "ep1", "sourceId": "partner", "accountId": "hash" }`, + `{ "sourceId": "partner", "accountId": "hash" }`, } func TestValidParams(t *testing.T) { @@ -18,8 +18,8 @@ func TestValidParams(t *testing.T) { } for _, validParam := range validParams { - if err := validator.Validate(openrtb_ext.BidderBizzclick, json.RawMessage(validParam)); err != nil { - t.Errorf("Schema rejected Bizzclick params: %s", validParam) + if err := validator.Validate(openrtb_ext.BidderBlasto, json.RawMessage(validParam)); err != nil { + t.Errorf("Schema rejected Blasto params: %s", validParam) } } } @@ -43,7 +43,7 @@ func TestInvalidParams(t *testing.T) { } for _, invalidParam := range invalidParams { - if err := validator.Validate(openrtb_ext.BidderBizzclick, json.RawMessage(invalidParam)); err == nil { + if err := validator.Validate(openrtb_ext.BidderBlasto, json.RawMessage(invalidParam)); err == nil { t.Errorf("Schema allowed unexpected params: %s", invalidParam) } } diff --git a/exchange/adapter_builders.go b/exchange/adapter_builders.go index 1593773b064..bbebaf71edb 100755 --- a/exchange/adapter_builders.go +++ b/exchange/adapter_builders.go @@ -53,7 +53,7 @@ import ( "github.com/prebid/prebid-server/v2/adapters/bidmyadz" "github.com/prebid/prebid-server/v2/adapters/bidscube" "github.com/prebid/prebid-server/v2/adapters/bidstack" - "github.com/prebid/prebid-server/v2/adapters/bizzclick" + "github.com/prebid/prebid-server/v2/adapters/blasto" "github.com/prebid/prebid-server/v2/adapters/bliink" "github.com/prebid/prebid-server/v2/adapters/blue" "github.com/prebid/prebid-server/v2/adapters/bluesea" @@ -263,7 +263,7 @@ func newAdapterBuilders() map[openrtb_ext.BidderName]adapters.Builder { openrtb_ext.BidderBidmyadz: bidmyadz.Builder, openrtb_ext.BidderBidsCube: bidscube.Builder, openrtb_ext.BidderBidstack: bidstack.Builder, - openrtb_ext.BidderBizzclick: bizzclick.Builder, + openrtb_ext.BidderBlasto: blasto.Builder, openrtb_ext.BidderBliink: bliink.Builder, openrtb_ext.BidderBlue: blue.Builder, openrtb_ext.BidderBluesea: bluesea.Builder, diff --git a/exchange/adapter_util.go b/exchange/adapter_util.go index 0d277d15723..73f17e609c2 100644 --- a/exchange/adapter_util.go +++ b/exchange/adapter_util.go @@ -120,6 +120,7 @@ func GetDisabledBidderWarningMessages(infos config.BidderInfos) map[string]strin "applogy": `Bidder "applogy" is no longer available in Prebid Server. Please update your configuration.`, "rhythmone": `Bidder "rhythmone" is no longer available in Prebid Server. Please update your configuration.`, "nanointeractive": `Bidder "nanointeractive" is no longer available in Prebid Server. Please update your configuration.`, + "bizzclick": `Bidder "bizzclick" is no longer available in Prebid Server. Please update your configuration. "bizzclick" has been renamed to "blasto".`, "liftoff": `Bidder "liftoff" is no longer available in Prebid Server. If you're looking to use the Vungle Exchange adapter, please rename it to "vungle" in your configuration.`, } diff --git a/openrtb_ext/bidders.go b/openrtb_ext/bidders.go index adcee3ad09a..a2a4d51a2d7 100644 --- a/openrtb_ext/bidders.go +++ b/openrtb_ext/bidders.go @@ -69,7 +69,7 @@ var coreBidderNames []BidderName = []BidderName{ BidderBidmyadz, BidderBidsCube, BidderBidstack, - BidderBizzclick, + BidderBlasto, BidderBliink, BidderBlue, BidderBluesea, @@ -379,7 +379,7 @@ const ( BidderBidmyadz BidderName = "bidmyadz" BidderBidsCube BidderName = "bidscube" BidderBidstack BidderName = "bidstack" - BidderBizzclick BidderName = "bizzclick" + BidderBlasto BidderName = "blasto" BidderBliink BidderName = "bliink" BidderBlue BidderName = "blue" BidderBluesea BidderName = "bluesea" diff --git a/openrtb_ext/imp_bizzclick.go b/openrtb_ext/imp_blasto.go similarity index 86% rename from openrtb_ext/imp_bizzclick.go rename to openrtb_ext/imp_blasto.go index 15a8c2d0d46..b49544895a9 100644 --- a/openrtb_ext/imp_bizzclick.go +++ b/openrtb_ext/imp_blasto.go @@ -1,6 +1,6 @@ package openrtb_ext -type ExtBizzclick struct { +type ExtBlasto struct { AccountID string `json:"accountId"` SourceID string `json:"sourceId"` Host string `json:"host"` diff --git a/static/bidder-info/bizzclick.yaml b/static/bidder-info/bizzclick.yaml deleted file mode 100644 index 9d0103bcd81..00000000000 --- a/static/bidder-info/bizzclick.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# Contact support@bizzclick.com to connect with Bizzclick exchange. -# We have the following regional endpoint sub-domains: US East - us-e-node1, EU: n1, APAC: n3 -# Use Host macro to resolve the endpoint based on the datacenter. -# By default, we will use the US East sub-domain. -# Please deploy this config in each of your datacenters with the appropriate regional subdomain -endpoint: 'http://{{.Host}}.bizzclick.com/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}' -maintainer: - email: 'support@bizzclick.com' -geoscope: - - global -endpointCompression: "GZIP" -capabilities: - app: - mediaTypes: - - banner - - video - - native - site: - mediaTypes: - - banner - - video - - native diff --git a/static/bidder-info/blasto.yaml b/static/bidder-info/blasto.yaml new file mode 100644 index 00000000000..c9ba51fd1d2 --- /dev/null +++ b/static/bidder-info/blasto.yaml @@ -0,0 +1,23 @@ +# Contact support@blasto.ai to connect with Blasto exchange. +# We have the following regional endpoint sub-domains: +# US East: t-us +# EU: t-eu +# APAC: t-apac +# Please deploy this config in each of your datacenters with the appropriate regional subdomain +endpoint: 'http://t-us.blasto.ai/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}' +maintainer: + email: 'support@blasto.ai' +geoscope: + - global +endpointCompression: 'GZIP' +capabilities: + app: + mediaTypes: + - banner + - video + - native + site: + mediaTypes: + - banner + - video + - native diff --git a/static/bidder-params/bizzclick.json b/static/bidder-params/bizzclick.json deleted file mode 100644 index 3f16e990be1..00000000000 --- a/static/bidder-params/bizzclick.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Bizzclick Adapter Params", - "description": "A schema which validates params accepted by the Bizzclick adapter", - "type": "object", - "properties": { - "accountId": { - "type": "string", - "description": "Account id", - "minLength": 1 - }, - "sourceId": { - "type": "string", - "description": "Source id", - "minLength": 1 - }, - "host": { - "type": "string", - "description": "Server region", - "minLength": 1 - }, - "placementId": { - "type": "string", - "description": "Deprecated, use sourceId instead", - "minLength": 1 - } - }, - "oneOf": [ - { - "required": [ - "accountId", - "placementId" - ] - }, - { - "required": [ - "accountId", - "sourceId" - ] - } - ] -} \ No newline at end of file diff --git a/static/bidder-params/blasto.json b/static/bidder-params/blasto.json new file mode 100644 index 00000000000..a6490ab9871 --- /dev/null +++ b/static/bidder-params/blasto.json @@ -0,0 +1,22 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Blasto Adapter Params", + "description": "A schema which validates params accepted by the Blasto adapter", + "type": "object", + "properties": { + "accountId": { + "type": "string", + "description": "Account id", + "minLength": 1 + }, + "sourceId": { + "type": "string", + "description": "Source id", + "minLength": 1 + } + }, + "required": [ + "accountId", + "sourceId" + ] +} \ No newline at end of file