> For the complete documentation index, see [llms.txt](https://docs.devtodev.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devtodev.com/3rd-party-sources/cohort-export/facebook-ads.md).

# Facebook Ads

## **Setup**

1. Go to: `Settings → 3rd Party Sources → Cohort Export`
2. Click the ✎ icon next to **Facebook**
3. Fill in the fields:
   * **Account ID** – your Facebook ad account ID (numeric, usually 10–15 digits)

{% hint style="info" %}
**Where to find Ad Account ID**

* Log into Meta Ads Manager
* Check the URL — the ID appears in the `act=XXXXXXXXXXXX` parameter

For help finding your Ad Account ID, [see Facebook documentation](https://www.facebook.com/business/help/2534657046763437,).
{% endhint %}

4. Click `Login with Facebook` to authorize.

<figure><img src="/files/u4R1HFJwCW5kuBsxujlY" alt=""><figcaption></figcaption></figure>

*To disable the integration, turn off the toggle.*

### **User Identifier**

Facebook Ads cohort export in devtodev uses only the **Advertising ID**:

* For Android: **GAID** (Google Advertising ID)
* For iOS: **IDFA** (Identifier for Advertisers)

Make sure the [SDK is integrated properly](/integration/integration-of-sdk-v2/sdk-integration.md) and **Advertising ID** is available in the user profile before the cohort is exported.&#x20;

## How to prepare cohorts

Check out the **Tuning section** to learn [how to export the cohorts](/reports-and-functionality/project-related-reports-and-fuctionality/tuning.md#cohort-export).&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devtodev.com/3rd-party-sources/cohort-export/facebook-ads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
