> ## Documentation Index
> Fetch the complete documentation index at: https://filament.getgalaxy.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Reddit Ads source connector

> Read Reddit Ads businesses, ad accounts, campaigns, audiences, and daily performance reports with Filament.

Connector ID `reddit_ads`

The Reddit Ads source provides 28 selectable resources through an
[HTTP manifest](https://filament.getgalaxy.io/pages/connectors/building-a-connector/http-manifests.md).
It targets [Reddit Ads API v3](https://ads-api.reddit.com/docs/v3/). Use
`reddit_ads@v3` to pin this API version. `reddit_ads` resolves to it.
The connector is in preview. Its API contracts and shared engine have been
checked locally, but live account reads have not been validated.

## Configuration

| Field | Scope | Default | Description |
| - | - | - | - |
| `client_id` | Connection | | Required. App ID of your Reddit developer application. |
| `client_secret` | Connection | | Required secret. Secret of the same developer application. |
| `refresh_token` | Connection | | Required secret. Refresh token from a permanent authorization with the `adsread` scope. Filament saves replacement tokens automatically for saved connections. |
| `end_date` | Pipeline | `2100-01-01` | Exclusive UTC end date for report resources, as `YYYY-MM-DD`. The default leaves the window open. |

Report resources need no date settings. Each run starts from the report's
saved watermark as [Modes](#modes) describes. `end_date` is sent at UTC midnight
as the report's `ends_at`. Leave it at the default so every run reads through
the latest data. Set a real date only to stop reports at a fixed day, or if
Reddit rejects the open window. Other resources do not use a date window.

### Get a refresh token

Only business admins with a verified account can create developer applications.
See [create a developer application](https://ads-api.reddit.com/docs/v3/guides/quick-start/create-dev-app)
and [authenticate your developer application](https://ads-api.reddit.com/docs/v3/guides/quick-start/authenticate).

1. In Reddit Ads Manager open **Business → Developer Portal** and choose
   **Add Apps → Create an app**. Set a redirect URL that you control. Copy the
   app ID and secret after Reddit creates the app.

2. Open the authorization URL in a browser signed in as the Reddit account that
   should grant access. Replace the app ID, state, and redirect URL with your own.
   `duration=permanent` is required for a refresh token.

   ```text theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
   https://www.reddit.com/api/v1/authorize?client_id=APP_ID&response_type=code&state=STATE&redirect_uri=REDIRECT_URL&duration=permanent&scope=adsread
   ```

3. Approve access. Reddit redirects to your URL with a `code` query parameter.
   Remove any trailing `#_` from it. The code is single-use and expires after
   ten minutes.

4. Exchange the code for tokens with HTTP Basic authentication using the app ID
   and secret.

   ```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
   curl -X POST https://www.reddit.com/api/v1/access_token \
     -A 'filament:APP_ID:1.0' \
     -u 'APP_ID:APP_SECRET' \
     -d 'grant_type=authorization_code&code=CODE&redirect_uri=REDIRECT_URL'
   ```

5. Enter the returned `refresh_token` with the app ID and secret. The access
   token in the same response is not needed.

The connection test reads the businesses the authorizing account belongs to.
Every ad account Filament reads is reached through those businesses.

## Resources

The default selection includes `businesses`, `ad_accounts`, `campaigns`,
`ad_groups`, `ads`, and the account, campaign, ad group, and ad daily reports.
All other resources are opt-in.

### Accounts and campaigns

| Resource | Endpoint | Parent | Key |
| - | - | - | - |
| `businesses` | `GET /me/businesses` | | `id` |
| `ad_accounts` | `GET /businesses/{business_id}/ad_accounts` | `businesses` | `id` |
| `campaigns` | `GET /ad_accounts/{ad_account_id}/campaigns` | `ad_accounts` | `id` |
| `ad_groups` | `GET /ad_accounts/{ad_account_id}/ad_groups` | `ad_accounts` | `id` |
| `ads` | `GET /ad_accounts/{ad_account_id}/ads` | `ad_accounts` | `id` |
| `funding_instruments` | `GET /ad_accounts/{ad_account_id}/funding_instruments` | `ad_accounts` | `ad_account_id`, `id` |

`ad_accounts` lists the accounts a business owns. Reddit does not return ad
accounts that another business shares with it. `ads` returns one ad for each Max
campaign. `funding_instruments` requests `mode=ALL`, so active, upcoming, and
inactive instruments are all included. An instrument can fund several ad
accounts, so its key includes the ad account.

### Audiences, tracking, and lead forms

| Resource | Endpoint | Parent | Key |
| - | - | - | - |
| `custom_audiences` | `GET /ad_accounts/{ad_account_id}/custom_audiences` | `ad_accounts` | `id` |
| `saved_audiences` | `GET /ad_accounts/{ad_account_id}/saved_audiences` | `ad_accounts` | `id` |
| `pixels` | `GET /ad_accounts/{ad_account_id}/pixels` | `ad_accounts` | `ad_account_id`, `id` |
| `apps` | `GET /ad_accounts/{ad_account_id}/apps` | `ad_accounts` | `ad_account_id`, `id` |
| `lead_gen_forms` | `GET /ad_accounts/{ad_account_id}/lead_gen_forms` | `ad_accounts` | `id` |

Pixels belong to a business and can serve several ad accounts, so each row is
scoped to the ad account it was read from. `lead_gen_forms` holds form
definitions. The v3 API does not list submitted leads.

### Profiles, posts, and catalogs

| Resource | Endpoint | Parent | Key |
| - | - | - | - |
| `profiles` | `GET /businesses/{business_id}/profiles` | `businesses` | `id` |
| `posts` | `GET /profiles/{profile_id}/posts` | `profiles` | `id` |
| `product_catalogs` | `GET /businesses/{business_id}/product_catalogs` | `businesses` | `id` |
| `product_sets` | `GET /product_catalogs/{catalog_id}/product_sets` | `product_catalogs` | `id` |

### Reference data

| Resource | Endpoint | Key |
| - | - | - |
| `time_zones` | `GET /time_zones` | `id` |
| `industries` | `GET /industries` | `id` |
| `interests` | `GET /targeting/interests` | `id` |
| `carriers` | `GET /targeting/carriers` | `id` |
| `languages` | `GET /targeting/languages` | `code` |
| `third_party_audiences` | `GET /targeting/third_party_audiences` | `id` |

### Daily reports

Each report calls `POST /ad_accounts/{ad_account_id}/reports` for every ad
account with a fixed set of breakdowns and follows `pagination.next_url` with
the same request body. The v3 API has no asynchronous report job to create,
poll, and download, so reports are read synchronously.

| Resource | Breakdowns | Key |
| - | - | - |
| `ad_account_daily_report` | `DATE` | `ad_account_id`, `date` |
| `campaign_daily_report` | `CAMPAIGN_ID`, `DATE` | `ad_account_id`, `campaign_id`, `date` |
| `ad_group_daily_report` | `AD_GROUP_ID`, `DATE` | `ad_account_id`, `ad_group_id`, `date` |
| `ad_daily_report` | `AD_ID`, `DATE` | `ad_account_id`, `ad_id`, `date` |
| `campaign_country_daily_report` | `CAMPAIGN_ID`, `COUNTRY`, `DATE` | `ad_account_id`, `campaign_id`, `country`, `date` |
| `campaign_community_daily_report` | `CAMPAIGN_ID`, `COMMUNITY`, `DATE` | `ad_account_id`, `campaign_id`, `community`, `date` |
| `campaign_placement_daily_report` | `CAMPAIGN_ID`, `PLACEMENT`, `DATE` | `ad_account_id`, `campaign_id`, `placement`, `date` |

Every report requests delivery, engagement, key conversion, standard conversion
event, and video metrics. The account, campaign, ad group, and ad reports also
request `reach` and `frequency`. Reddit reports both from June 2024 onward.

Reddit returns money in the account currency at fixed scales. `spend`, `cpc`,
`cpv`, `ecpm`, and every `*_ecpa` column are in microcurrency, so divide them by
1,000,000. Every `*_total_value` column is in hundredths, so divide it by 100.
Rates, averages, and counts are returned as Reddit computes them. See the
[metric reference](https://ads-api.reddit.com/docs/v3/guides/programs/reporting/metric-reference).

Reports read UTC days, which is the API default when no time zone is sent.
Daily totals can differ from views localized to the ad account's time zone.
Reddit keeps 24 months of delivery data. Metrics settle within about six hours,
and late conversions keep arriving with Reddit's daily refresh.

Each row has columns for its breakdowns, `date`, and the requested metrics.
`date` is the start of the UTC day as a timestamp.
Every resource ends with `raw`, which holds fields the manifest does not project.
IDs remain strings, timestamps carry time zones, and nested settings such as
targeting, schedules, and delivery status remain JSON.

### Coverage boundaries

Single-object lookups repeat data the lists already return. Structured posts
repeat `posts`. Business-level pixels and funding instruments repeat the ad
account lists. Products, catalog imports, and feed issues are large operational
lists, and product feed settings carry the feed's login credentials. Community
and geolocation lookups take names or search terms instead of listing a bounded
set. Ad account history, creative media,
and point-in-time pixel and app status lookups are not replicated. Write,
forecasting, suggestion, validation, conversion upload, and data deletion
endpoints are outside this source.

Reports use fixed breakdowns. Hourly reports, keyword, interest, and language
breakdowns, custom conversion events, and custom columns are not exposed. From
December 8, 2026 Reddit limits hourly reports to seven days and allows only one
of the keyword, community, interest, and language breakdowns per request. See
[upcoming reporting API changes](https://ads-api.reddit.com/docs/v3/guides/programs/reporting/upcoming-reporting-api-changes).

## Modes

Entity and reference resources use full reads. Reddit's list endpoints have no modified-since
filter, so each run reads every object again. Use upsert on the declared keys
for the entity resources. Full upsert does not remove objects that Reddit stops
returning.

Reports are incremental on `date`. Each report keeps one watermark, the latest
`date` it has read across all ad accounts. A run requests days from that
watermark less 29 days through `end_date`. With the default `end_date` the
window stays open, so the current partial day is read and corrected by later
runs. Use upsert on the report keys so that reread days replace earlier values.

The 29-day lookback covers the longest attribution window Reddit offers, a
28-day click window, plus one day for the daily refresh that applies late
conversions. See [web attribution overview](https://business.reddithelp.com/articles/Knowledge/Web-Attribution-Overview)
and [Get A Report](https://ads-api.reddit.com/docs/v3/api/get-a-report). A
pipeline's lookback setting replaces the 29 days for that pipeline.

The first run starts at December 3, 2025, which is January 1, 2026 less the
lookback. The start is fixed in the manifest and cannot be set per pipeline.
A larger lookback reaches further back on the first run, and on every later run.

A full read of a report, with no watermark, also starts at December 3, 2025.

Because one watermark spans every ad account, a run rereads the same recent days
for all of them. An account with no recent rows loses nothing, since its older
days are already settled. An ad account that becomes visible after the first
run, such as one moved into an authorized business, is read only from the
current lookback onward. Its earlier history needs a full resync of the report.

## Behavior

* **Auth** uses OAuth 2.0 with the refresh token grant against
  `https://www.reddit.com/api/v1/access_token` and HTTP Basic client
  authentication. Access tokens last one hour or one day. Filament saves any
  replacement refresh token Reddit returns. Requests go to
  `https://ads-api.reddit.com/api/v3` with a `filament:<app ID>:1.0`
  user agent, because Reddit heavily throttles generic user agents.
* **Pagination** follows `pagination.next_url` until Reddit omits it, as Reddit
  instructs. Requests ask for 500 rows, or 100 for businesses and posts and
  1000 for reports. Industries, interests, and product catalogs return one page.
* **Rate limits** are per authorized user and per endpoint group. Reporting
  allows 60 requests a minute, so the connector sends at most one request a
  second. Groups with lower quotas, such as funding instruments, pixels, and
  lead forms, rely on the shared retry handling for 429 responses, which honors
  `Retry-After`. See [rate limiting](https://ads-api.reddit.com/docs/v3/guides/quick-start/rate-limiting).
* **Parents** are fetched for selected child resources even when the parent is
  not selected for output. A run with many ad accounts makes one request per
  account for each selected child resource and report.
* **Recovery** restarts child and report reads. A report's watermark can
  advance during a run as rows from finished ad accounts are written, because
  the engine cannot hold back the checkpoint of a per-account resource. A run
  that fails partway then restarts from that watermark less the lookback. An
  account that failed loses any days older than the lookback that it had not
  read, which matters mostly on the first backfill. A full read of the report
  recovers them.
* **Errors** remain visible. Missing permissions and rejected report requests
  fail the read instead of producing empty data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.