API · LinkedIn
GET /linkedin/ads/{ad}
One LinkedIn Ad Library ad: creative, advertiser, payer, run dates, impressions and targeting.
| Request | GET /v1/linkedin/ads/{ad} |
| Operation id | linkedin.ad.get |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
One LinkedIn Ad Library ad: creative, advertiser, payer, run dates, impressions and targeting.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
ad | string | yes | The ad id or its URL (linkedin.com/ad-library/detail/<id>). Example: 1695641666. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The ad. | LinkedInAd |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | LinkedIn has no such public page, or it was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. | Error |
LinkedInAd fields
| Field | Type | Description |
|---|---|---|
ad_id | string | |
url | string | |
creative_type | string | null | |
format | string | null | |
advertiser | object | |
paid_by | string | null | |
ran_from | string | null | YYYY-MM-DD. |
ran_to | string | null | YYYY-MM-DD; null while it is still running. |
run_text | string | null | |
commentary | string | null | |
headline | string | null | |
destination_url | string | null | |
cta | string | null | |
image_urls | string[] | |
video_url | string | null | |
total_impressions | string | null | A range, e.g. "5k-10k". |
impressions_by_country | object[] | |
targeting | object[] | |
targeting_parameters | object[] |
Errors use one shape everywhere; see Errors for every code and what to do.