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

# Meta Ads

> Integrating Meta Ads with our platform enables seamless synchronization of your advertising data, enhancing marketing analysis and insights.

export const AdConnectorSteps = ({platform, brand, loginTarget, authButton = "Authorize", authTitle = "Authorize access", authText, accountTitle = "Select ad accounts", accountText}) => <Steps>
    <Step title="Navigate to integrations">
      Go to <strong>Settings</strong> on our platform, then click on <strong>Integrations</strong>.
    </Step>
    <Step title={`Add ${platform} connection`}>
      Click on <strong>Add data connection</strong> and choose {platform}.
    </Step>
    <Step title={authTitle}>
      {authText ?? <>
          Log in to {loginTarget} and click <strong>{authButton}</strong> to grant the necessary permissions. Once authorized, we'll receive your OAuth token, allowing us to begin fetching data from your {platform} account.
        </>}
    </Step>
    <Step title={accountTitle}>
      {accountText ?? <>After authorization, select the {brand ?? platform} ad account IDs you want to import data from.</>}
      <Tip>
        <strong>Connect all accounts — including inactive ones</strong> — We automatically fetch your history (by default back to <strong>January 1, 2023</strong>). For accurate forecasting, modeling, and cohort analytics, we rely on at least two years of data, so connect any old or inactive accounts too — the more history, the better our models perform.
      </Tip>
    </Step>
  </Steps>;

### Supported data types

<CardGroup cols={2}>
  <Card title="Marketing cost" icon="dollar-sign">
    Ad spend and performance metrics
  </Card>

  <Card title="Product cost" icon="tags">
    Product-level advertising costs
  </Card>

  <Card title="Creatives" icon="image">
    Ad creative assets and thumbnails
  </Card>
</CardGroup>

## Prerequisites

* Access to your Meta Ads account
* Authorization to integrate Meta Ads with third-party platforms

## Step-by-step integration guide

<AdConnectorSteps platform="Meta Ads" brand="Meta" authText={<>You will be prompted with the Facebook login window. Enter your credentials, log in, and click <strong>Connect</strong> to authorize our platform to access your Meta Ads data.</>} />

### Data collected

This integration fetches the following data from your Meta Ads account:

* Account information
* Currency and timezone
* Date of data
* Campaign ID and name
* Ad set ID and name
* Ad ID and name
* Channel (`facebook`) and channel group (`social_ppc`) — assigned automatically
* Country
* Conversion value, clicks, conversions, and impressions
* Ad creative assets and thumbnails

<Note>For our Meta Ads integration, we prioritize accuracy by using the order date instead of the impression or click date. By default, the integration uses each ad set's configured attribution window. If no window is set, it falls back to 7-day click and 1-day view attribution.</Note>

### Finalizing integration

After completing the authorization process, our system will automatically start fetching the specified data from your Meta Ads account. You can view and analyze this data in our platform to gain insights into your advertising performance and make data-driven decisions for optimizing your marketing strategies.

## Troubleshooting and support

If you encounter any issues during the integration process or have questions regarding your data, please contact our support team for assistance.

## Additional resources

For more information on managing your Meta Ads account and understanding the available metrics, visit the [Meta Business Help Center](https://www.facebook.com/business/help).

***
