linkedin_ad_library_search_ads
LinkedIn publishes run dates, impressions and targeting only on a subset of creatives. Search is the SERP card; source is native|extended. Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Advertiser / account owner name (min 2 when used). Provide q/company, keyword, or companyId. | |
| cache | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. | |
| limit | No | Max items to return (default 20, max 200). One LinkedIn SERP page is ~25 cards — when limit is higher, further pages are pulled automatically within the request's time budget, so limit=50 fills to 50 when LinkedIn has the ads (hasMore + nextCursor cover the rest). Flat 2 credits per call on the native path; the extended fallback bills ~3.5 credits per returned ad. Response `source` is native or extended so you can see which price applied. | |
| cursor | No | Pagination token from paginationToken / nextCursor. | |
| company | No | Alias of q — advertiser / account owner name. | |
| country | No | Single ISO country code. Default US. Ignored when countries is set. Non-ISO codes are a definitive 400 INVALID_COUNTRY — LinkedIn would otherwise answer an empty result set as if the filter worked. | |
| endDate | No | Custom range end YYYY-MM-DD (use with startDate). | |
| keyword | No | Optional keyword filter on ad creative copy. Whole-word hits are ordered first; already-fetched SERP cards without a literal hit fill behind them up to limit (matchedFrom [] = ranked fill). | |
| companyId | No | LinkedIn numeric company id for exact advertiser match. | |
| countries | No | Comma-separated ISO country codes (e.g. US,CA,MX). Each code is validated — non-ISO codes are a 400 INVALID_COUNTRY. | |
| startDate | No | Custom range start YYYY-MM-DD (use with endDate). | |
| paginationToken | No | Alias of cursor. |