# Ad Creative Change Monitor — Competitor Facebook & Instagram (`xtracto/ad-creative-change-monitor`) Actor

Watch competitors' Facebook and Instagram ads in Meta's public Ad Library. Each scheduled run reports the ads they launched, stopped and changed since the last run, with copy, call-to-action, landing page and media.

- **URL**: https://apify.com/xtracto/ad-creative-change-monitor.md
- **Developed by:** [Farhan Febrian Nauval](https://apify.com/xtracto) (community)
- **Categories:** Automation, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.33 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Ad Creative Change Monitor — Competitor Facebook & Instagram Ads

Watch your competitors' Facebook and Instagram ads in Meta's public Ad Library. Schedule it and each run tells you what changed since the last one: the ads they launched (with copy, call-to-action, landing page and media), the ads they stopped, the creatives they edited, and when their ad count suddenly jumps.

### Why use this actor

- **Only what changed**: new ads, stopped ads and edited creatives, per advertiser, per run.
- **The full creative for every new ad**: body copy, headline, call-to-action, landing page, format (image, video, carousel, catalog), platforms, start date and media links.
- **Spot scaling**: `ad_count_surge` when an advertiser's active ad count jumps by your threshold.
- **The right advertiser, not keyword noise**: watch a Facebook page id (or an exact page name), so another brand's ads that mention the same word never show up.
- **No false "edits"**: Meta's media links change on every visit; the actor compares what viewers actually see, so an untouched ad never reads as changed.
- **Honest about stops**: an ad is reported stopped only when every active ad was read that run.
- No account, no login, no API key.

### How it works

1. Add competitors by Facebook page id (best) or exact page name, and the market country.
2. Schedule the actor, e.g. daily.
3. Each run reads every active ad of each advertiser and compares it with the previous run.
4. One row per advertiser comes out with `newAds`, `stoppedAds` and `changedAds`. The first run lists all current ads as the baseline.

No scraping setup and no database to maintain; history is kept for you between runs.

### Input

```json
{
  "advertisers": ["15087023444", "Gymshark"],
  "country": "US",
  "maxAdsPerAdvertiser": 300,
  "adCountSurgePercent": 50,
  "onlyReportChanges": false,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

| Field | Type | Description |
|---|---|---|
| `advertisers` | array | Facebook page ids (e.g. `15087023444` for Nike) or exact page names (resolved through the Ad Library) |
| `country` | string | Market whose ads to watch, e.g. `US`, `GB`, `ID`; `ALL` for worldwide |
| `maxAdsPerAdvertiser` | integer | Active ads read per advertiser. Keep it above the advertiser's active ad count, or stopped ads cannot be detected |
| `adCountSurgePercent` | integer | Report `ad_count_surge` when active ads grew by at least this much |
| `onlyReportChanges` | boolean | Output only advertisers with an event (plus first-run baselines) |
| `proxyConfiguration` | object | Residential proxy support (recommended) |

### Output

Real data from 2026-10-22. The second run's state was edited (2 ads removed, 1 creative altered, 1 extra ad added, count lowered) to demonstrate every event; the ad shown is live.

```json
{
  "pageId": "15087023444",
  "advertiser": "Nike",
  "country": "US",
  "activeAdCount": 34,
  "adsRead": 34,
  "readComplete": true,
  "previousActiveAdCount": 10,
  "firstRun": false,
  "events": ["new_ads", "ads_stopped", "creative_changed", "ad_count_surge"],
  "newAds": [
    {
      "adId": "1016451784037642",
      "adUrl": "https://www.facebook.com/ads/library/?id=1016451784037642",
      "startDate": "2025-06-20",
      "platforms": ["FACEBOOK", "INSTAGRAM"],
      "displayFormat": "DPA",
      "body": "Get the gear that goes hard on and off the field.",
      "title": "{{product.name}}",
      "ctaText": "Shop now",
      "linkUrl": "https://www.nike.com/us/en_us",
      "cardCount": 6,
      "imageUrls": ["https://scontent.fcgk12-2.fna.fbcdn.net/v/t39.35426-6/509290535_730168…"],
      "videoUrls": [],
      "variations": null,
      "fingerprint": "6fb25038814fb9fe"
    },
    "… 1 more"
  ],
  "stoppedAds": [{ "adId": "999999999999", "startDate": "2026-01-01", "title": "…", "body": "…" }],
  "changedAds": ["… 1 ad, same shape as newAds plus previousFingerprint"],
  "stoppedNotChecked": false
}
```

| Field | Type | Description |
|---|---|---|
| `events` | array | `new_ads`, `ads_stopped`, `creative_changed`, `ad_count_surge`, or `baseline` on the first run |
| `activeAdCount`, `previousActiveAdCount` | integer | Active ads Meta reports now and at the previous run |
| `adsRead`, `readComplete` | | How many were read, and whether that was all of them |
| `newAds`, `changedAds` | array | Full creative per ad: copy, headline, CTA, landing page, format, platforms, start date, media links, Ad Library link |
| `stoppedAds` | array | Ads active last run and gone now |
| `stoppedNotChecked` | boolean | `true` when not every active ad could be read, so stopped ads were not judged this run |
| `currentAds` | array | First run only: every active ad (the baseline) |

### Notes and limits

- **Templated titles** such as `{{product.name}}` are shown as Meta returns them for catalog (DPA) ads.
- Media links are direct file links that expire after a while, as Meta signs them. Download promptly if you archive creatives.
- For advertisers with more active ads than `maxAdsPerAdvertiser`, new ads are still reported, but stopped ones are not (`stoppedNotChecked`).
- An advertiser that cannot be read is named in the status message and keeps its history. A run fails only when no advertiser could be read.

### Related actors

| Actor | Use it for |
|---|---|
| Meta Ad Scraper — Competitor Ad Scaling Tracker | One-off keyword searches of the Ad Library with advertiser details |
| Social Mention Monitor | New brand mentions across Hacker News, Bluesky, news and more |

# Actor input Schema

## `advertisers` (type: `array`):

Facebook page ids (most reliable, e.g. 15087023444 for Nike; the number in the page's Ad Library URL) or exact page names.

## `country` (type: `string`):

Two-letter code of the market whose ads you want (where they are shown). ALL for worldwide.

## `maxAdsPerAdvertiser` (type: `integer`):

Stopped ads are only detected when every active ad was read, so keep this above the advertiser's active ad count.

## `adCountSurgePercent` (type: `integer`):

Report ad_count_surge when the advertiser's number of active ads grew by at least this much since the last run.

## `onlyReportChanges` (type: `boolean`):

Output only advertisers with an event (plus first-run baselines).

## `proxyConfiguration` (type: `object`):

Residential proxy is recommended on the platform; the Ad Library rate-limits cloud servers.

## Actor input object example

```json
{
  "advertisers": [
    "15087023444"
  ],
  "country": "US",
  "maxAdsPerAdvertiser": 300,
  "adCountSurgePercent": 50,
  "onlyReportChanges": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

One row per advertiser per run (or per changed advertiser with onlyReportChanges), stored in the run's default dataset.

# 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 = {
    "advertisers": [
        "15087023444"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/ad-creative-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 = {
    "advertisers": ["15087023444"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/ad-creative-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 '{
  "advertisers": [
    "15087023444"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xtracto/ad-creative-change-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtracto/ad-creative-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/eO8M9n78GwKSDZZ5V/builds/37qQJrXkKbwMF6E3g/openapi.json
