Google Analytics · JSON Structure

Measurement Protocol Validation Message Structure

ValidationMessage schema from Google Analytics API

Type: object Properties: 3
AnalyticsDataGoogleMetricsReportingWeb AnalyticsMachine LearningAttribution

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

Properties

fieldPath description validationCode

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-message-structure.json",
  "name": "ValidationMessage",
  "description": "ValidationMessage schema from Google Analytics API",
  "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"
    }
  }
}