# Changelog of LinkedIn Ad Library Scraper (`w3crawler/linkedin-ad-library-scraper`) Actor

- **URL**: https://apify.com/w3crawler/linkedin-ad-library-scraper/changelog.md
- **Full Actor documentation**: https://apify.com/w3crawler/linkedin-ad-library-scraper.md

## Changelog

### \[1.1.1] - 2026-10-24

#### Fixed

- Detail-page enrichment is now strictly best-effort: an HTTP 403/429, timeout, or parse
  failure on `/ad-library/detail/...` records `detailHttpStatus` and keeps the
  search-level ad row instead of losing it.
- Detail enrichment makes one bounded request; access denials and verification challenges retain the search-level ad row and are not retried.
- Search-page 403s, CAPTCHA, login, and identity verification remain terminal diagnostics; the crawler does not retry or rotate sessions after a block.
- Detail enrichment is capped by a per-request timeout (15 s) and a total budget (45 s)
  so it can no longer consume the search handler timeout.

#### Changed

- QA input fixtures are excluded from deployed build artifacts.

### \[1.1.0] - 2025-05-21

#### Added

- Added `src/schema/input.js` — dedicated input validation module replacing inline validation in `main.js`
- Added `src/errors/` — `ScraperError`, `ErrorTypes`, `ErrorHandler` modules for structured error handling

#### Changed

- Refactored `main.js` to use `validateInput()` from `src/schema/input.js`
- Extracted ad extraction logic to `src/utils/extraction.js`
- Route handler moved to `src/routes.js` with clean separation of concerns
- Improved README.md with accurate input/output documentation
- Dataset schema views updated for Apify Storage table display

#### Fixed

- Scroll pagination handles edge cases where LinkedIn renders ads lazily
- Country parameter correctly appended to search URL query string

### \[1.0.0] - 2025-03-15

#### Added

- Initial release: LinkedIn Ad Library scraper
- Scrapes public ads from `linkedin.com/ad-library/search` for a given advertiser query
- Infinite-scroll extraction using `button.infinite-scroller__show-more-button`
- Extracts advertiser name, ad text, ad format, media URL, media title, and link
- Configurable `maxItems`, `query`, and `country` inputs
- Apify dataset integration with structured output
