Skip to content
Ads API •References / measurement-datasets / Get diagnostics for a dataset.

Get diagnostics for a dataset.

Get diagnostics for a dataset.

Request

  • business_id
    string [uuid]
    Required

    A unique identifier for the entity.

    Example: ce4ff15e-f04d-48b9-9ddf-fb3c85fbd57a
  • dataset_id
    string [uuid]
    Required

    A unique identifier for the dataset.

    Example: 0d86b9e9-70f0-4700-a725-3417ba8786f6
  • granularities
    array of strings
    Required

    A list of diagnostic granularities to retrieve for a dataset.

    What granularity of diagnostic data is present.

    Allowed values: "DAILY", "HOURLY"
  • datasource_ids
    array of strings

    A list of datasources you want to filter by.

    A unique identifier for a datasource

    Example: datasource_ids=ce4ff15e-f04d-48b9-9ddf-fb3c85fbd57a

Response

Diagnostics response.

  • dataset_id
    string [uuid]

    A unique identifier for the dataset.

    Example: "0d86b9e9-70f0-4700-a725-3417ba8786f6"
    • datasource_type
      string

      Type of datasource that diagnostic data is using.

      Allowed values: "PIXEL", "CAPI"
    • datasource_id
      string

      A unique identifier for a datasource

      Example: "ce4ff15e-f04d-48b9-9ddf-fb3c85fbd57a"
    • granularity
      string

      What granularity of diagnostic data is present.

      Allowed values: "DAILY", "HOURLY"
    • A list of diagnostic events by timestamp.

      • total
        number

        Total count of events during timestamp period.

      • timestamp
        number

        Events that happened during a granularity period (Daily or Hourly).

      • An diagnostic event received from a datasource.

        • name
          string

          Type of event in datasource.

        • event_count
          number

          Amount of events of this type fired during timeframe.

        • last_activity_ms
          number

          Timestamp of most recent event.

Response sample

{  "dataset_id": "0d86b9e9-70f0-4700-a725-3417ba8786f6",  "datasources": [    {      "datasource_type": "PIXEL",      "datasource_id": "ce4ff15e-f04d-48b9-9ddf-fb3c85fbd57a",      "granularity": "DAILY",      "timeseries": [        {          "total": 0,          "timestamp": 0,          "event_counts": [            {              "name": "string",              "event_count": 0,              "last_activity_ms": 0            }          ]        }      ]    }  ]}