{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkedin/json-schema/linkedin-ad-accounts-response-schema.json",
  "title": "AdAccountsResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkedin-ad-accounts-api-openapi.yml#/components/schemas/AdAccountsResponse",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AdAccount"
      }
    },
    "paging": {
      "$ref": "#/$defs/Paging"
    }
  },
  "$defs": {
    "AdAccount": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "description": "Unique identifier for the ad account"
        },
        "name": {
          "type": "string",
          "description": "Display name of the ad account"
        },
        "reference": {
          "type": "string",
          "description": "Reference URN (organization) for the ad account"
        },
        "test": {
          "type": "boolean",
          "description": "Whether this is a test ad account"
        }
      },
      "required": [
        "id",
        "name",
        "test"
      ]
    },
    "Paging": {
      "type": "object",
      "properties": {
        "start": {
          "type": "integer",
          "description": "Starting index"
        },
        "count": {
          "type": "integer",
          "description": "Number of results returned"
        },
        "total": {
          "type": "integer",
          "description": "Total number of results"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}