# Competitor Ad Change Monitor: Meta & LinkedIn (`nijlandl/ad-change-monitor`) Actor

See which ads your competitors start and stop on Meta and LinkedIn. Duplicate creatives are merged and you get run days plus Slack alerts for changes only.

- **URL**: https://apify.com/nijlandl/ad-change-monitor.md
- **Developed by:** [Luuk Nijland](https://apify.com/nijlandl) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 brand checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Competitor Ad Change Monitor: Meta & LinkedIn

Enter your competitors once and schedule this Actor daily or weekly. Each run tells you which ad creatives are **new**, **stopped** or **resumed** since the previous check, with duplicates merged and the number of days each creative has run.

Example change row:

```json
{
  "rowType": "change",
  "brand": "Shopify",
  "changeType": "new",
  "headline": "Winter sale toolkit",
  "channels": "meta",
  "countries": "US",
  "runDays": 0,
  "adUrl": "https://www.facebook.com/ads/library/?id=900000000000004",
  "landingDomain": "shopify.com"
}
```

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Meta or LinkedIn.

### Who it is for

Performance marketers, agencies and founders who follow 3 to 30 competing companies and want to:

- see what competitors launch and stop, without scrolling through ad libraries;
- find creatives that keep running for a long time, which usually means they work;
- get a Slack message with changes only.

Existing ad library scrapers return a list of ads. This Actor keeps the history, merges duplicate creatives and answers the question "what changed?".

### How it works

1. **First run: baseline.** Everything that is running is recorded as `baseline`. A baseline row is not a change and is never sent to Slack.
2. **Later runs: changes.** A creative that was not there before is `new`. A creative that is gone is `stopped`. A stopped creative that comes back is `resumed`.
3. **Duplicates are merged.** The same creative under several ad IDs, countries or channels is one creative with one `creativeId`. Ads are compared on image and text.
4. **A stop is reported after two missed checks.** Ads sometimes disappear from an ad library for a short time. By default an ad must be missing in 2 checks in a row before it counts as stopped (`stoppedAfterMissedChecks`). With weekly runs that takes two weeks. An ad that the library itself marks as inactive is reported at once.

Schedule the Actor daily or weekly with the same input. Runs with the same `namespace` share their history.

### Input

```json
{
  "brands": [
    {
      "name": "Shopify",
      "domain": "shopify.com",
      "metaPage": "https://www.facebook.com/shopify/"
    }
  ],
  "countries": ["US"],
  "maxAdsPerChannel": 100,
  "slackWebhookUrl": "https://hooks.slack.com/services/..."
}
```

Tips:

- **Give a `metaPage`.** It gives the most reliable results. With only a name the Actor searches by keyword and keeps ads whose advertiser name or landing domain matches the brand; add `domain` to make that match stricter.
- **LinkedIn is optional and off by default.** To include it, set `channels` to `["meta", "linkedin"]` and give `linkedinAccount`, preferably the company page URL (for example `https://www.linkedin.com/company/shopify/`). On the first check the Actor looks up the company's ID with one small extra scraper run and remembers it; later checks search by that ID. Read "Acceptable use" below before turning it on.
- **Use a new `namespace` when you change countries or channels.** Ads from a removed country would otherwise be reported as stopped, and creatives of a removed channel would stay listed as running.
- **Keep it to 30 brands per run.** For more brands, create several tasks, each with its own `namespace`.
- **`maxAdsPerChannel` is per channel and per country.** The newest ads are read first. Raise the limit for large advertisers.

| Field | Default | Meaning |
|---|---|---|
| `brands` | required | 1 to 100 companies or organizations. |
| `channels` | `["meta"]` | Ad libraries to check: `meta`, `linkedin` or both. |
| `countries` | `["US"]` | Up to 5 two-letter country codes in capitals. Each country is a separate check per channel. |
| `maxAdsPerChannel` | 100 | 10 to 1000 ads per channel and country. |
| `slackWebhookUrl` | none | Slack incoming webhook for changes. |
| `namespace` | `default` | Separates independent watchlists. |
| `stoppedAfterMissedChecks` | 2 | Checks an ad must be missing before it counts as stopped. |
| `retentionDays` | 90 | Days a stopped creative stays in the stored history. |
| `maxChildRunCostCents` | 30 | Upper limit for each underlying scraper run. |
| `includeFullLinkedinDetails` | false | Reads each LinkedIn ad's detail page, at a higher scraper price. |
| `strictMode` | false | Fail the run if any channel fails. |

### Output

The dataset contains, per brand, the change rows followed by exactly one summary row. Every row has every field; what does not apply is `null`.

**Change row** (`rowType: "change"`): `changeType` (`baseline`, `new`, `stopped`, `resumed`), `creativeId`, `adId`, `adUrl`, `advertiserName`, `headline`, `body` (the first 150 characters of the ad text), `cta`, `landingUrl` (without tracking parameters), `landingDomain`, `imageUrl`, `mediaType`, `channels`, `countries`, `firstSeen`, `lastSeen`, `platformStart`, `stoppedAt`, `runDays` and `eventId`. Two runs on the same day give the same `eventId`, so you can use it to de-duplicate. Open `adUrl` to see the full ad in the ad library.

**Summary row** (`rowType: "summary"`): `status`, `adsObserved`, `runningCreatives`, `newCount`, `stoppedCount`, `resumedCount`, `baselineCount`, `truncatedChannels`, `failedChannels` and `errors`.

| Status | Meaning |
|---|---|
| `ok` | All channels were read completely. |
| `partial` | At least one channel was usable and at least one was cut off or failed. |
| `failed` | No channel could be read. |
| `unresolved` | The brand could not be found. Add `metaPage` or `linkedinAccount`. |
| `skipped` | Not checked, because the spending limit of the run was reached. |

Run totals are in the `RUN_STATS` record of the run's key-value store.

### Slack

1. Go to `https://api.slack.com/apps`, create an app and turn on **Incoming Webhooks**.
2. Add a webhook to your workspace, choose a channel and copy the URL. It starts with `https://hooks.slack.com/services/`.
3. Paste it into `slackWebhookUrl`. The field is stored encrypted.

You get one message per run, and only when there is at least one new, stopped or resumed creative. If Slack cannot be reached the run still succeeds and `RUN_STATS` counts `SLACK_FAILED`.

### Pricing

**$0.10 per brand check.** A brand check is one brand across the selected channels and countries.

This Actor reads the ad libraries through existing scraper Actors from other developers (see "Underlying scrapers"). Their usage is charged to your account separately, on top of the brand check. Measured in November 2026: about $0.00075 per Meta ad and $0.002 per LinkedIn ad. Per brand check and country that comes to at most:

| Max ads per channel | Meta only | Meta and LinkedIn |
|---|---|---|
| 10 | $0.11 | $0.13 |
| 30 | $0.12 | $0.18 |
| 100 | $0.18 | $0.38 |

These totals include the $0.10. You pay the scrapers per ad they return, so a brand with fewer ads than the limit costs less. Their prices are set by their authors and can change. Every extra country adds another scraper run per channel. The first check of a brand on LinkedIn adds one small lookup run (up to $0.04).

**You are not charged for a brand check when** no channel could be read, the brand could not be found, the brand was skipped, or an internal error occurred. A check that finds zero ads on a readable channel is a valid result and is charged.

**Spending limit.** If you set a maximum cost for the run, the Actor stops starting new brand checks once the limit is reached. The remaining brands get a `skipped` summary row and are not charged. The cost of the underlying scrapers does not count towards this limit; use `maxChildRunCostCents` to cap those.

### Limitations

- **Truncation.** When a channel reaches `maxAdsPerChannel`, ads outside the limit are not reported as stopped. The channel is listed in `truncatedChannels`. Raise the limit to see everything.
- **Delay on stops.** A stop is reported after `stoppedAfterMissedChecks` checks. For a stop detected this way, `stoppedAt` is the last time the ad was seen running; the real stop lies between that moment and the first missed check.
- **An empty first check is not the baseline.** If the first check of a channel finds no ads, the first later check that does becomes the baseline. After three empty checks in a row the empty result is accepted.
- **LinkedIn** looks back 30 days, gives no start date (so `runDays` counts from the first time the Actor saw the ad) and no landing page in the default mode.
- **Depends on the underlying scrapers.** If one of them fails or changes its output, the channel is reported as failed and no false stops are produced.
- **No spend or impression data**, and no Google or TikTok ads.
- Similar creatives with short texts that differ by a word can be reported as separate creatives.
- The output is not guaranteed to be complete or correct.

### Underlying scrapers

| Channel | Actor |
|---|---|
| Meta | `curious_coder/facebook-ads-library-scraper` |
| LinkedIn | `silva95gustavo/linkedin-ad-library-scraper` |

They run in your account. This Actor passes them only a public ad library URL, an ad limit and a cost limit. It never passes cookies, sessions, logins or accounts.

### Acceptable use

Use this Actor only to follow the advertising of **companies and organizations**, for your own competitor and market research.

Not allowed:

- monitoring or profiling individual people, personal profiles or one-person businesses that trade under a person's name;
- republishing ad content; the output is for internal use;
- political or issue advertising;
- any use that breaks the law or the terms that apply to you.

Things you need to know:

- **Meta and LinkedIn restrict automated access in their terms.** LinkedIn states that its user agreement also applies to visitors without an account. The Actor never logs in, but whether you may use it is your own responsibility. That is why LinkedIn is off by default.
- **You are the controller of the data you collect.** If you fall under the GDPR you need a legal basis, in practice a legitimate interest with a documented balancing test, and you should not keep data longer than you need.

### Privacy

- The Actor does not log in, uses no cookies and does not bypass CAPTCHAs.
- **What is collected:** ad ID, advertiser name, headline, the first 150 characters of the ad text, call to action, landing page, image URL, format, countries and dates.
- **What is never collected:** who paid for the ad, targeting, impressions, logos and profile data.
- **What is skipped:** ads placed by personal profiles where that can be recognised, and political or issue ads on Meta. On LinkedIn, ads are only collected once the company's ID is known.
- Ad text can still contain a person's name; that cannot be ruled out.
- Images are downloaded only to compute a fingerprint and are not stored; only the URL is kept.
- **Your history is stored in your own account**, in the named key-value store `ad-change-monitor-<namespace>`. The author of this Actor has no access to it. Stopped creatives are removed after `retentionDays`. To erase everything, delete that store in Apify Console under Storage; the next run starts again with a baseline.

### Removal requests and support

Are you an advertiser, a platform or a person who wants something changed or removed, or did you find a problem? Open an issue on the **Issues** tab of this Actor and include the run ID if you have one. You get a reply within 5 working days. Changes are listed in the changelog.

# Changelog

This Actor's version history is a separate document: https://apify.com/nijlandl/ad-change-monitor/changelog.md

# Actor input Schema

## `brands` (type: `array`):

One entry per competitor. A Meta Page and a LinkedIn account give the most reliable results. With only a name, the Actor searches by keyword and keeps ads that match the name or domain.

## `channels` (type: `array`):

Ad libraries to check. LinkedIn is off by default: its user agreement restricts automated access, also for visitors without an account. Turn it on only if you accept that responsibility.

## `countries` (type: `array`):

Two-letter country codes in capitals, up to 5. Each country is a separate check per channel.

## `maxAdsPerChannel` (type: `integer`):

Higher limits cover large advertisers but cost more in the underlying scrapers. If a channel reaches the limit, ads outside it are not reported as stopped.

## `slackWebhookUrl` (type: `string`):

Optional. Sends only new, stopped and resumed ads. Must start with https://hooks.slack.com/services/.

## `namespace` (type: `string`):

Separates independent watchlists. Runs with the same namespace share history.

## `stoppedAfterMissedChecks` (type: `integer`):

Protects against false alarms when an ad briefly disappears from an ad library.

## `retentionDays` (type: `integer`):

Stopped creatives are removed from the stored history after this many days. Running creatives are kept.

## `maxChildRunCostCents` (type: `integer`):

Upper limit for each underlying scraper run.

## `includeFullLinkedinDetails` (type: `boolean`):

Gets complete ad text but costs more per LinkedIn ad.

## `strictMode` (type: `boolean`):

Useful when you rely on Apify run-failure alerts.

## Actor input object example

```json
{
  "brands": [
    {
      "name": "Shopify",
      "domain": "shopify.com",
      "metaPage": "https://www.facebook.com/shopify/",
      "linkedinAccount": "https://www.linkedin.com/company/shopify/"
    }
  ],
  "channels": [
    "meta"
  ],
  "countries": [
    "US"
  ],
  "maxAdsPerChannel": 10,
  "namespace": "default",
  "stoppedAfterMissedChecks": 2,
  "retentionDays": 90,
  "maxChildRunCostCents": 30,
  "includeFullLinkedinDetails": false,
  "strictMode": false
}
```

# Actor output Schema

## `changes` (type: `string`):

Change rows and one summary row per brand.

## `runStats` (type: `string`):

Totals for this run: brands, changes, charged checks and error codes.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "brands": [
        {
            "name": "Shopify",
            "domain": "shopify.com",
            "metaPage": "https://www.facebook.com/shopify/",
            "linkedinAccount": "https://www.linkedin.com/company/shopify/"
        }
    ],
    "countries": [
        "US"
    ],
    "maxAdsPerChannel": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("nijlandl/ad-change-monitor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "brands": [{
            "name": "Shopify",
            "domain": "shopify.com",
            "metaPage": "https://www.facebook.com/shopify/",
            "linkedinAccount": "https://www.linkedin.com/company/shopify/",
        }],
    "countries": ["US"],
    "maxAdsPerChannel": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("nijlandl/ad-change-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "brands": [
    {
      "name": "Shopify",
      "domain": "shopify.com",
      "metaPage": "https://www.facebook.com/shopify/",
      "linkedinAccount": "https://www.linkedin.com/company/shopify/"
    }
  ],
  "countries": [
    "US"
  ],
  "maxAdsPerChannel": 10
}' |
apify call nijlandl/ad-change-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nijlandl/ad-change-monitor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1ux63CK62syhg5X22/builds/XcEm8qNpWMXdbUnBj/openapi.json
