# Search ads

Returns the first page of public ads matching the supplied advertiser, payer, keyword, country, date, or impression filters. No single filter is required; use the returned `pagination_token` for the next page.

- Platform: LinkedIn
- Request: `GET https://api.toolzerhub.com/v1/linkedin/ads/search`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/linkedin/linked-in-ads-search

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `account_owner` | query | no | string | Advertiser (account owner) name filter. |
| `company_name` | query | no | string | Alternative advertiser-name filter. |
| `payer` | query | no | string | 'Paid for by' entity name filter. |
| `keyword` | query | no | string | Free-text creative keyword. |
| `countries` | query | no | string | ISO 3166-1 alpha-2 country code the ad was served in, comma-separated for multiple. |
| `date_option` | query | no | enum: last-30-days, current-month, current-year, last-year, custom-date-range | Date range preset. custom-date-range requires startdate/enddate. |
| `startdate` | query | no | string | Custom range start (YYYY-MM-DD). Requires date_option=custom-date-range. |
| `enddate` | query | no | string | Custom range end (YYYY-MM-DD). Requires date_option=custom-date-range. |
| `impressions_min_value` | query | no | integer | Minimum impressions, paired with impressions_min_unit. |
| `impressions_min_unit` | query | no | enum: none, thousand, million | Unit for impressions_min_value. |
| `impressions_max_value` | query | no | integer | Maximum impressions, paired with impressions_max_unit. |
| `impressions_max_unit` | query | no | enum: none, thousand, million | Unit for impressions_max_value. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/linkedin/ads/search" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
