{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-campaign-manager/json-schema/google-campaign-manager-subaccounts-list-response-schema.json",
  "title": "SubaccountsListResponse",
  "description": "Subaccount List Response",
  "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/SubaccountsListResponse",
  "properties": {
    "nextPageToken": {
      "description": "Pagination token to be used for the next list operation.",
      "type": "string"
    },
    "subaccounts": {
      "description": "Subaccount collection.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Subaccount"
      }
    },
    "kind": {
      "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#subaccountsListResponse\".",
      "type": "string"
    }
  },
  "type": "object",
  "$defs": {
    "Subaccount": {
      "type": "object",
      "description": "Contains properties of a Campaign Manager subaccount.",
      "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"
        }
      }
    }
  }
}