DEV Community

Matvey
Matvey

Posted on

26 Days of One LinkedIn Ad Search Gave Me 603 Different Ads. 322 of 325 Day Pairs Shared Nothing

I run a visa agency in Bali. The part of my week that has nothing to do with visas goes into Apify Actors, and one of them reads the public LinkedIn Ad Library — the transparency site LinkedIn has to publish, where anyone logged out can search every ad running on the platform. One row per ad: advertiser, format, copy, creative, and with one switch also who paid, run dates, impressions by country, targeting and the landing page.

The Actor health-checks itself every night with the dullest input imaginable:

{
  "searchTerms": ["crm"],
  "searchType": "keyword",
  "countries": ["US"],
  "maxAdsPerSearch": 24,
  "includeDetails": false,
  "dateRange": "any",
  "sortOrder": "newest"
}
Enter fullscreen mode Exit fullscreen mode

For a month I only looked at the exit status. Last night I opened the datasets instead and found 49 successful runs of that identical search between 18 October and 16 November 2026, spread over 26 distinct days, 1,176 ad rows, 3.9–15.4 seconds per run (median 6.3 s, no browser involved). That is a panel, and it killed an assumption I had been selling to myself: that a daily read of a keyword's newest ads is a monitoring feed.

Same day: frozen. Next day: a different library

Take the first run of each of the 26 days — 624 rows, 24 per day. Those 624 rows contain 603 distinct adId values. 582 of them appear on exactly one day. 21 appear on two days. None appears on three.

Compare every pair of days (26 days → 325 pairs):

cross-day pairs with zero ads in common   322 of 325
the only three that overlapped:
  18 Oct ↔ 19 Oct    2 ads of 24
  19 Oct ↔ 20 Oct   11 ads of 24
   2 Nov ↔  3 Nov    8 ads of 24
Enter fullscreen mode Exit fullscreen mode

Now the same comparison for runs that landed on the same day — 42 such pairs, some of them 20 hours apart:

pairs returning the identical 24 ads      40 of 42
the other two (27 Oct, 00:13 vs 20:10)    19 of 24
Enter fullscreen mode Exit fullscreen mode

So the page is not jittery and it is not randomised: within a calendar day two reads twenty hours apart hand you the same 24 rows, and the next day's read shares nothing with them. If you schedule this search hourly you pay for 24 ads over and over; if you schedule it daily you get a fresh 24 every time and still see only a sliver of the category.

It is not rotation — the ads really are two days old

My first guess was a rotating sample. It isn't. To check, I ran a small read with details on — keyword crm, country DE, 10 ads — on 17 November, which opens each ad's own Ad Library page and adds the fields LinkedIn reports under the EU Digital Services Act:

pos  adId        ranFrom     ranTo       runDays  impressions
 1   1643657744  2026-11-15  2026-11-16     2     1k-5k
 2   1643676034  2026-11-14  2026-11-15     2     20k-30k
 3   1620454303  2026-11-15  2026-11-17     3     1k-5k
 4   1620436113  2026-11-14  2026-11-16     3     1k-5k
 5   1643803244  2026-11-15  2026-11-16     2     50k-100k
 …
10   1620417073  2026-11-14  2026-11-17     4     5k-10k
Enter fullscreen mode Exit fullscreen mode

Every one of the ten started running on 14 or 15 November and had been live for 2 to 4 days when I read them on the 17th. sortOrder: "newest" means exactly what it says. The reason yesterday's 24 are gone today is simply that more than 24 new ads mentioning "crm" enter the library per day — across my 26 daily snapshots the arrival rate works out at 23.2 previously-unseen ads per day inside a 24-row window. The window is a fire hose nozzle, not a list.

Practical consequence: maxAdsPerSearch: 24 (the default) is fine for a demo and useless for coverage. Raise it — the Actor goes to 5,000 per line — and switch on the only-new memory, so a daily run pays only for ads it has not delivered before:

{ "searchTerms": ["crm"], "maxAdsPerSearch": 500, "onlyNewRowsStore": "crm-watch" }
Enter fullscreen mode Exit fullscreen mode

The ad id is not a clock

I expected adId to be a monotonic counter I could sort by. In one 24-row page the ids spanned 66,333,713 (median across the 49 runs; widest 257 million), and position 1 held 1,643,713,234 while position 6 held 1,690,018,906 — 46 million higher, further down the page.

The details run settles it: ids 1,620,417,073 and 1,690,200,426 both started running on 14–15 November. Seventy million apart in id space, the same week on the calendar. LinkedIn allocates ad ids out of more than one range, so the only honest date on a row is ranFrom, and that only exists with details on. Dedupe on adId, never sort by it.

One advertiser can own the entire window

Across the 624 daily-snapshot rows there were 286 distinct advertisers. But the distribution inside a single 24-row page is brutal: median 12 distinct advertisers per 24 ads, maximum 20 — and minimum 1.

