GET Get campaign ad

Base URL: https://server-url-from-token-page.endpoint. Version: 1.2.0.

GET /api/v1/public/campaigns/ads/{adId} — Get campaign ad

Read-only operation

Fetch one ad detail row by platform and ad id. This is direct campaign/ad inventory or detail, not an account/company media summary tool and not an all-technique reporting path.

Use URL path and query parameters; no request body. Query arrays and objects are JSON-encoded where indicated. Workspace scope comes exclusively from the bearer credential. Available to read-only and read/write API credentials.

Parameters

adId (path, string, required)

path parameter

platform (query, LINKEDIN | INDIVIDUAL_TARGETING, required)

query parameter

JSON response schema
{
  "type": "object",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {}
          ],
          "description": "Ad/creative id."
        },
        "campaignId": {
          "anyOf": [
            {
              "type": "string"
            },
            {}
          ],
          "description": "Owning campaign id for cross-campaign inventory rows."
        },
        "campaignName": {
          "type": "string",
          "description": "Owning campaign name for cross-campaign inventory rows."
        },
        "name": {
          "type": "string",
          "description": "Ad/creative internal name."
        },
        "title": {
          "type": "string",
          "description": "Ad/creative title shown in reporting."
        },
        "commentary": {
          "type": "string",
          "description": "Ad commentary or copy when captured."
        },
        "status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "PAUSED",
            "COMPLETED",
            "ARCHIVED",
            "CANCELED",
            "DRAFT",
            "PENDING_DELETION",
            "REMOVED"
          ],
          "description": "Ad/creative status when available."
        },
        "link": {
          "type": "string",
          "description": "Ad destination URL."
        },
        "thumbnailUrl": {
          "type": "string",
          "description": "Best available provider image or video-cover URL for list/detail presentation. LinkedIn image URNs are resolved through the Images API; signed URLs may expire."
        },
        "videoUrl": {
          "type": "string",
          "description": "Playable provider video URL, not a cover image; it may expire or be unavailable."
        },
        "mediaMetrics": {
          "type": "object",
          "properties": {
            "impressions": {
              "type": "number",
              "description": "Media impressions."
            },
            "clicks": {
              "type": "number",
              "description": "Media clicks."
            },
            "ctr": {
              "type": "number",
              "description": "Click-through rate in percentage points; 2.44 means 2.44%."
            },
            "uniqueCtr": {
              "type": "number",
              "description": "Unique click-through rate in percentage points when available."
            },
            "reach": {
              "type": "number",
              "description": "Unique reach."
            },
            "averageDwellTime": {
              "type": "number",
              "description": "LinkedIn average dwell time in seconds when available."
            },
            "audiencePenetration": {
              "type": "number",
              "description": "LinkedIn campaign reach divided by target audience; 0.25 means 25%. Available only for supported campaign windows of 92 days or less."
            },
            "visits": {
              "type": "number",
              "description": "Website visit count when the media source includes visits."
            },
            "pageViews": {
              "type": "number",
              "description": "Website page-view count when available."
            },
            "count": {
              "type": "number",
              "description": "Generic source count when returned by the underlying metric source."
            },
            "engaged": {
              "type": "number",
              "description": "Engaged entity count when returned by the metric source."
            },
            "reached": {
              "type": "number",
              "description": "Reached entity count when returned by the metric source."
            }
          },
          "additionalProperties": false,
          "description": "Ad-level media metrics for this creative."
        },
        "timestamps": {
          "type": "object",
          "properties": {
            "createdAt": {
              "type": "string",
              "format": "date-time"
            },
            "updatedAt": {
              "type": "string",
              "format": "date-time"
            },
            "startedAt": {
              "type": "string",
              "format": "date-time"
            },
            "syncedAt": {
              "type": "string",
              "format": "date-time"
            }
          },
          "additionalProperties": true,
          "description": "Ad lifecycle/sync timestamps."
        }
      },
      "required": [
        "id"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "value": {
          "nullable": true,
          "enum": [
            null
          ]
        }
      },
      "required": [
        "value"
      ]
    }
  ]
}

Responses

200: Operation receipt or read result. Arrays are returned under items; scalar and null results under value.
RateLimit-Policy (header, value, optional)

Response header

RateLimit-Limit (header, value, optional)

Response header

RateLimit-Remaining (header, value, optional)

Response header

RateLimit-Reset (header, value, optional)

Response header

400: Invalid operation input or record identifiers.
400 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
401: Bearer credential is missing, expired or invalid.
401 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
402: Insufficient research credits. Add credits before retrying.
402 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
403: Write access or resource permission is required.
403 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
404: Record is not available in the credential workspace.
404 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
405: Use the documented HTTP method.
405 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
409: Revision conflict or a record has dependencies. Refetch and reconcile links before retrying.
409 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
413: Request exceeds the permitted JSON body size.
413 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
429: Rate limit exceeded. Observe Retry-After.
RateLimit-Policy (header, value, optional)

Response header

RateLimit-Limit (header, value, optional)

Response header

RateLimit-Remaining (header, value, optional)

Response header

RateLimit-Reset (header, value, optional)

Response header

429 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
500: Internal server error.
500 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
503: Service temporarily unavailable. Observe Retry-After when present.
503 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}
504: Execution timed out. A write may have committed; check receipts or progress before retrying.
504 response schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "message": {
      "type": "string"
    },
    "code": {
      "type": "string"
    }
  },
  "required": [
    "message",
    "code"
  ]
}

Get campaign ad

curl "https://server-url-from-token-page.endpoint/api/v1/public/campaigns/ads/507f1f77bcf86cd799439011?platform=LINKEDIN" \
  -H "Authorization: Bearer $DOE_API_TOKEN" \
  -H "Accept: application/json"
Response example
No response example is supplied. See the JSON response schema.