Google Analytics · Schema

ValidationResponse

ValidationResponse schema from Google Analytics API

AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

Properties

Name Type Description
validationMessages array
View JSON Schema on GitHub

JSON Schema

measurement-protocol-validation-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/json-schema/measurement-protocol-validation-response-schema.json",
  "title": "ValidationResponse",
  "description": "ValidationResponse schema from Google Analytics API",
  "type": "object",
  "properties": {
    "validationMessages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fieldPath": {
            "type": "string",
            "description": "Path to the field that caused the validation error.",
            "example": "/example/path"
          },
          "description": {
            "type": "string",
            "description": "Description of the validation error.",
            "example": "Example description"
          },
          "validationCode": {
            "type": "string",
            "description": "A code identifying the type of validation error.",
            "enum": [
              "VALUE_INVALID",
              "VALUE_REQUIRED",
              "NAME_INVALID",
              "NAME_RESERVED",
              "VALUE_OUT_OF_BOUNDS",
              "EXCEEDED_MAX_ENTITIES",
              "NAME_DUPLICATED"
            ],
            "example": "VALUE_INVALID"
          }
        }
      }
    }
  }
}