Skip to content

Commit

Permalink
Blue: Add bidFloor and currency param. Change current values configur…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
samuelfabelopencircle committed Dec 18, 2024
1 parent 711022f commit bec988b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
13 changes: 9 additions & 4 deletions adapters/blue/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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"}`,
}
20 changes: 17 additions & 3 deletions static/bidder-params/blue.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}

0 comments on commit bec988b

Please sign in to comment.