{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-subaccount-schema.json",
  "title": "Subaccount",
  "description": "Contains properties of a Campaign Manager subaccount.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-campaign-manager-subaccounts-api-openapi.yml#/components/schemas/Subaccount",
  "type": "object",
  "properties": {
    "accountId": {
      "format": "int64",
      "description": "ID of the account that contains this subaccount. This is a read-only field that can be left blank.",
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "Name of this subaccount. This is a required field. Must be less than 128 characters long and be unique among subaccounts of the same account."
    },
    "availablePermissionIds": {
      "type": "array",
      "description": "IDs of the available user role permissions for this subaccount.",
      "items": {
        "format": "int64",
        "type": "string"
      }
    },
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#subaccount\".",
      "type": "string"
    },
    "id": {
      "format": "int64",
      "description": "ID of this subaccount. This is a read-only, auto-generated field.",
      "type": "string"
    }
  }
}