{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/choozle/main/json-schema/report-row.json",
  "title": "ReportRow",
  "description": "One day of performance for one ad group, as returned by GET /api/reports. Fields transcribed from the apiDoc success example at https://app.choozle.com/apidoc/api_data.json.",
  "type": "object",
  "properties": {
    "date": {
      "type": "string",
      "format": "date"
    },
    "account_id": {
      "type": "string"
    },
    "account_name": {
      "type": "string"
    },
    "campaign_id": {
      "type": "string"
    },
    "campaign_name": {
      "type": "string"
    },
    "ad_group_id": {
      "type": "string"
    },
    "ad_group_name": {
      "type": "string"
    },
    "advertiser_cost": {
      "type": "number"
    },
    "impressions_won": {
      "type": "integer",
      "minimum": 0
    },
    "win": {
      "type": "number"
    },
    "cpm": {
      "type": "number"
    },
    "cpc": {
      "type": "number"
    },
    "ctr": {
      "type": "number"
    },
    "cpa": {
      "type": "number"
    },
    "clicks": {
      "type": "integer",
      "minimum": 0
    },
    "impressions_bid_on": {
      "type": "integer",
      "minimum": 0
    },
    "conversions": {
      "type": "integer",
      "minimum": 0
    }
  }
}