> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contentignite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a publisher's diagnostics

> A health check of one publisher: consent, heavy ads, mobile ad density, tag latency and errors, viewability, direct demand, ads.txt issues, expired integrations, the CMP stub and the traffic trend. Most figures are for yesterday. Fetches the publisher's home page (and any script with "stub" in its URL) to look for a CMP stub, unless a CMP integration is connected.



## OpenAPI

````yaml /openapi.json get /v1/report/insight/diagnostics/{uid}
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality.


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    ## Errors any endpoint can return

    Every signed-in endpoint can also return these, so they aren't listed on
    each one:


    - `401` Unauthorized: no valid token was sent. It's missing, invalid,
    expired or revoked.

    - `403` Forbidden with `code` `session_invalid`: your user or organisation
    no longer exists, or you were removed from the organisation. Sign in again.

    - `403` Forbidden with `code` `insufficient_scope` ("This sign-in is
    read-only"): an OAuth (MCP) sign-in with read access tried to make a change.

    - `403` Forbidden with `code` `organisation_unavailable`: an OAuth (MCP)
    sign-in has lost access to its organisation. Switch to another organisation.

    - `503` Service Unavailable: "System is down for scheduled maintenance". Try
    again later.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Publisher
  - name: Publisher/Publisher Tag
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: Publisher/Publisher Stack
  - name: Publisher/Experiment
  - name: Publisher/Publisher Meta
  - name: Publisher/Debugging
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Integration
  - name: Integration/Authentication
  - name: Integration/Mapping
  - name: Mapping
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Benchmarking
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Campaign Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Audience
  - name: Audience/Segment
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: User
  - name: User/Account
  - name: Billing
  - name: Billing/Profile
  - name: Billing/Invoice
  - name: Audit Log
  - name: Search
  - name: Set-up
  - name: public
paths:
  /v1/report/insight/diagnostics/{uid}:
    get:
      tags:
        - Reporting/Insights Hub/Diagnostics
        - public
      summary: Get a publisher's diagnostics
      description: >-
        A health check of one publisher: consent, heavy ads, mobile ad density,
        tag latency and errors, viewability, direct demand, ads.txt issues,
        expired integrations, the CMP stub and the traffic trend. Most figures
        are for yesterday. Fetches the publisher's home page (and any script
        with "stub" in its URL) to look for a CMP stub, unless a CMP integration
        is connected.
      operationId: getPublisherDiagnostics
      parameters:
        - name: uid
          in: path
          description: The publisher ID
          required: true
          example: ''
          schema:
            type: integer
      responses:
        '200':
          description: 'OK: Diagnostics for the publisher.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      cmp_error_rate:
                        type: number
                        description: >-
                          Share of consent checks where no CMP was found, from 0
                          to 1. Ideally 0
                      cmp_rejection_rate:
                        type: number
                        description: >-
                          Share of consent responses that denied consent, from 0
                          to 1. Ideally under 0.15
                      heavy_ad_intervention:
                        type: number
                        description: >-
                          Heavy ad interventions per page impression. Ideally
                          under 0.01
                      mobile_ad_density:
                        type: number
                        description: >-
                          Median share of the mobile screen taken by ads, from 0
                          to 1. Ideally under 0.3
                      tag_latency:
                        type: number
                        description: >-
                          Median time for the tag to load, in milliseconds.
                          Ideally under 2000
                      tag_error_rate:
                        type: number
                        description: Tag errors per page impression. Ideally under 0.01
                      tag_error_types:
                        type: array
                        description: >-
                          Yesterday's tag errors grouped by type, most frequent
                          first. Empty when there were none
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              description: >-
                                The error type, such as 'Network Request
                                Failed'. Errors that don't match a known type
                                keep their own message
                            count:
                              type: integer
                              description: Errors of this type
                            rate:
                              type: number
                              description: Errors of this type per page impression
                            details:
                              type: array
                              description: >-
                                Breakdown by detail found in the error, such as
                                source or reason, most frequent first
                              items:
                                type: object
                                properties:
                                  label:
                                    type: string
                                    description: Detail name, such as source or reason
                                  value:
                                    anyOf:
                                      - type: string
                                      - type: number
                                    description: Detail value
                                  count:
                                    type: integer
                                    description: Number of errors
                                required:
                                  - label
                                  - value
                                  - count
                            network_average:
                              description: >-
                                Average rate for this error type across all
                                publishers over the last 7 days
                              type: number
                              nullable: true
                          required:
                            - type
                            - count
                            - rate
                            - details
                            - network_average
                      viewability:
                        type: number
                        description: >-
                          Viewable impressions as a share of impressions, from 0
                          to 1. Ideally over 0.8
                      cmp_stub_status:
                        type: string
                        enum:
                          - Found - Fusion
                          - Found
                          - External
                          - Missing
                          - Site unreachable
                        description: >-
                          Whether a CMP stub is in place: through a connected
                          CMP integration, on the page, in an external script,
                          missing, or the site couldn't be checked
                      direct:
                        type: number
                        description: >-
                          Share of impressions from direct (ad server) demand,
                          from 0 to 1
                      expired_integrations:
                        description: >-
                          Comma-separated IDs of the publisher's integrations
                          whose access has expired. Null when none have
                        type: string
                        nullable: true
                      ads_txt_issues:
                        description: >-
                          Missing ads.txt lines plus the number of different
                          error types in the file. '0 - Managed' when the
                          platform manages the file. Null when the publisher has
                          no ads.txt record
                        anyOf:
                          - type: integer
                            nullable: true
                          - type: string
                            nullable: true
                      traffic_trend:
                        type: string
                        enum:
                          - Increasing
                          - Steady
                          - In decline
                          - Unknown
                        description: Direction of page impressions over the last 2 weeks
                    required:
                      - cmp_error_rate
                      - cmp_rejection_rate
                      - heavy_ad_intervention
                      - mobile_ad_density
                      - tag_latency
                      - tag_error_rate
                      - tag_error_types
                      - viewability
                      - cmp_stub_status
                      - direct
                      - expired_integrations
                      - ads_txt_issues
                      - traffic_trend
                    description: The report
                  success:
                    type: boolean
                    description: Always true
                required:
                  - results
                  - success
              example:
                results:
                  cmp_error_rate: 0.0000122486
                  cmp_rejection_rate: 0.0007226761
                  heavy_ad_intervention: 0.0088838084
                  mobile_ad_density: 0.057
                  tag_latency: 2541.999829099
                  tag_error_rate: 0.0147908736
                  tag_error_types:
                    - type: Network Request Failed
                      count: 412
                      rate: 0.0098561
                      details:
                        - label: reason
                          value: Failed to fetch
                          count: 301
                        - label: reason
                          value: Load failed
                          count: 111
                      network_average: 0.0021
                    - type: GPT Load Failed
                      count: 206
                      rate: 0.0049282
                      details: []
                      network_average: 0.00087
                  viewability: 0.5244113081
                  cmp_stub_status: Found
                  direct: 0.6921014873
                  expired_integrations: null
                  ads_txt_issues: 2
                  traffic_trend: In decline
                success: true
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: User forbidden
          headers: {}
        '404':
          description: 'Not Found: The publisher doesn''t exist or you can''t access it.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                message: Resource not found
          headers: {}
        '500':
          description: >-
            Internal Server Error: An unexpected error. The message includes a
            reference to quote to support.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
              example:
                status: 500
                message: >-
                  An error occurred [4f2k], please try again shortly or contact
                  your account manager for further assistance.
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    Error:
      type: object
      required:
        - success
        - message
      properties:
        success:
          type: boolean
          description: Always false for an error.
          enum:
            - false
        message:
          type: string
          description: What went wrong, safe to show to the user.
    ServerError:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: integer
          enum:
            - 500
        message:
          type: string
          description: >-
            A generic message with an error reference in square brackets, for
            support.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal API token from the platform's settings page, or an OAuth
        access token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.