# Google & Meta Ad Intelligence Tracker with Watchlists (`sebultura/ad-intelligence-tracker`) Actor

Scrape public Google Ads Transparency Center and Meta Ads Library (Facebook) data. Track competitor ads with watchlists, filter by country, format, and date, add optional creative and delivery details, deduplicate results, and export JSON, CSV, or Excel.

- **URL**: https://apify.com/sebultura/ad-intelligence-tracker.md
- **Developed by:** [enes polat](https://apify.com/sebultura) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 65.5% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## Google & Meta Ad Intelligence Tracker with Watchlists

**Monitor competitor advertising across public transparency libraries without maintaining your own collection workflow.** This Apify Actor scrapes publicly visible records from [Google Ads Transparency Center](https://adstransparency.google.com/) and [Meta Ads Library (Facebook)](https://www.facebook.com/ads/library/), normalizes them into one dataset, removes duplicates, and can emit only newly observed ads on later watchlist runs.

Use it for competitor research, creative monitoring, agency reporting, historical ad research, and scheduled change detection. Export results through Apify as JSON, CSV, Excel, or through your own integration.

The Actor uses public transparency data and does not require your Google Ads or Meta account. It is not an official Google or Meta API and does not access private advertising accounts.

### Why use this Google and Meta Ads Library scraper?

- **Search Google by advertiser name, exact domain, or advertiser ID.** Domain and ID modes skip advertiser-name lookup and reduce unnecessary work.
- **Filter Google results** by region, creative format, Google surface, activity status, and served-date range.
- **Collect richer source fields** including exact format, matched domain, served days, activity timestamps, and impression bounds when supplied.
- **Optionally enrich delivery data** with spend bounds, served countries, country-level impression breakdowns, political categories, and payer details when exposed.
- **Optionally enrich a bounded number of creatives** with preview text, media URLs, destination links, and dimensions.
- **Monitor only new ads** with named watchlists and first/last observation timestamps.
- **Control result volume and preview work** with per-query, page-size, page-count, and run-wide detail limits.
- **Inspect every run** with planned, attempted, succeeded, failed, empty, and partial outcomes.
- **Avoid duplicate charges** through deduplication, watchlist filtering, and one charge per saved ad.

### Competitor ad monitoring use cases

- **Agencies:** monitor client competitors across Google and Meta and export structured reporting data.
- **Performance marketers:** compare creative formats, public ad copy, destination links, and source-provided delivery history.
- **Research teams:** study historical ads and optional spend or impression bounds when the public source supplies them.
- **Developers and data teams:** integrate normalized ad-library records through the Apify API, schedules, webhooks, or dataset exports.

### Quick start

1. Open the Actor in Apify Console and select **Input**.
2. Keep the default `nike` advertiser search or enter another brand.
3. Keep **Google**, **US**, **active**, and **20 ads per query** for a first run.
4. Leave **Creative detail limit** and **Delivery detail limit** at `0` for the lowest-cost list run.
5. In **Run options**, select **1024 MB memory** for the documented first-run configuration. Higher memory increases platform usage and the proposed start-event cost.
6. Select **Start**, then open the **Dataset** tab and export the results.

Ready-to-run default input:

```json
{
  "searchQueries": ["nike"],
  "platforms": ["google"],
  "googleQueryMode": "advertiserName",
  "country": "US",
  "adStatus": "active",
  "googleAdFormat": "all",
  "googleSurfaces": [],
  "maxAdsPerQuery": 20,
  "googlePageSize": 40,
  "includeCreatives": true,
  "maxCreativeDetails": 0,
  "maxDeliveryDetails": 0,
  "watchlist": false,
  "watchlistName": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

`maxAdsPerQuery` is an upper bound for each platform/query combination, not a promise that the source has that many matching ads. When both platforms are selected, the limit applies separately to Google and Meta for each search string. A valid search may return fewer records or none.

### Google search modes

#### Advertiser name

Use `googleQueryMode: "advertiserName"` with a public advertiser or brand name:

```json
{
  "searchQueries": ["nike"],
  "platforms": ["google"],
  "googleQueryMode": "advertiserName",
  "country": "US",
  "adStatus": "active",
  "maxAdsPerQuery": 20
}
```

#### Exact domain

Use `googleQueryMode: "domain"` when you already know the advertised website. This skips advertiser-name lookup:

```json
{
  "searchQueries": ["nike.com"],
  "platforms": ["google"],
  "googleQueryMode": "domain",
  "country": "US",
  "adStatus": "all",
  "googleAdFormat": "video",
  "googleSurfaces": ["youtube"],
  "googleStartDate": "2026-09-01",
  "googleEndDate": "2026-09-30",
  "maxAdsPerQuery": 50
}
```

#### Advertiser ID

Use `googleQueryMode: "advertiserId"` with an `AR` identifier copied from a public Google advertiser page. This also skips advertiser-name lookup:

```json
{
  "searchQueries": ["AR01614014350098432001"],
  "platforms": ["google"],
  "googleQueryMode": "advertiserId",
  "country": "US",
  "adStatus": "active",
  "maxAdsPerQuery": 20
}
```

An advertiser can have no matching ads for a particular region, date range, format, surface, or activity status. That is a valid empty result, not evidence of an incorrect ID.

### Meta (Facebook) Ads Library searches

#### Keyword search

```json
{
  "searchQueries": ["nike"],
  "platforms": ["meta"],
  "country": "US",
  "adStatus": "active",
  "maxAdsPerQuery": 20,
  "watchlist": false
}
```

#### Direct public ad URL

Use a public `facebook.com/ads/library/?id=...` URL when you need one specific Library ID:

```json
{
  "searchQueries": ["https://www.facebook.com/ads/library/?id=123456789"],
  "platforms": ["meta"],
  "country": "US",
  "adStatus": "all",
  "maxAdsPerQuery": 1,
  "watchlist": false
}
```

Only the requested Library ID is eligible for output; related ads rendered on the same page are not emitted or treated as proof that the requested ad loaded. If the requested ID does not render within the bounded wait, the Actor reports an honest failure rather than substituting a related ad or fabricating a valid-empty result.

### Input reference

| Field | Default | What it does |
|---|---:|---|
| `searchQueries` | `["nike"]` | One to twenty distinct brands, domains, IDs, Meta keywords, or public Meta Ads Library URLs. |
| `platforms` | `["google"]` | Select `google`, `meta`, or both. Google-specific options do not alter Meta searches. |
| `googleQueryMode` | `advertiserName` | Interpret Google queries as `advertiserName`, `domain`, or `advertiserId`. |
| `country` | `US` | Two-letter source region code. Google uses its published region mapping; not every region has ads for every query. |
| `adStatus` | `active` | Google `active` means last shown since the start of the run's UTC day. Use `all` for history and custom dates. Meta uses its native status filter. |
| `googleAdFormat` | `all` | Restrict Google to `text`, `image`, or `video`, or keep `all`. |
| `googleSurfaces` | `[]` | Optional list containing `play`, `maps`, `search`, `shopping`, and/or `youtube`. Empty means no surface restriction. |
| `googleStartDate` | empty | Optional served-date lower bound in `YYYY-MM-DD` format. Requires `adStatus: "all"`. |
| `googleEndDate` | empty | Optional served-date upper bound in `YYYY-MM-DD` format. Requires `adStatus: "all"`. |
| `maxAdsPerQuery` | `20` | Maximum candidates per platform/query combination, before watchlist filtering, from 1 to 5,000. |
| `googlePageSize` | `40` | Advanced page-size setting from 10 to 100. Small result limits automatically use smaller requests. |
| `googleMaxPages` | automatic | Optional hard page cap from 1 to 50. A deliberate cap can produce fewer records without being treated as a source failure. |
| `includeCreatives` | `true` | Include public creative, preview, and media URLs when available. Files are not permanently mirrored. |
| `maxCreativeDetails` | `0` | Total Google previews to enrich across the run, from 0 to 50. Zero disables additional preview requests. |
| `maxDeliveryDetails` | `0` | Total Google ads to enrich with source delivery details across the run, from 0 to 50. Zero disables additional delivery requests. |
| `watchlist` | `false` | Compare current results with earlier observations in the same named watchlist. |
| `watchlistName` | `default` | One to 64 letters, numbers, underscores, or hyphens. Use separate names for unrelated monitoring setups. |
| `proxyConfiguration` | disabled | Enable only if required by your network. Do not use proxies to bypass source rate limits. |

#### Served dates versus first-seen dates

Google's custom date range selects ads **served during that range**. It does not require the ad's first activity timestamp to fall inside the range. An ad first shown earlier can therefore match if it was also served during the selected period.

To use either custom date field, set `adStatus` to `all`. This prevents a historical range from being unintentionally intersected with the Actor's current-day active filter.

### Delivery details: spend and country breakdowns when supplied

Set `maxDeliveryDetails` above zero to request additional public source details for a bounded number of new, deduplicated Google ads selected for output. Depending on the ad, this can add:

- exact impression and spend lower/upper bounds;
- served countries and country-level impression/date breakdowns;
- commercial, political, shopping, travel, or local-services category;
- political regions, end payer name, and synthetic-media flags when exposed.

These values are normalized only when the source supplies them. The Actor does not estimate missing spend, impressions, reach, or targeting, and it does not dump oversized raw targeting payloads into the dataset.

The delivery limit is **run-wide**. Duplicates and known watchlist ads do not consume it. `deliveryDetailsStatus` records whether details were enriched, unavailable, capped, not requested, or unsupported. Delivery enrichment runs before preview enrichment; if it already provides inline creative content, the Actor avoids an unnecessary preview request.

### Creative details: richer output only when requested

A normal list run already includes source-provided format, matched domain, served days, activity timestamps, preview URLs, and impression bounds when available. Set `maxCreativeDetails` above zero only when you also need extracted preview content.

Depending on the public creative, enrichment can add:

- visible preview text in its original language;
- public media asset URLs;
- a destination link when explicitly present;
- creative width and height.

The limit is **run-wide**, not per query. Duplicates and known watchlist ads are removed before enrichment, so they do not consume the detail limit. Preview requests are not retried after a rate limit. Only verified Google HTTPS preview hosts are requested; redirects are not followed and other hosts are left unavailable. If a preview or delivery request fails, base ad records are preserved and the run is marked partial.

`creativeDetailsStatus` explains each record:

| Value | Meaning |
|---|---|
| `inline` | Detail was present in the original result; no extra preview request was needed. |
| `enriched` | The optional preview was read successfully. |
| `not_requested` | No additional preview was requested. |
| `limit_reached` | The run-wide detail cap had already been used. |
| `unavailable` | No supported public preview detail was available. |
| `not_supported` | The selected source does not support this enrichment workflow. |

### Output: what data can you extract?

Every dataset item follows one versioned **40-field schema**. Unknown values remain `null`; the Actor does not invent ad copy, impressions, spend, reach, targeting, or dates.

| Data group | Fields |
|---|---|
| Record and source | `schemaVersion`, `platform`, `adId`, `sourceUrl` |
| Advertiser | `advertiser`, `advertiserId`, `advertiserUrl`, `advertiserVerified` |
| Creative content | `adText`, `adTextSource`, `adFormat`, `creativeUrls`, `previewUrl`, `mediaUrls`, `cta` |
| Creative enrichment | `creativeWidth`, `creativeHeight`, `creativeDetailsStatus` |
| Destination and domain | `landingUrl`, `matchedDomain` |
| Delivery history | `firstSeenAtSource`, `lastSeenAtSource`, `daysShown`, `impressionsLowerBound`, `impressionsUpperBound`, `reachBand`, `servedCountries`, `countryImpressions`, `deliveryDetailsStatus` |
| Spend and classification | `spendLowerBound`, `spendUpperBound`, `creativeCategory` |
| Political transparency | `politicalRegions`, `endPayerName`, `containsSyntheticMedia` |
| Query context | `country`, `query` |
| Actor watchlist history | `isNewInWatchlist`, `firstObservedAt`, `lastObservedAt` |

`matchedDomain` is the domain returned for the creative; it is not assumed to be the final landing page. `daysShown` and impression bounds are source-provided values, not calculations or estimates. `firstObservedAt` and `lastObservedAt` are Actor observation timestamps and are separate from source activity dates.

#### Example output record

This is a real public Google Ads Transparency result captured on 22 October 2026. Optional creative and delivery detail requests were disabled; the example contains no account credentials, proxy settings, or private run data:

```json
{
  "schemaVersion": "1.2",
  "platform": "google",
  "adId": "CR09488426838196748289",
  "advertiser": "lululemon athletica canada inc.",
  "advertiserId": "AR01614014350098432001",
  "advertiserUrl": "https://adstransparency.google.com/advertiser/AR01614014350098432001?region=US",
  "advertiserVerified": null,
  "adText": null,
  "adTextSource": null,
  "adFormat": "text",
  "creativeUrls": [
    "https://tpc.googlesyndication.com/archive/simgad/908951542845632733"
  ],
  "previewUrl": null,
  "mediaUrls": [
    "https://tpc.googlesyndication.com/archive/simgad/908951542845632733"
  ],
  "landingUrl": null,
  "cta": null,
  "creativeWidth": 348,
  "creativeHeight": 249,
  "creativeDetailsStatus": "inline",
  "deliveryDetailsStatus": "not_requested",
  "politicalRegions": [],
  "servedCountries": [],
  "matchedDomain": null,
  "daysShown": 1223,
  "impressionsLowerBound": null,
  "impressionsUpperBound": null,
  "spendLowerBound": [],
  "spendUpperBound": [],
  "countryImpressions": [],
  "creativeCategory": null,
  "containsSyntheticMedia": null,
  "endPayerName": null,
  "firstSeenAtSource": "2023-06-14T09:26:29.000Z",
  "lastSeenAtSource": "2026-10-22T17:05:16.000Z",
  "reachBand": null,
  "country": "US",
  "query": "AR01614014350098432001",
  "isNewInWatchlist": false,
  "firstObservedAt": "2026-10-22T17:26:35.783Z",
  "lastObservedAt": "2026-10-22T17:26:35.783Z",
  "sourceUrl": "https://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR09488426838196748289?region=US"
}
```

### Competitor monitoring with watchlists

1. Enable `watchlist` and choose a unique `watchlistName`.
2. Run once to establish the baseline. The first run emits all matching records.
3. Schedule later runs with the same input and watchlist name.
4. Later runs emit only ads that are new for that watchlist context. Known ads are not charged as new `ad` events.
5. Configure notifications or downstream delivery through Apify integrations.

Example mixed Google + Meta watchlist input:

```json
{
  "searchQueries": ["nike"],
  "platforms": ["google", "meta"],
  "googleQueryMode": "advertiserName",
  "country": "US",
  "adStatus": "active",
  "maxAdsPerQuery": 20,
  "maxCreativeDetails": 0,
  "maxDeliveryDetails": 0,
  "watchlist": true,
  "watchlistName": "nike-google-meta",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

Use the same input and watchlist name on later scheduled runs, and do not overlap runs for this watchlist context.

Watchlist state is isolated by watchlist name, platforms, queries, country, ad status, and applicable Google query/format/surface/date filters. Google-only filters do not fork a Meta-only watchlist. Google identity uses advertiser ID plus creative ID so distinct advertisers cannot be collapsed by a creative-ID collision. Older watchlists remain readable, including compact records without advertiser IDs, and are migrated on the next save without re-emitting known ads.

Only one run may update a given watchlist context at a time. An overlapping writer is rejected with `WATCHLIST_CONFLICT`. Writer ownership is also checked during dataset output; after ownership is lost, later writes stop, records already saved remain available, and the run reports the conflict honestly. Retry after the active run finishes and avoid overlapping schedules for the same watchlist context.

### Pricing and run cost

**Private beta:** No Actor pay-per-event prices are currently applied. Apify platform usage may still apply to your account. Check the pricing shown in Apify Console for the release you are running.

The following table is the **proposed paid-release model**, not a current beta charge. It is included so beta testers can evaluate potential future costs:

| Proposed event | Illustrative price | When it would apply |
|---|---:|---|
| `ad` | **$0.001 per saved ad** | One unique ad record actually written to the default dataset. |
| `apify-actor-start` | **$0.001 per GB** | Automatically charged when a run starts; minimum one event. A 1 GB configuration would incur one start event. |

Under this proposed model with a 1 GB memory setting:

```text
Illustrative event total = $0.001 + ($0.001 × number of saved ads)
```

| Saved ads | Illustrative event total |
|---:|---:|
| 0 | $0.001 |
| 1 | $0.002 |
| 20 | $0.021 |
| 100 | $0.101 |
| 1,000 | $1.001 |

Under this model, the start event would apply even when a source fails or returns no records. Ad events would apply only to records written to the dataset. Duplicate ads, known watchlist ads filtered before output, and records skipped because of a spending limit would not be billed as `ad` events. The proposed model has no separate default-dataset-item event, so a saved ad would not be charged twice.

When event pricing is enabled with 1 GB memory, the minimum allowed maximum run charge is **$0.002**, covering one start event plus one saved ad. Higher memory requires a cap that covers the corresponding start events. Set a higher spending cap in Apify Console or with the `maxTotalChargeUsd` API option. Records beyond the charge cap are not written or charged. The Actor also uses the remaining ad-event capacity to bound source collection and optional detail work before output. When an existing watchlist is enabled, known records may still be read to find later new ads; new records that cannot be emitted within the cap are not marked as observed in watchlist history.

If the cap is reached exactly on the final requested record and no work or output was skipped, the run can still succeed. A budget-capped source request also counts as complete when the source explicitly reports exhaustion without returning excess rows and no later query is skipped. Unknown pagination at the cap remains conservatively partial. `chargeLimitReached` records the platform limit signal, while `chargeLimitPreventedCompletion` distinguishes a cap that actually truncated collection or output.

### API, scheduling, and integrations

```bash
curl -X POST \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries":["nike"],"platforms":["google"],"country":"US","adStatus":"active","maxAdsPerQuery":20}' \
  "https://api.apify.com/v2/acts/qODQ7y8DYUt59ryAA/runs?memory=1024&timeout=300"
```

The private-beta example omits `maxTotalChargeUsd` because Actor event pricing is not active. When event pricing is enabled, that option can set a paid-run spending cap. Use Apify's run and dataset APIs to retrieve results. For recurring monitoring, create an Apify Schedule. Integrations can deliver records to Google Sheets, Zapier, Make, Slack, or your own webhook workflow.

### Run status and troubleshooting

The default key-value store contains a `runSummary` record with query counts, empty searches, emitted totals, creative and delivery detail usage, source errors, dataset output errors, request totals, rate-limit state, and spending-limit status. Terminal status messages include stable error codes when available, such as `INPUT_VALIDATION_ERROR`, `NO_VALIDATED_ADS`, `RUN_PARTIAL`, `WATCHLIST_CONFLICT`, or `DATASET_WRITE_ERROR`.

`runSummary.workload` provides stable analytics dimensions for the requested workload: sorted platforms, list/watchlist mode, queries per platform, country, ad status, Google query mode when applicable, requested result volume, creative inclusion, and requested detail limits. The separate creative/delivery statistics continue to show actual attempted and enriched work. `watchlistBaseline` and `watchlistPreviousRecords` describe the history loaded at the start of the run, not the history size after output; they remain `null` for non-watchlist runs or when watchlist state could not be loaded. The workload block does not contain search text, watchlist names, proxy URLs, or account identifiers.

After input is accepted, terminal processing errors are also recorded in `runSummary` with `failure.code` and `failure.message` when summary storage is available. Confirmed dataset writes remain included in `emitted`; a terminal error after saved output is reported as partial rather than as a false zero-record failure. A transient summary-store write receives one bounded second attempt.

- **Succeeded:** all attempted work completed within the requested limits. A valid empty search can succeed with zero records.
- **Partial:** some records may have been saved, but a source error, rate limit, preview error, dataset output error, unexpected extraction shortfall, or charge cap prevented full completion. Partial runs have a non-zero exit status.
- **Failed:** no validated records were produced because of source errors or an active cooldown, or no records could be saved because dataset output failed. Failed runs also have a non-zero exit status.

If dataset output fails after one or more records were saved, later writes stop, earlier records remain available, and `outputErrors` records the failure. Watchlist history is saved only for records actually emitted before the failure.

#### Why did my run fail with HTTP 429 or a cooldown?

The public source rate-limited a request, or a previously supplied cooldown is still active. Wait until the reported cooldown expires. The Actor does not rotate proxies, switch to a browser, or repeatedly retry to bypass a 429.

`Retry-After` is also honored for retryable HTTP failures during search and optional enrichment. A short server-directed wait can use the bounded transport retry; a wait beyond that retry budget stops the affected work and applies the reported cooldown instead of leaving the run asleep. Within a run, multiple rate-limit signals retain the later valid `retryAt`; sequential state updates do not replace it with an earlier one.

#### Why did I receive fewer records than my maximum?

The source may have fewer matches, pagination may end, your explicit page cap may apply, or the active/format/surface/date filters may narrow the results. Inspect `runSummary` to distinguish a valid small result from an incomplete extraction.

#### Why is a field null?

The public source did not expose a verified value, or optional creative enrichment was not requested. Creative and preview URLs can also expire because media is not mirrored.

#### Does this Actor estimate impressions, spend, reach, or targeting?

No. It includes only source-provided fields. Missing values remain null.

#### Can I use this Actor as an ad library API?

Yes. Use the Apify API to start runs with your own filters and retrieve the normalized dataset as JSON or another supported export format. This provides an API workflow around public ad-library data; it is not an official Google or Meta API and does not access private ad accounts.

#### Is this an official Google or Meta product?

No. This is an independent Apify Actor for publicly available transparency data. Google, Google Ads, Meta, and Facebook are trademarks of their respective owners. You are responsible for complying with applicable source terms and laws.

#### How do I request support?

Include the **run ID**, a credential-free copy of your input, the Actor status message, and `runSummary`. Do not share API tokens, proxy passwords, cookies, or private account data.

# Actor input Schema

## `searchQueries` (type: `array`):

One to twenty values. Google interprets these using googleQueryMode. Meta accepts keywords or public facebook.com/ads/library URLs.

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

Select Google, Meta, or both. Google-specific filters do not change Meta searches.

## `googleQueryMode` (type: `string`):

Search Google by advertiser name, exact domain, or advertiser ID. Domain and ID modes skip advertiser-name lookup.

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

Two-letter source region code. Google supports its published region mapping; availability and result counts vary by region.

## `adStatus` (type: `string`):

Google active means last shown since the start of the run's UTC day. Use all for Google history and custom dates. Meta uses its native active/all filter.

## `googleAdFormat` (type: `string`):

Optionally restrict Google results to one source-provided creative format.

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

Optional Google placement filters. Leave empty to include all supported surfaces.

## `googleStartDate` (type: `string`):

Optional YYYY-MM-DD lower bound for ads served during a date range. Requires adStatus=all.

## `googleEndDate` (type: `string`):

Optional YYYY-MM-DD upper bound for ads served during a date range. Requires adStatus=all.

## `maxAdsPerQuery` (type: `integer`):

Upper bound per platform/query combination, not a promise that the source has that many matching ads.

## `googlePageSize` (type: `integer`):

Advanced pagination setting from 10 to 100. The Actor reduces it automatically for small result limits.

## `googleMaxPages` (type: `integer`):

Optional hard cap from 1 to 50. Leave empty for an automatic limit based on maxAdsPerQuery and page size.

## `includeCreatives` (type: `boolean`):

Include public preview and media URLs when available. Media files are not permanently mirrored.

## `maxCreativeDetails` (type: `integer`):

Total Google previews to enrich across this run, from 0 to 50. Zero disables extra preview requests. Duplicates and known watchlist ads are not enriched.

## `maxDeliveryDetails` (type: `integer`):

Total Google ads to enrich with source-provided delivery details across this run, from 0 to 50. Zero disables extra delivery requests. Duplicates and known watchlist ads are not enriched.

## `watchlist` (type: `boolean`):

Compare this run with the previous run in the same named watchlist.

## `watchlistName` (type: `string`):

One to 64 letters, numbers, underscores or hyphens; use a distinct name for each monitoring setup.

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

Disabled by default to avoid unnecessary network cost. Enable only when required by your network; never use proxies to bypass rate limits.

## Actor input object example

```json
{
  "searchQueries": [
    "nike"
  ],
  "platforms": [
    "google"
  ],
  "googleQueryMode": "advertiserName",
  "country": "US",
  "adStatus": "active",
  "googleAdFormat": "all",
  "googleSurfaces": [],
  "maxAdsPerQuery": 20,
  "googlePageSize": 40,
  "includeCreatives": true,
  "maxCreativeDetails": 0,
  "maxDeliveryDetails": 0,
  "watchlist": false,
  "watchlistName": "default",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset containing validated Google and/or Meta public ad records. The overview view is selected in Apify Console.

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

JSON record with emitted counts, query outcomes, creative and delivery detail limits, source errors, request totals, rate-limit cooldowns and charge-limit status.

# 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 = {
    "searchQueries": [
        "nike"
    ],
    "platforms": [
        "google"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("sebultura/ad-intelligence-tracker").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 = {
    "searchQueries": ["nike"],
    "platforms": ["google"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("sebultura/ad-intelligence-tracker").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 '{
  "searchQueries": [
    "nike"
  ],
  "platforms": [
    "google"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call sebultura/ad-intelligence-tracker --silent --output-dataset

```

## MCP server setup

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

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/qODQ7y8DYUt59ryAA/builds/5uxho48WvTWCOn39A/openapi.json
