# Meta Ads

> Import Meta ad spend and compare it with the revenue each campaign brought, as return on ad spend.

Connect Meta Ads to see what your Facebook and Instagram campaigns cost next to the revenue Reveata attributed to them, and the return on ad spend (ROAS). Open the report from **Ad spend** in your website's menu.

## Connect

1. Open **Settings → Integrations** and click **Connect ad account** on Meta Ads. Website admins can connect it.
2. Log in to Facebook and allow Reveata to read your ads (`ads_read`). Reveata cannot create, change or pay for ads.
3. Pick the ad account whose campaigns send traffic to this website.

Reveata imports the last 12 months of daily spend, impressions and clicks per campaign, ad set and ad, then refreshes the most recent seven days every day. Meta counts days in the ad account's timezone. Meta logins last about 60 days; when one expires the card asks you to connect again, and the import resumes where it left off.

## Tag your ads

Revenue is matched to a campaign through the `utm_campaign` of the visit that is credited with the payment. Add these URL parameters to your ads (in Ads Manager, **Tracking → URL parameters**):

```
utm_source=facebook&utm_medium=paid_social&utm_campaign={{campaign.id}}
```

- `utm_campaign` set to the **campaign id** matches on any visit.
- `utm_campaign` set to the **campaign name** matches when the visit came from Meta (an `fbclid` or a Meta `utm_source` such as `facebook` or `instagram`), so a Google campaign with the same name is never mixed in.
- Meta visits that name no imported campaign appear as **Meta visits that name no campaign** under the table.

## How the numbers are computed

- **Spend** is converted from the ad account currency to your website currency at each day's exchange rate. Days without a rate yet are left out of the totals (the report says how many) and converted as soon as the rate is published.
- **Revenue** is the net revenue (payments and renewals minus refunds) credited to visits from the campaign with your website's attribution model.
- **ROAS** is revenue divided by spend: 3.00× means every 1 spent brought 3 back.

## Who sees what

Every member of the website sees spend, impressions and clicks. Viewers see revenue, payments and ROAS only when an admin turned on **Viewers can see revenue** in Settings → Team.

## Disconnect

Click **Disconnect** on the card. Reveata removes its permission at Meta. Choose whether to keep the imported ad spend or delete it. Picking a different ad account removes the previous account's data and imports the new one.
