# Changelog of LinkedIn Ad Library Scraper — B2B Copy, Video & EU \[$3/1K] (`appropriate_ideal_ksi/linkedin-ad-library-pro`) Actor

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

## Changelog

### \[1.4.0] - 2026-11-14

#### Changed

- **Non-Latching Per-Retry Residential Micro-Burst (`use_residential_burst`):** Residential proxy escalation on `Attempt >= 3` now overrides only the single blocked retry and immediately retires the residential session on recovery, keeping `_active_proxy_url` on `$0` Apify Datacenter / Direct HTTP/2 for all subsequent search and detail requests.
- **Uncapped Default `maxTotalAds`:** Removed the implicit `500`-item default cap on `maxTotalAds` in `.actor/input_schema.json` so multi-company and high-volume runs (`maxAdsPerTarget` up to `10,000`) are never silently truncated unless the caller explicitly sets `maxTotalAds`.

### \[1.3.0] - 2026-11-14

#### Fixed

- **3-Tier Anti-`403` Routing + Page-1 Fragment Failover (`LIMITED_PERMISSIONS` safe):** Reads `APIFY_PROXY_PASSWORD` directly without `/users/me`, injects fresh per-retry `session-li<rand>` tokens across Datacenter (`Attempts 1–2`) and micro-burst Residential (`Attempts 3–5`, with automatic fallback if caller's plan lacks Residential), rotates TLS browser profiles (`chrome150`, `chrome146`, `safari184`, `firefox147`) with full `stealthy_headers`, and falls back to `/ad-library/searchPaginationFragment` if `/ad-library/search` blocks.

### \[1.2.0] - 2026-11-14

#### Added

- **Self-Healing Zero-`<div>` & Zero-CSS-Class Extraction Engine:** Eliminated brittle reliance on LinkedIn CSS class names (`search-result-item`, `commentary__content`, `about-ad__paying-entity`, `ad-analytics__country-impressions`, `ad-targeting__segments`) and `<div>` wrappers. Added semantic URL-tree card discovery (`/ad-library/detail/<id>`), JSON pagination regex fallback, raw `dms.licdn.com/*.mp4` stream recovery, `og:description` + semantic paragraph recovery, classless `(Country, %)` impression pair scanning, and `"Targeting includes/excludes"` grammar recovery.
- **Automatic Apify Proxy Fallback on Flagged Cloud IPs (`403`/`429`/`999`)** and 25-ad Free-Plan preview protection.

### \[1.1.0] - 2026-11-14

#### Added

- Pre-charge creative/media type filtering (`adFormats`: `VIDEO`, `SINGLE_IMAGE`, `CAROUSEL`, `DOCUMENT`, `THOUGHT_LEADER`, `EVENT`, `MESSAGE`, `SPOTLIGHT`, `TEXT`, `FOLLOWER`, `JOB`) — directly fulfilling top competitor feature request so users only pay for the exact ad formats they want.
- `excludeJobAds` pre-charge toggle (`JOBS_V2`) so B2B demand-gen teams spying on hiring-heavy companies skip HR job listings free of charge and skip unnecessary detail HTTP requests.

### \[1.0.0] - 2026-11-14

#### Added

- Pure HTTP/2 + Chrome-150 TLS impersonation engine (`scrapling[fetchers]==0.4.15`, `256 MB` RAM, zero headless browser or residential proxy required).
- Multi-page pagination beyond 24 ads via LinkedIn's `/ad-library/searchPaginationFragment` endpoint and `paginationMetadata` tokens.
- Full detail enrichment across Single Image, Video (highest-bitrate MP4 stream), Carousel (`carousel_cards`), Native Document (`document_url` + covers), Event, Message/InMail (nested Quill paragraphs), Spotlight, Job, Text, and Thought Leader Ads.
- Complete EU/DSA & global transparency extraction: `total_impressions_range`, `impressions_min`, `impressions_max`, `country_impression_breakdown`, `targeting_language`, `targeting_locations` (including hidden overflow segments), and `targeting_company_facets`.
- Stateful competitor monitoring (`onlyNewAds` + `monitorStoreName`) backed by Apify Key-Value Store so scheduled runs only emit and charge for newly launched ads.
- Pay-Per-Event (`ad-result`) budget ceiling enforcement, graceful 0-result company handling, and automatic `429`/`5xx` exponential jitter backoff.
- Standalone FastAPI microservice (`/healthz`, `POST /v1/linkedin/ads/search`) and non-root GCP Cloud Run `Dockerfile.gcp`.
