Class OpenRtbValidator


  • @Singleton
    public class OpenRtbValidator
    extends Object
    Validates a pair of OpenRtb.BidRequest and its corresponding OpenRtb.BidResponse.Builder. Bids with any validation problems will cause debug logs and metric updates. Fatal validation errors (that would likely cause the bid to be rejected by the exchange) will also be removed from the response.

    This class is threadsafe. Recommended use is as a singleton, but you may also want to create multiple instances if you need to keep track of metrics separately for different uses (for that to make sense, provide a different MetricRegistry to each instance).