On 9 November all 24 rows were the same company, 1stContact.ai the All-In-One AI CRM, with 24 different ad ids and near-identical copy:

1  1680088676  Agency Owners: Is It Time to G…
2  1680088666  Spend Less Time Managing Softw…
3  1680069676  Your Agency Deserves Better So…
4  1680069666  Thinking About Switching Your …
…
Enter fullscreen mode Exit fullscreen mode

That run's ids spanned 1,230,450 and every one sat above the previous day's maximum — one burst upload displacing the whole category for a day. The same advertiser produced 59 distinct ad ids across 6 of my 26 days. On 13 November the window was down to three advertisers, with Nooks holding most of it and four rows sharing one headline.

The trap for category mapping: a keyword's newest page measures who uploaded most recently, not who advertises most. Any share-of-voice number from one day of this is a measurement of one company's upload schedule.

What is empty, and why

Nothing here estimates — a blank field means LinkedIn's page did not carry the value. Across the 1,176 rows:

field filled note
advertiserName, format, text 1,176 / 1,176 always there
headline 763 / 1,176 by format: Document 12/12, Article 10/10, Single Image 618/903, Video 119/230, Message Ad 0/17
imageUrl 1,077 / 1,176 video cover, document first page or first carousel card
textTruncated: true 1,026 / 1,176 search results carry a ~120-char preview (median length 121); full copy needs details
advertiserType: person 239 / 1,176 people advertise too; 127 rows were Thought Leader ads, a company paying to boost a member's post

Formats across the month: Single Image 903, Video 230, Message 17, Document 12, Article 10, Carousel 3, Spotlight 1.

The DSA block is partial in a specific way. In my 10-row German read all 10 had paidBy, ranFrom, ranTo and impressions — but:

  • impressions is a bucket, never a number: 1k-5k ×5, 5k-10k ×2, 50k-100k ×2, 20k-30k ×1. There is no exact count to recover.
  • impressionsByCountry was filled on 4 of 10, so topCountry was null on 6 rows that nevertheless had an impressions bucket.
  • ctaText and landingUrl on 6 of 10; UTM parameters parsed on 5. The four rows without them were boosted-post style ads that have no button and no destination — half of a "landing page analysis" sample can legitimately have no landing page.
  • paidBy differed from advertiserName on 8 of 10 — Pipewell was paid for by Leo Loison Consulting EOOD, CRM Studio by NFQ X GmbH. Dedupe competitors on paidBy or advertiserCompanyId, not on the display name.

The sharpest surprise was the country filter. I searched countries: ["DE"], and row 2's own breakdown reads: India 25%, France 17%, Brazil 14%, United Kingdom 9% … Germany 3%, with targeting locations that include Saudi Arabia, Japan and the United States. The Ad Library's country filter means "this ad reached people in that country", not "this ad targeted that country". For market sizing you must read impressionsByCountry and ignore the filter you typed.

Calling it

curl -s -X POST "https://api.apify.com/v2/acts/lergassy~linkedin-ad-library-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"searchTerms":["crm"],"searchType":"keyword","countries":["DE"],"maxAdsPerSearch":10,"includeDetails":true}'
Enter fullscreen mode Exit fullscreen mode
from apify_client import ApifyClient
client = ApifyClient("<TOKEN>")
run = client.actor("lergassy/linkedin-ad-library-scraper").call(run_input={
    "searchTerms": ["1337"], "searchType": "companyId",
    "maxAdsPerSearch": 500, "includeDetails": True,
})
for ad in client.dataset(run["defaultDatasetId"]).iterate_items():
    if ad.get("type") == "ad":
        print(ad["ranFrom"], ad["runDays"], ad["impressions"], ad["paidBy"])
Enter fullscreen mode Exit fullscreen mode

searchType takes keyword, advertiser, payer or companyId; advertiser matches partially, so hubspot returns HubSpot and its partners, and companyId is the only way to pin one company. The Actor: LinkedIn Ad Library Scraper. No login, no cookies — it reads the pages LinkedIn serves to logged-out visitors, so there is no account of yours to get restricted.

When this is the wrong tool

  • You want ad spend. The library has impression buckets and nothing else. No cost, no CPM, no budget.
  • You want exact impressions. 20k-30k is the resolution, for everyone, including LinkedIn's own UI.
  • You want targeting for a US-only advertiser. Run dates, impressions and targeting exist only for ads LinkedIn reports under the DSA. In my German read that was 10 of 10; for US-and-UK searches it has been closer to 3 in 10.
  • You want a census of a keyword from one run. See everything above.

The useful version of this data is longitudinal. One pull tells you what a company shipped this week; a month of pulls tells you which creatives they keep paying for, which markets actually got the impressions, and which legal entity signs the invoice. I only found those three because a health check I had stopped reading kept writing things down.

Top comments (0)