Google Analytics · JSON Structure

Measurement Protocol Validation Response Structure

ValidationResponse schema from Google Analytics API

Type: object Properties: 1
AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

ValidationResponse is a JSON Structure definition published by Google Analytics, describing 1 property. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

validationMessages

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-analytics/refs/heads/main/json-structure/measurement-protocol-validation-response-structure.json",
  "name": "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"
          }
        }
      }
    }
  }
}