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

# Get a campaign's latest placement test

> Summary of the campaign's newest placement test. `data` is `null` when the campaign has never been tested. `draft_changed` is `true` when the draft was edited after that test.



## OpenAPI

````yaml /openapi-v1.json get /v2/placement/campaigns/{campaign_id}/latest
openapi: 3.1.0
info:
  title: Mailercloud Marketing API
  version: 1.0.0
  description: >-
    Campaigns, contacts, lists, segments, automations, and webhooks for the
    Mailercloud Marketing Platform.
servers:
  - url: https://cloudapi.mailercloud.com/v1
security:
  - apiKey: []
tags:
  - name: Campaigns
  - name: Contacts
  - name: Lists
  - name: Tags
  - name: Segments
  - name: Custom Properties
  - name: Senders
  - name: Domains
  - name: Templates
  - name: Automations
  - name: Webhooks
  - name: Webforms
  - name: Inbox Tracker
  - name: Account
paths:
  /v2/placement/campaigns/{campaign_id}/latest:
    get:
      tags:
        - Inbox Tracker
      summary: Get a campaign's latest placement test
      description: >-
        Summary of the campaign's newest placement test. `data` is `null` when
        the campaign has never been tested. `draft_changed` is `true` when the
        draft was edited after that test.
      operationId: placement-campaign-latest
      parameters:
        - name: campaign_id
          in: path
          required: true
          description: Campaign id, as returned by the Campaigns API (for example `Hws`).
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type:
                      - object
                      - 'null'
                    properties:
                      test_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - running
                          - complete
                          - failed
                          - refunded
                      started_at:
                        type: string
                        format: date-time
                      completed_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                      totals:
                        type: object
                        description: >-
                          Percentages of all seeds. `inbox_pct` includes Gmail
                          tabs; `tab_pct` is the Gmail-tabs share of it.
                        properties:
                          inbox_pct:
                            type: number
                          spam_pct:
                            type: number
                          tab_pct:
                            type: number
                          missing_pct:
                            type: number
                          pending_pct:
                            type: number
                      severity_counts:
                        type: object
                        properties:
                          blocking:
                            type: integer
                          worth_fixing:
                            type: integer
                          passing:
                            type: integer
                      summary:
                        type: string
                      draft_changed:
                        type: boolean
                      eta_at:
                        type:
                          - string
                          - 'null'
                        format: date-time
                        description: >-
                          Estimated finish time while the test is running;
                          `null` otherwise.
                      eta_seconds:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          Estimated seconds from start to finish while running;
                          `null` otherwise.
        '401':
          description: Missing or invalid API key.
        '404':
          description: Campaign or test not found for this account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Human-readable message.
                  code:
                    type: string
                    enum:
                      - CAMPAIGN_NOT_FOUND
        '503':
          description: Placement testing is not available right now. Nothing was charged.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Human-readable message.
                  code:
                    type: string
                    enum:
                      - PLACEMENT_UNAVAILABLE
      servers:
        - url: https://cloudapi.mailercloud.com
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Your Mailercloud API key (plain text, no Bearer prefix). Create keys in
        Settings → API.

````

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