Skip to content

Commit

Permalink
Criteo: Update Json validation schema and maintainer email (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiNahornyi authored and nickluck8 committed Jul 8, 2021
1 parent c5f461a commit b64ac2d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.prebid.server.proto.openrtb.ext.request;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Value;
Expand All @@ -9,9 +10,10 @@
public class ExtImpCriteo {

@JsonProperty("zoneId")
@JsonAlias({"zoneid"})
Integer zoneId;

@JsonProperty("networkId")
@JsonAlias({"networkid"})
Integer networkId;

}
2 changes: 1 addition & 1 deletion src/main/resources/bidder-config/criteo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ adapters:
deprecated-names:
aliases: {}
meta-info:
maintainer-email: pi-direct@criteo.com
maintainer-email: prebid@criteo.com
app-media-types:
- banner
site-media-types:
Expand Down
52 changes: 41 additions & 11 deletions src/main/resources/static/bidder-params/criteo.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,50 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Criteo Adapter Params",
"description": "A schema which validates params accepted by the Criteo adapter",

"title": "Criteo adapter params",
"description": "The schema to validate Criteo specific params accepted by Criteo adapter",
"type": "object",
"properties": {
"zoneid": {
"type": "integer",
"description": "Impression's zone ID.",
"minimum": 0
},
"zoneId": {
"type": "number",
"description": "The zone ID from Criteo",
"pattern": "^[0-9]+$"
"type": "integer",
"description": "Impression's zone ID, preferred.",
"minimum": 0
},
"networkid": {
"type": "integer",
"description": "Impression's network ID.",
"minimum": 0
},
"networkId": {
"type": "number",
"description": "The network ID from Criteo",
"pattern": "^[0-9]+$"
"type": "integer",
"description": "Impression's network ID, preferred.",
"minimum": 0
}
},
"required": ["zoneId", "networkId"]
}
"anyOf": [
{
"required": [
"zoneid"
]
},
{
"required": [
"zoneId"
]
},
{
"required": [
"networkid"
]
},
{
"required": [
"networkId"
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ext": {
"criteo": {
"zoneId": 123456,
"networkId": 78910
"networkid": 78910
}
}
}
Expand Down Expand Up @@ -73,4 +73,4 @@
"us_privacy": "1YNN"
}
}
}
}

0 comments on commit b64ac2d

Please sign in to comment.