# Ad Library Scraper: Google Ads Transparency, Bing & Snapchat (`pegton/ad-library-monitor`) Actor

Every competitor ad from Google Ads Transparency Center, Microsoft (Bing) Ad Library and Snapchat Ads Gallery (+ Meta with your token) in one EU-DSA schema: ad copy, images/videos, EU reach per country, targeting, payer. Built-in new/stopped-ad monitor; unchanged ads and errors are free.

- **URL**: https://apify.com/pegton/ad-library-monitor.md
- **Developed by:** [Rafael Iovi](https://apify.com/pegton) (community)
- **Categories:** Marketing, Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 ad delivereds

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

## Ad Library Monitor: competitor ads from Google, Microsoft (Bing), Snapchat & Meta in one dataset

See **every ad your competitors run**, with **ad copy, images/videos, EU reach, countries, targeting and who paid**, from the public ad libraries the EU Digital Services Act (DSA) made mandatory. Everything comes in **one clean table**, whatever the platform. Schedule it and it becomes a **competitor-ad alert**: you get only ads that were *newly launched* or *stopped* since the last check, and unchanged ads cost nothing.

| Library | What you get |
|---|---|
| ✅ **Google Ads Transparency Center** (Search, YouTube, Shopping, Maps, Play, Display) | headline & description (most formats), image/video, landing domain, first/last shown, EU impressions per country, surfaces, targeting categories, paid by |
| ✅ **Microsoft Advertising Ad Library** (Bing, EEA) – official API | headline, text, landing URL, image, total impressions, share per country, targeting, paid by |
| ✅ **Snapchat Ads Gallery** (EU + Turkey) – official API | headline, CTA, landing URL, media download, exact impressions per country, age/gender/language targeting |
| ⚙️ **Meta Ad Library** (Facebook, Instagram) – official API, **your own token** | ad text, EU reach, reach per country, platforms, payer & beneficiary (beta) |

Type a **brand name, website or advertiser ID**. The Actor finds the advertiser accounts (including subsidiaries) on every platform for you.

### Why marketers use it

| | Ad Library Monitor | Typical ad-library scrapers |
|---|---|---|
| Platforms | Google + Microsoft + Snapchat (+ Meta) in one run, one schema | one platform per Actor, each with its own fields |
| Ad copy, EU reach, targeting | **included** in one per-ad price | often separate paid "detail" calls or missing |
| Monitoring | built-in **new / stopped** detection; unchanged ads free | re-pay for the same ads every run |
| Errors, unknown advertisers | free rows with a clear reason | sometimes charged or silent |
| Cost control | `maxAdsPerAdvertiser`, `maxItems`, `maxChargeUsd` enforced *before* fetching | limits not always respected |
| Sources | public transparency libraries and official APIs only; no logins, no cookies, no CAPTCHA solving | varies |

### Use cases

- **Agencies & performance marketers**: a weekly report of every competitor's new Google, Bing and Snapchat ads, with copy and creatives. Feed it into Sheets, Slack or Looker.
- **Creative research**: collect headlines, CTAs and videos that competitors have run for months (high `daysShown` means the ad works).
- **Market & expansion research**: who scales ads in which EU country (`impressionsByCountry`, `euImpressionsMax`).
- **Brand protection**: who advertises with your brand or domain.
- **Sales prospecting**: find companies that are actively spending on ads right now (`isActive`).

### Quick start

1. Enter advertisers, e.g. `otto.de`, `Zalando`, `booking.com`.
2. Pick the libraries (default: Google + Microsoft; add Snapchat with one click).
3. Optional: countries (`DE`, `FR`, or `EU` for all 27), a date (`30 days`), formats (text/image/video) or Google surfaces (YouTube, Search…).
4. Run. The default input (otto.de, 10 ads per library) finishes in about a minute.

**Monitor recipe:** turn on `onlyNewAds`, then create a **Schedule** (daily or weekly). The first run stores a baseline. Every later run returns only ads that **started running since the last check** (`changeType: "new"`) or **stopped** (`"stopped"`). Connect Slack, e-mail, Google Sheets or a webhook to get alerts. Old long-running ads that merely rotate into the "newest" list are recognised and are not reported as new.

### Input

| Field | Example | Notes |
|---|---|---|
| `advertisers` | `["otto.de", "Booking.com", "AR17828074650563772417"]` | name, domain, Google `AR…` ID or URL, Microsoft advertiser ID or URL, Meta page ID |
| `platforms` | `["google","microsoft","snapchat"]` | `"meta"` needs `metaAccessToken` |
| `countries` | `["DE","AT"]` or `["EU"]` | only ads shown there; empty = all |
| `maxAdsPerAdvertiser` | `20` | newest first; hard cap per advertiser and library |
| `onlyShownSince` | `"30 days"` / `"2026-10-01"` | |
| `adFormats`, `googleSurfaces` | `["video"]`, `["YOUTUBE"]` | filters |
| `includeDetails`, `includeAdText` | `true` | EU reach/targeting; ad copy. Both included in the price |
| `onlyNewAds`, `reportStoppedAds`, `monitorKey` | `true`, `true`, `"weekly-fashion"` | monitor mode |
| `maxItems`, `maxChargeUsd` | `500`, `2` | hard stop; also limits what is fetched |

### Output (one row per ad)

Main fields: `platform`, `changeType`, `adId`, `adUrl`, `advertiserName`, `advertiserId`, `format`, `headline`, `bodyText`, `callToAction`, `displayUrl`, `landingUrl`, `imageUrls`, `videoUrl`, `youtubeUrl`, `firstShown`, `lastShown`, `daysShown`, `isActive`, `countries`, `surfaces`, `impressionsTotal`, `euImpressionsMin/Max`, `euReach`, `impressionsByCountry`, `impressionsBySurface`, `targeting`, `paidBy`, `beneficiary`, `firstSeenByMonitor`, `charged`.

Dataset views in Console: **Ads overview**, **Ad copy & creatives**, **EU reach & targeting**, **Monitor (new/stopped)**, **Errors**. Export to Excel, CSV or JSON, or use the API. The `RUN_SUMMARY` record shows counts per platform and input, new/stopped/unchanged ads, runtime and the estimated charge.

Errors are rows with `status: "error"`, an `errorCode` (`not_found`, `no_ads`, `rate_limited`, `token_missing`, `invalid_input`…) and `charged: false`.

### Pricing

You pay **per ad delivered**, and everything (ad copy, EU reach, targeting, media) is included. These are **never charged**: error rows, unknown advertisers, duplicates (the same ad reached via two inputs), and unchanged ads in monitor mode.

### Meta (optional)

Meta allows ad-library access only through its official API. Create a free token at [facebook.com/ads/library/api](https://www.facebook.com/ads/library/api) (Meta asks for identity confirmation) and paste it into `metaAccessToken`, which is stored encrypted. Without a token, Meta is skipped with one free info row. *Beta.*

### Limitations (honest list)

- Google: some text ads exist only as an image (copy inside the picture). For those you get the image URL.
- Microsoft lists only ads shown in the EEA. Some brands advertise there under their legal company name (try e.g. "Otto GmbH").
- Snapchat lists ads shown in the EU and Turkey (last 12 months, DSA).
- LinkedIn and TikTok are not included: their libraries cannot be accessed reliably without bypassing bot protection, which we don't do.

### FAQ

**Is this legal?** The Actor reads only the public transparency libraries that the platforms publish under the EU DSA, plus official public APIs. It uses no logins, no cookies and no CAPTCHA solving.
**How fast is it?** About 1 minute for the default input. Large monitors with dozens of advertisers take a few minutes.
**Something missing or broken?** Open an issue on the Actor page. Feature requests are welcome, and fixes usually ship within a day.

### Ready-made templates

The [Market Radar n8n pack](https://pegton.gumroad.com/l/market-radar-n8n) includes a ready-to-import workflow that runs this Actor on a schedule and reports only new or stopped ads, plus workflows for app reviews, creators and leads.

# Actor input Schema

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

One per line: brand name (<code>Otto</code>), website domain (<code>zalando.de</code>), Google Ads Transparency advertiser ID (<code>AR…</code>) or URL, Microsoft Ad Library advertiser ID or URL, or Meta page ID. Bulk lists welcome (hundreds of brands). Names are resolved to the matching advertiser accounts automatically. Duplicates (e.g. <code>OTTO.DE</code> and <code>https://www.otto.de/</code>) are merged, and an ad reached via two inputs is delivered and charged once.

## `platforms` (type: `array`):

Which public ad libraries to search. Google, Microsoft and Snapchat need no account. Meta needs your own free Ad Library API token (see below).

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

ISO country codes like <code>DE</code>, <code>FR</code> (<code>UK</code> and <code>EL</code> are accepted). Shortcuts: <code>EU</code> (27 member states), <code>EEA</code>. Only ads shown in these countries. Empty = all countries.

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

Hard cap per advertiser and platform. Newest ads first. You are never charged for more than this.

## `onlyShownSince` (type: `string`):

Date (<code>2026-10-01</code>) or relative (<code>30 days</code>, <code>2 weeks</code>). Leave empty for all time.

## `adFormats` (type: `array`):

Only these formats. Empty = all.

## `googleSurfaces` (type: `array`):

Only Google ads that were shown on these surfaces (uses the per-ad details). Empty = all.

## `includeDetails` (type: `boolean`):

EU impressions range, impressions per country, surfaces (Search, YouTube, Shopping…), targeting categories and 'paid by' (DSA data). Included in the per-ad price.

## `includeAdText` (type: `boolean`):

Headline, long headline, description, call to action, landing page and YouTube video for Google ads, read from the ad's public preview. Included in the per-ad price.

## `onlyNewAds` (type: `boolean`):

Monitor mode. The first run stores a baseline; every later run returns only ads that started running since the previous check (changeType = new) and, optionally, ads that stopped. Long-running ads that merely rotate into the newest list are recognised and not reported as new. Schedule the Actor daily or weekly for competitor-ad alerts. Unchanged ads are skipped and never charged.

## `reportStoppedAds` (type: `boolean`):

Monitor mode: also return ads that were running at the last check and have stopped since (changeType = stopped).

## `monitorKey` (type: `string`):

Separate memory for different monitors. Defaults to a key derived from advertisers, platforms and countries.

## `metaAccessToken` (type: `string`):

Only for Meta. Your own token from <a href='https://www.facebook.com/ads/library/api' target='_blank'>facebook.com/ads/library/api</a> (free, requires identity confirmation by Meta). Stored encrypted.

## `maxItems` (type: `integer`):

Stop after this many ads across all advertisers. Also limits how much is fetched, so the run stays fast and cheap. 0 = no limit.

## `maxChargeUsd` (type: `number`):

Stop before the estimated charge exceeds this. 0 = no extra limit (the platform's max charge still applies).

## `maxAdvertisersPerInput` (type: `integer`):

When you enter a brand name, how many matching advertiser accounts to include (e.g. country subsidiaries).

## `maxConcurrency` (type: `integer`):

Parallel requests per run. Higher is faster but more likely to be rate-limited by Google.

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

Apify datacenter proxy is recommended; the Actor falls back to direct connections automatically.

## Actor input object example

```json
{
  "advertisers": [
    "otto.de",
    "Zalando",
    "Booking.com",
    "AR15589870916631265281"
  ],
  "platforms": [
    "google",
    "microsoft"
  ],
  "countries": [],
  "maxAdsPerAdvertiser": 10,
  "adFormats": [],
  "googleSurfaces": [],
  "includeDetails": true,
  "includeAdText": true,
  "onlyNewAds": false,
  "reportStoppedAds": true,
  "maxItems": 0,
  "maxChargeUsd": 0,
  "maxAdvertisersPerInput": 3,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `ads` (type: `string`):

All result rows. Views: overview, EU reach & targeting, monitor, errors.

## `runSummary` (type: `string`):

Counts per platform, already-seen ads, requests, runtime, estimated charge and stop reason.

# 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": [
        "otto.de"
    ],
    "platforms": [
        "google",
        "microsoft"
    ],
    "maxAdsPerAdvertiser": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("pegton/ad-library-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": ["otto.de"],
    "platforms": [
        "google",
        "microsoft",
    ],
    "maxAdsPerAdvertiser": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("pegton/ad-library-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": [
    "otto.de"
  ],
  "platforms": [
    "google",
    "microsoft"
  ],
  "maxAdsPerAdvertiser": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call pegton/ad-library-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pegton/ad-library-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/8kiPlV2HyB37lACXo/builds/dRPueJzCKq5tGn4D8/openapi.json
