diff --git a/adapters/blue/params_test.go b/adapters/blue/params_test.go index 27b1e02ea8..8fca9c0ede 100644 --- a/adapters/blue/params_test.go +++ b/adapters/blue/params_test.go @@ -34,9 +34,8 @@ func TestInvalidParams(t *testing.T) { } var validParams = []string{ - `{"publisherId":"1234"}`, - `{"publisherId":"1234", "placementId":"12345"}`, - `{"publisherId":"", "placementId":""}`, + `{"publisherId":"1234", "placementId":"12345","bidFloor":1,"currency":"USD"}`, + `{"publisherId":"", "placementId":"","bidFloor":0,"currency":""}`, } var invalidParams = []string{ @@ -47,5 +46,11 @@ var invalidParams = []string{ `4.2`, `[]`, `{}`, - `{"placementId":"12345"}`, + `{"placementId":"12345","bidFloor":1,"currency":"USD"}`, + `{"publisherId":"1234", "bidFloor":1,"currency":"USD"}`, + `{"publisherId":"1234", "placementId":"12345","currency":"USD"}`, + `{"publisherId":"1234", "placementId":"12345","bidFloor":1}`, + `{"publisherId":"Y9Evrh40ejsrCR4EtidUt1cSxhJsz8X1", "placementId":"12345","bidFloor":1,"currency":"USD"}`, + `{"publisherId":"1234", "placementId":"alNYtemWggraDVbhJrsOs9pXc3Eld32E","bidFloor":1,"currency":"USD"}`, + `{"publisherId":"1234", "placementId":"12345","bidFloor":1,"currency":"Bq7PfZuLxKcMnT5RwV2Gy9AoHiJD4S6F"}`, } diff --git a/static/bidder-params/blue.json b/static/bidder-params/blue.json index 537fc44da7..e7f56a8edb 100644 --- a/static/bidder-params/blue.json +++ b/static/bidder-params/blue.json @@ -6,14 +6,28 @@ "properties": { "placementId": { "type": "string", - "description": "Placement ID provided by Blue" + "description": "Placement ID provided by Blue", + "maxLength": 30 }, "publisherId": { "type": "string", - "description": "The publisher’s ID provided by Blue" + "description": "The publisher’s ID provided by Blue", + "maxLength": 30 + }, + "bidFloor": { + "type": "number", + "description": "The bid floor value provided by Blue" + }, + "currency": { + "type": "string", + "description": "The currency code provided by Blue", + "maxLength": 30 } }, "required": [ - "publisherId" + "placementId", + "publisherId", + "bidFloor", + "currency" ] }