# Reddit Ads

Create image, video, carousel and text ads, promote existing Reddit posts, target subreddits and conversation keywords, and send Conversions API events on a redditads account.

import { Tab, Tabs } from 'fumadocs-ui/components/tabs';

Create a campaign with `POST /v1/ads/create`, or promote an existing Reddit post with `POST /v1/ads/boost`. Both run on a `redditads` account (ad platform value `reddit`, alias `redditads`).

Reddit Ads is a standalone connection:

- It has its own OAuth and its own `accountId`.
- It is separate from the organic [Reddit](/platforms/reddit) account you post with.

## Quick reference

| Property | Value |
|----------|-------|
| Hierarchy | Campaign > Ad Group > Ad, created in one call |
| Goals (`goal`) | `traffic`, `awareness`, `conversions`, `video_views`, `lead_generation` |
| Formats | Image, video, carousel (2 to 10 cards), text, and promoting an existing Reddit post |
| Headline | Required, up to 300 characters |
| Body | Optional on image, video and carousel ads, required on text ads |
| Call to action | 17 values ([Call to action](/platforms/reddit-ads/create-ads#call-to-action)) |
| Budget | `daily` or `lifetime` (a lifetime budget needs `endDate`), set on the ad group |
| Bidding | Automatic on create; manual bid or cost cap afterwards on the ad group |
| Pixel | Required on every ad group; `conversions` and `lead_generation` also need the pixel to have received the event |
| Targeting | Locations (with exclusions), gender, languages, interests, custom audiences, subreddits and conversation keywords (each with exclusions) |
| Edits after creation | Status, name, budget, bid and targeting; not creative |
| Delete | Archives on Reddit |
| Performance sync | Daily impressions, clicks and spend |
| Conversions API | Yes, to a Reddit pixel |
| Dry run (`validateOnly`) | No (`501`) |

## Before you start

You need a Reddit account with a role on at least one Reddit ad account, created in Reddit Ads Manager.

Two things in that ad account must exist before you create an ad, because Reddit requires them and Zernio cannot create them:

- **A pixel.** Reddit attaches a pixel to every ad group, whatever the goal. Without one, every create returns `422`. Create it in Reddit Ads Manager under Events Manager.
- **A profile.** A Reddit ad is a post made by a profile of the ad account. Zernio posts new ads from the ad account's first profile.

## Connect

Call `GET /v1/connect/redditads/ads` with the `profileId` the connection belongs to ([Connect ads](/connect/connect-ads)). No posting account is involved, so there is no `accountId` on this call.

<Tabs items={['Node.js', 'Python', 'curl']}>
<Tab value="Node.js">
```typescript
import Zernio from '@zernio/node';

const zernio = new Zernio();

const { data: start } = await zernio.connect.connectAds({
  path: { platform: 'redditads' },
  query: { profileId: '66a1f0c2a4b9d3e8f1a2b3c4', redirect_url: 'https://your-app.com/cb' }
});

console.log(start.authUrl ?? start.accountId);
```
</Tab>
<Tab value="Python">
```python
from zernio import Zernio

client = Zernio()

start = client.connect.connect_ads(
    platform="redditads",
    profile_id="66a1f0c2a4b9d3e8f1a2b3c4",
    redirect_url="https://your-app.com/cb",
)

print(start.get("authUrl") or start.get("accountId"))
```
</Tab>
<Tab value="curl">
```bash
curl "https://zernio.com/api/v1/connect/redditads/ads?profileId=66a1f0c2a4b9d3e8f1a2b3c4&redirect_url=https://your-app.com/cb" \
  -H "Authorization: Bearer $ZERNIO_API_KEY"
```
</Tab>
</Tabs>

Response (`200`) for a profile with no working Reddit Ads connection:

```json
{
  "authUrl": "https://www.reddit.com/api/v1/authorize?client_id=...&scope=adsread+adsedit+adsconversions&duration=permanent&...",
  "state": "..."
}
```

Send the user to `authUrl`. Reddit asks for three permissions:

| Scope | Used for |
|-------|----------|
| `adsread` | Reading ad accounts, campaigns, ad groups, ads, pixels and metrics |
| `adsedit` | Creating and changing campaigns, ad groups, ads and the posts behind them |
| `adsconversions` | Sending events to a pixel through the [Conversions API](/platforms/reddit-ads/conversions) |

`adsread` and `adsedit` are required: if the user unticks either, the browser comes back with `error=reddit_ads_scope_not_granted`.

`adsconversions` is not, so a connection can exist without it and only the Conversions API refuses to work.

**Choosing ad accounts.** After consent, Zernio syncs the Reddit ad accounts the user can access. In the Zernio dashboard the user then picks which of them to sync.

Through the API, pass `adAccountId` (or `adAccountIds`, repeated or comma-separated) on the connect call to limit sync to those ad accounts. Without either parameter, every accessible ad account syncs.

The ids have the shape `a2_<id>` (or `t2_<id>`), and a malformed one returns `400`.

On success the browser lands on your `redirect_url` unchanged. Call the connect endpoint again to read the connection: it now answers without a new consent screen.

```json
{
  "alreadyConnected": true,
  "accountId": "66b2e19d8c3f5a7e9d0b1c2d",
  "platform": "redditads",
  "username": "acme_marketing",
  "displayName": "Reddit Ads (acme_marketing)"
}
```

That `accountId` is the `redditads` account every sample in this section uses.

**Errors.** On failure the browser lands on your `redirect_url` with `platform=redditads` and an `error` such as:

- `reddit_ads_auth_failed` (the user declined)
- `reddit_ads_scope_not_granted`
- `reddit_ads_no_ad_accounts` (the Reddit user has no ad account)
- `reddit_ads_callback_error`

### Reconnect

When the connection's token stops working, or it lacks one of the three permissions, the same connect call returns an `authUrl` again instead of `alreadyConnected`. An example is a connection made before `adsconversions` was requested.

Send the user through it. The callback reconnects the **same** `accountId`, so synced ads, campaign history and your stored ids stay as they are.

<Callout type="warn">
Never disconnect a Reddit Ads account to fix a permission. Reconnect it with the connect call. Disconnecting first creates a new connection with a new `accountId`.
</Callout>

Pass `force=true` to get an `authUrl` even when the connection is healthy.

## In this section

<PlatformPages platform="reddit-ads" />

## Related

- [Reddit](/platforms/reddit): organic posting, a separate connection.
- [Connect ads](/connect/connect-ads): every parameter of the connect call.
- [Create standalone ad](/ad-campaigns/create-standalone-ad) and [Boost post](/ad-campaigns/boost-post): every field of both requests.
- [Update ad](/ad-campaigns/update-ad), [Update a campaign](/ad-campaigns/update-ad-campaign) and [Get campaign tree](/ad-campaigns/get-ad-tree).
- [Search ad targeting](/ad-targeting/search-ad-targeting): locations, interests, subreddits and keywords.
- [Get ad analytics](/ad-insights/get-ad-analytics): metrics, date ranges and rollups.
- [Send events](/conversions/send-events) and [List conversion destinations](/conversions/list-ad-conversion-destinations).
- [Rate limits](/guides/rate-limits): how Zernio and platform limits combine.