# Send PostHog conversion events to Reddit Ads (Conversions API) - Docs

You'll also need access to the relevant Reddit Ads account.

## Installation

1.  In PostHog, click the [Data pipeline](https://app.posthog.com/data-management/destinations) tab in the left sidebar.

2.  Click the [Destinations](https://app.posthog.com/data-management/destinations?search=reddit) tab.

3.  Search for **Reddit Conversions API** and click **\+ Create**.

4.  Find your Reddit Ads Account id on the [Reddit Ads dashboard](https://ads.reddit.com/).

    1.  Click the business name in the top-left
    2.  Click the copy icon next to the Account ID
5.  Back in PostHog, add the Account ID to the destination configuration.

6.  Create a Reddit [Conversion Access Token](https://business.reddithelp.com/s/article/conversion-access-token)

7.  Back in PostHog, add the Conversion Access Token to the destination configuration.

8.  Set up your event and property filters to remove unnecessary events. You only want to send events that are conversions. Filter out unrelated events or ones missing required data.

9.  Press **Create & enable**, test your destination, and then watch your conversions get sent to Snapchat Ads.

## Configuration

| Option | Description |
| --- | --- |
| Reddit Ads account IDType: stringRequired: True | The ID of the Reddit Ads account that the conversion event belongs to. Your account ID may or may not contain the t2_ prefix. |
| Conversion Access TokenType: stringRequired: True | You must obtain a Conversion Access Token. |
| User parametersType: dictionaryRequired: False | Map of Reddit user parameters and their values. Check out this page for more details: [https://business.reddithelp.com/s/article/manual-conversion-events-with-the-reddit-pixel](https://business.reddithelp.com/s/article/manual-conversion-events-with-the-reddit-pixel) |

How to create this via the API

Using our REST API you can create this destination like so:

Terminal

PostHog AI

```bash
# Create a new destination
curl --location 'https://us.i.posthog.com/api/environments/:project_id/hog_functions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <POSTHOG_PERSONAL_API_KEY>' \
--data '{
    "type": "destination",
    "name": "Reddit Conversions API",
    "inputs": {
        "accountId": {
            "value": ""
        },
        "conversionsAccessToken": {
            "value": ""
        },
        "userProperties": {
            "value": {
                "ip": "{sha256Hex(event.properties.$ip)}",
                "email": "{person.properties.email}",
                "user_agent": "{person.properties.$raw_user_agent}",
                "screen_dimensions": "{{'width': person.properties.$screen_width, 'height': person.properties.$screen_height}}"
            }
        }
    },
    "enabled": true,
    "template_id": "template-reddit-conversions-api"
}'
```

## FAQ

### Is the source code for this destination available?

PostHog is open-source and so are all the destination on the platform. The [source code](https://github.com/PostHog/posthog/blob/master/nodejs/src/cdp/templates/_destinations/reddit_ads/reddit.template.ts) is available on GitHub.

### Who maintains this?

This is maintained by PostHog. If you have issues with it not functioning as intended, please [let us know](https://us.posthog.com/#panel=support%3Asupport%3Aapps%3A%3Atrue)!

### What if I have feedback on this destination?

We love feature requests and feedback. Please [tell us what you think](https://us.posthog.com/#panel=support%3Afeedback%3Aapps%3Alow%3Atrue).

### What if my question isn't answered above?

We love answering questions. Ask us anything via [our community forum](/questions.md).

### Community questions

Ask a question

### Was this page useful?

HelpfulCould be better