# 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="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FbH3A9fml3IHBkAElzpTn%2FScreenshot%202025-07-23%20at%2012.50.10.png?alt=media&#x26;token=256fb411-f77b-4174-b0b6-fc0a896811de" 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](https://docs.devtodev.com/integration/integration-of-sdk-v2/sdk-integration) 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](https://docs.devtodev.com/reports-and-functionality/project-related-reports-and-fuctionality/tuning#cohort-export).&#x20;
