From b21c2a0980c8730e8d8b83eb48790b10048baec3 Mon Sep 17 00:00:00 2001 From: BizzClick Date: Fri, 17 May 2024 21:55:13 +0300 Subject: [PATCH 1/5] rename bizzclick to blasto --- .../{bizzclick/bizzclick.go => blasto/blasto.go} | 16 ++++++++-------- .../bizzclick_test.go => blasto/blasto_test.go} | 10 +++++----- .../blastotest}/exemplary/banner-app.json | 8 +++++--- .../blastotest}/exemplary/banner-web.json | 9 ++++++--- .../exemplary/default-host-param.json | 8 +++++--- .../blastotest}/exemplary/native-app.json | 8 +++++--- .../blastotest}/exemplary/native-web.json | 8 +++++--- .../blastotest}/exemplary/video-app.json | 8 +++++--- .../blastotest}/exemplary/video-web.json | 8 +++++--- .../supplemental/empty-seatbid-array.json | 6 ++++-- .../supplemental/invalid-blasto-ext-object.json} | 0 .../supplemental/invalid-response.json | 6 ++++-- .../supplemental/status-code-bad-request.json | 6 ++++-- .../supplemental/status-code-no-content.json | 6 ++++-- .../supplemental/status-code-other-error.json | 6 ++++-- .../status-code-service-unavailable.json | 6 ++++-- adapters/{bizzclick => blasto}/params_test.go | 8 ++++---- exchange/adapter_builders.go | 4 ++-- openrtb_ext/bidders.go | 4 ++-- openrtb_ext/{imp_bizzclick.go => imp_blasto.go} | 2 +- .../bidder-info/{bizzclick.yaml => blasto.yaml} | 8 ++++---- .../{bizzclick.json => blasto.json} | 4 ++-- 22 files changed, 88 insertions(+), 61 deletions(-) rename adapters/{bizzclick/bizzclick.go => blasto/blasto.go} (92%) rename adapters/{bizzclick/bizzclick_test.go => blasto/blasto_test.go} (57%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/banner-app.json (94%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/banner-web.json (95%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/default-host-param.json (94%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/native-app.json (95%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/native-web.json (95%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/video-app.json (95%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/exemplary/video-web.json (95%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/supplemental/empty-seatbid-array.json (94%) rename adapters/{bizzclick/bizzclicktest/supplemental/invalid-bizzclick-ext-object.json => blasto/blastotest/supplemental/invalid-blasto-ext-object.json} (100%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/supplemental/invalid-response.json (94%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/supplemental/status-code-bad-request.json (92%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/supplemental/status-code-no-content.json (91%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/supplemental/status-code-other-error.json (91%) rename adapters/{bizzclick/bizzclicktest => blasto/blastotest}/supplemental/status-code-service-unavailable.json (91%) rename adapters/{bizzclick => blasto}/params_test.go (76%) rename openrtb_ext/{imp_bizzclick.go => imp_blasto.go} (86%) rename static/bidder-info/{bizzclick.yaml => blasto.yaml} (68%) rename static/bidder-params/{bizzclick.json => blasto.json} (92%) diff --git a/adapters/bizzclick/bizzclick.go b/adapters/blasto/blasto.go similarity index 92% rename from adapters/bizzclick/bizzclick.go rename to adapters/blasto/blasto.go index 40805da0cb0..4cfb0c97065 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,24 +87,24 @@ 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) { +func (a *adapter) buildEndpointURL(params *openrtb_ext.ExtBlasto) (string, error) { host := "us-e-node1" if params.Host != "" { host = params.Host 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..1c9d79410d2 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://{{.Host}}.blasto.com/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 94% rename from adapters/bizzclick/bizzclicktest/exemplary/banner-app.json rename to adapters/blasto/blastotest/exemplary/banner-app.json index 840ed212623..7bdcf0c51f2 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/banner-app.json +++ b/adapters/blasto/blastotest/exemplary/banner-app.json @@ -61,7 +61,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -97,7 +97,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -120,7 +122,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 95% rename from adapters/bizzclick/bizzclicktest/exemplary/banner-web.json rename to adapters/blasto/blastotest/exemplary/banner-web.json index 21dad82fd12..09382bd37b5 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/banner-web.json +++ b/adapters/blasto/blastotest/exemplary/banner-web.json @@ -70,7 +70,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -108,7 +108,10 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id1","some-impression-id2"] + "impIDs": [ + "some-impression-id1", + "some-impression-id2" + ] }, "mockResponse": { "status": 200, @@ -143,7 +146,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 94% rename from adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json rename to adapters/blasto/blastotest/exemplary/default-host-param.json index a99099092d7..468c5be00a0 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/default-host-param.json +++ b/adapters/blasto/blastotest/exemplary/default-host-param.json @@ -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://us-e-node1.blasto.ai/bid?rtb_seat_id=placementId&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 95% rename from adapters/bizzclick/bizzclicktest/exemplary/native-app.json rename to adapters/blasto/blastotest/exemplary/native-app.json index 65fe85085ad..d0e81d4798d 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/native-app.json +++ b/adapters/blasto/blastotest/exemplary/native-app.json @@ -61,7 +61,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -97,7 +97,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -118,7 +120,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 95% rename from adapters/bizzclick/bizzclicktest/exemplary/native-web.json rename to adapters/blasto/blastotest/exemplary/native-web.json index 0e36975194c..9a6fbf085f8 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/native-web.json +++ b/adapters/blasto/blastotest/exemplary/native-web.json @@ -55,7 +55,7 @@ "2607:fb90:f27:4512:d800:cb23:a603:e245" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -85,7 +85,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -105,7 +107,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 95% rename from adapters/bizzclick/bizzclicktest/exemplary/video-app.json rename to adapters/blasto/blastotest/exemplary/video-app.json index 9c16795230a..29d182505c4 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/video-app.json +++ b/adapters/blasto/blastotest/exemplary/video-app.json @@ -66,7 +66,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -107,7 +107,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -129,7 +131,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 95% rename from adapters/bizzclick/bizzclicktest/exemplary/video-web.json rename to adapters/blasto/blastotest/exemplary/video-web.json index 9410fdb78df..7dacd1d7943 100644 --- a/adapters/bizzclick/bizzclicktest/exemplary/video-web.json +++ b/adapters/blasto/blastotest/exemplary/video-web.json @@ -60,7 +60,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -95,7 +95,9 @@ }, "tmax": 1000 }, - "impIDs":["some-impression-id"] + "impIDs": [ + "some-impression-id" + ] }, "mockResponse": { "status": 200, @@ -122,7 +124,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 94% rename from adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json rename to adapters/blasto/blastotest/supplemental/empty-seatbid-array.json index 40aa5374504..ab7e9a8accb 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/empty-seatbid-array.json +++ b/adapters/blasto/blastotest/supplemental/empty-seatbid-array.json @@ -66,7 +66,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -107,7 +107,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 94% rename from adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json rename to adapters/blasto/blastotest/supplemental/invalid-response.json index 4808f4823ee..a5d81d3490f 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/invalid-response.json +++ b/adapters/blasto/blastotest/supplemental/invalid-response.json @@ -61,7 +61,7 @@ "123.123.123.123" ] }, - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "device": { @@ -97,7 +97,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 92% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json rename to adapters/blasto/blastotest/supplemental/status-code-bad-request.json index b274c758856..e841d18a6b7 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-bad-request.json +++ b/adapters/blasto/blastotest/supplemental/status-code-bad-request.json @@ -43,7 +43,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -78,7 +78,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 91% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json rename to adapters/blasto/blastotest/supplemental/status-code-no-content.json index 6163a4af0dd..e0e1bbcd0c5 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-no-content.json +++ b/adapters/blasto/blastotest/supplemental/status-code-no-content.json @@ -37,7 +37,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -66,7 +66,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 91% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json rename to adapters/blasto/blastotest/supplemental/status-code-other-error.json index af2a91110d2..f7a4f641e62 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-other-error.json +++ b/adapters/blasto/blastotest/supplemental/status-code-other-error.json @@ -37,7 +37,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -66,7 +66,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 91% rename from adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json rename to adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json index d4c0fa392c8..9afe7ff6958 100644 --- a/adapters/bizzclick/bizzclicktest/supplemental/status-code-service-unavailable.json +++ b/adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json @@ -37,7 +37,7 @@ "httpCalls": [ { "expectedRequest": { - "uri": "http://host.bizzclick.com/bid?rtb_seat_id=sourceId&secret_key=accountId", + "uri": "http://host.blasto.ai/bid?rtb_seat_id=sourceId&secret_key=accountId", "body": { "id": "some-request-id", "imp": [ @@ -66,7 +66,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 76% rename from adapters/bizzclick/params_test.go rename to adapters/blasto/params_test.go index fe72e41f16b..45731ca6a5d 100644 --- a/adapters/bizzclick/params_test.go +++ b/adapters/blasto/params_test.go @@ -1,4 +1,4 @@ -package bizzclick +package blasto import ( "encoding/json" @@ -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 09c7bf83777..1ff22612e40 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/openrtb_ext/bidders.go b/openrtb_ext/bidders.go index 5f6e35452d5..d43616815f1 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, @@ -357,7 +357,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/blasto.yaml similarity index 68% rename from static/bidder-info/bizzclick.yaml rename to static/bidder-info/blasto.yaml index 9d0103bcd81..de59b7f2524 100644 --- a/static/bidder-info/bizzclick.yaml +++ b/static/bidder-info/blasto.yaml @@ -1,14 +1,14 @@ -# Contact support@bizzclick.com to connect with Bizzclick exchange. +# Contact support@blasto.ai to connect with Blasto 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}}' +endpoint: 'http://{{.Host}}.blasto.ai/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}' maintainer: - email: 'support@bizzclick.com' + email: 'support@blasto.ai' geoscope: - global -endpointCompression: "GZIP" +endpointCompression: 'GZIP' capabilities: app: mediaTypes: diff --git a/static/bidder-params/bizzclick.json b/static/bidder-params/blasto.json similarity index 92% rename from static/bidder-params/bizzclick.json rename to static/bidder-params/blasto.json index 3f16e990be1..5ed3049195e 100644 --- a/static/bidder-params/bizzclick.json +++ b/static/bidder-params/blasto.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Bizzclick Adapter Params", - "description": "A schema which validates params accepted by the Bizzclick adapter", + "title": "Blasto Adapter Params", + "description": "A schema which validates params accepted by the Blasto adapter", "type": "object", "properties": { "accountId": { From 4912ca13699e31789fcf197b8dee9e682f2c82bf Mon Sep 17 00:00:00 2001 From: BizzClick Date: Fri, 17 May 2024 22:01:21 +0300 Subject: [PATCH 2/5] fix: domain --- adapters/blasto/blasto_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/blasto/blasto_test.go b/adapters/blasto/blasto_test.go index 1c9d79410d2..8a17e07b2d5 100644 --- a/adapters/blasto/blasto_test.go +++ b/adapters/blasto/blasto_test.go @@ -11,7 +11,7 @@ import ( func TestJsonSamples(t *testing.T) { bidder, buildErr := Builder(openrtb_ext.BidderBlasto, config.Adapter{ - Endpoint: "http://{{.Host}}.blasto.com/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) + Endpoint: "http://{{.Host}}.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) From eb01327a789827d68558e3b7e7d70bd930254ce7 Mon Sep 17 00:00:00 2001 From: BizzClick Date: Mon, 20 May 2024 12:50:06 +0300 Subject: [PATCH 3/5] update sub-domain in yaml --- static/bidder-info/blasto.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/bidder-info/blasto.yaml b/static/bidder-info/blasto.yaml index de59b7f2524..959cfd190a5 100644 --- a/static/bidder-info/blasto.yaml +++ b/static/bidder-info/blasto.yaml @@ -1,5 +1,5 @@ # Contact support@blasto.ai to connect with Blasto exchange. -# We have the following regional endpoint sub-domains: US East - us-e-node1, EU: n1, APAC: n3 +# We have the following regional endpoint sub-domains: US East: t-us, EU: t-eu, APAC: t-apac # 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 From bd269e5136713918ca84913dc786b142dbbb3866 Mon Sep 17 00:00:00 2001 From: BizzClick Date: Fri, 24 May 2024 14:41:31 +0300 Subject: [PATCH 4/5] add bizzclick deprecated warning --- exchange/adapter_util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/exchange/adapter_util.go b/exchange/adapter_util.go index cd70530bfc3..0a05fc19868 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".`, } return mergeRemovedAndDisabledBidderWarningMessages(removed, infos) From 10ab052fee4968366a05d2eca386714d6b042591 Mon Sep 17 00:00:00 2001 From: BizzClick Date: Mon, 1 Jul 2024 09:40:35 +0300 Subject: [PATCH 5/5] remove host & placementId deprecated params --- adapters/blasto/blasto.go | 9 +------ adapters/blasto/blasto_test.go | 2 +- .../blastotest/exemplary/banner-app.json | 5 ++-- .../blastotest/exemplary/banner-web.json | 8 +++--- .../exemplary/default-host-param.json | 4 +-- .../blastotest/exemplary/native-app.json | 5 ++-- .../blastotest/exemplary/native-web.json | 5 ++-- .../blastotest/exemplary/video-app.json | 5 ++-- .../blastotest/exemplary/video-web.json | 5 ++-- .../supplemental/empty-seatbid-array.json | 5 ++-- .../supplemental/invalid-response.json | 5 ++-- .../supplemental/status-code-bad-request.json | 5 ++-- .../supplemental/status-code-no-content.json | 5 ++-- .../supplemental/status-code-other-error.json | 5 ++-- .../status-code-service-unavailable.json | 5 ++-- adapters/blasto/params_test.go | 2 +- static/bidder-info/blasto.yaml | 9 ++++--- static/bidder-params/blasto.json | 26 +++---------------- 18 files changed, 38 insertions(+), 77 deletions(-) diff --git a/adapters/blasto/blasto.go b/adapters/blasto/blasto.go index 4cfb0c97065..628ba0e9cf4 100644 --- a/adapters/blasto/blasto.go +++ b/adapters/blasto/blasto.go @@ -105,15 +105,8 @@ func (a *adapter) getImpressionExt(imp *openrtb2.Imp) (*openrtb_ext.ExtBlasto, e } func (a *adapter) buildEndpointURL(params *openrtb_ext.ExtBlasto) (string, error) { - host := "us-e-node1" - if params.Host != "" { - host = params.Host - } 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/blasto/blasto_test.go b/adapters/blasto/blasto_test.go index 8a17e07b2d5..f63cc58871c 100644 --- a/adapters/blasto/blasto_test.go +++ b/adapters/blasto/blasto_test.go @@ -11,7 +11,7 @@ import ( func TestJsonSamples(t *testing.T) { bidder, buildErr := Builder(openrtb_ext.BidderBlasto, config.Adapter{ - Endpoint: "http://{{.Host}}.blasto.ai/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}"}, config.Server{ExternalUrl: "http://hosturl.com", GvlID: 1, DataCenter: "2"}) + 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) diff --git a/adapters/blasto/blastotest/exemplary/banner-app.json b/adapters/blasto/blastotest/exemplary/banner-app.json index 7bdcf0c51f2..81b8e21fc3b 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/exemplary/banner-web.json b/adapters/blasto/blastotest/exemplary/banner-web.json index 09382bd37b5..d971bfa605f 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/exemplary/default-host-param.json b/adapters/blasto/blastotest/exemplary/default-host-param.json index 468c5be00a0..81b8e21fc3b 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/exemplary/native-app.json b/adapters/blasto/blastotest/exemplary/native-app.json index d0e81d4798d..946fa9e0300 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/exemplary/native-web.json b/adapters/blasto/blastotest/exemplary/native-web.json index 9a6fbf085f8..f55da66081e 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/exemplary/video-app.json b/adapters/blasto/blastotest/exemplary/video-app.json index 29d182505c4..64606f73b0d 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/exemplary/video-web.json b/adapters/blasto/blastotest/exemplary/video-web.json index 7dacd1d7943..2904880889c 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/supplemental/empty-seatbid-array.json b/adapters/blasto/blastotest/supplemental/empty-seatbid-array.json index ab7e9a8accb..9bb5ebda566 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/supplemental/invalid-response.json b/adapters/blasto/blastotest/supplemental/invalid-response.json index a5d81d3490f..620e95148a8 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": { diff --git a/adapters/blasto/blastotest/supplemental/status-code-bad-request.json b/adapters/blasto/blastotest/supplemental/status-code-bad-request.json index e841d18a6b7..df55900b99d 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": [ diff --git a/adapters/blasto/blastotest/supplemental/status-code-no-content.json b/adapters/blasto/blastotest/supplemental/status-code-no-content.json index e0e1bbcd0c5..f59c785b218 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": [ diff --git a/adapters/blasto/blastotest/supplemental/status-code-other-error.json b/adapters/blasto/blastotest/supplemental/status-code-other-error.json index f7a4f641e62..c58e935a3e6 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": [ diff --git a/adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json b/adapters/blasto/blastotest/supplemental/status-code-service-unavailable.json index 9afe7ff6958..d1bbba75afb 100644 --- a/adapters/blasto/blastotest/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.blasto.ai/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": [ diff --git a/adapters/blasto/params_test.go b/adapters/blasto/params_test.go index 45731ca6a5d..a3c572ac3f8 100644 --- a/adapters/blasto/params_test.go +++ b/adapters/blasto/params_test.go @@ -8,7 +8,7 @@ import ( ) var validParams = []string{ - `{ "host": "ep1", "sourceId": "partner", "accountId": "hash" }`, + `{ "sourceId": "partner", "accountId": "hash" }`, } func TestValidParams(t *testing.T) { diff --git a/static/bidder-info/blasto.yaml b/static/bidder-info/blasto.yaml index 959cfd190a5..c9ba51fd1d2 100644 --- a/static/bidder-info/blasto.yaml +++ b/static/bidder-info/blasto.yaml @@ -1,9 +1,10 @@ # 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 -# Use Host macro to resolve the endpoint based on the datacenter. -# By default, we will use the US East sub-domain. +# 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://{{.Host}}.blasto.ai/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}' +endpoint: 'http://t-us.blasto.ai/bid?rtb_seat_id={{.SourceId}}&secret_key={{.AccountID}}' maintainer: email: 'support@blasto.ai' geoscope: diff --git a/static/bidder-params/blasto.json b/static/bidder-params/blasto.json index 5ed3049195e..a6490ab9871 100644 --- a/static/bidder-params/blasto.json +++ b/static/bidder-params/blasto.json @@ -13,30 +13,10 @@ "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" - ] - } + "required": [ + "accountId", + "sourceId" ] } \ No newline at end of file