{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/myoddly-com/json-schema/myoddly-com-dry-run-request-schema.json",
  "title": "DryRunRequest",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/myoddly-com-openapi.yml#/components/schemas/DryRunRequest",
  "type": "object",
  "required": [
    "brand_id",
    "connector",
    "action_type",
    "target_resource_id",
    "before_state",
    "intended_state",
    "spend_change_cents"
  ],
  "properties": {
    "brand_id": {
      "type": "string"
    },
    "connector": {
      "type": "string",
      "enum": [
        "meta",
        "google_ads",
        "tiktok_ads"
      ]
    },
    "action_type": {
      "type": "string",
      "enum": [
        "budget_decrease",
        "adset_pause",
        "adset_resume",
        "campaign_pause",
        "campaign_archive"
      ]
    },
    "target_resource_id": {
      "type": "string"
    },
    "before_state": {
      "type": "object"
    },
    "intended_state": {
      "type": "object"
    },
    "spend_change_cents": {
      "type": "integer",
      "description": "Signed change in cents. Negative for spend reductions."
    }
  }
}