# How Facebook ads work

> What a Releva Facebook ad is, what the Meta connection and Facebook product sets provide, what happens in Meta when you save and when you send an ad, and which settings you can change later.

A **Facebook ad** in Releva is a saved ad definition under **Marketing Channels › Facebook Ads**: the message, objective, placement, promoted products or image, attribution window, daily budget, bid cap and duration. Releva creates and runs the matching objects in your Meta ad account. You decide who sees the ad by sending it to a segment from a campaign or a workflow, like an email or an SMS. This page explains the pieces and what happens in Meta at each step. To build one, follow [Create a Facebook ad](https://releva.ai/documentation/guides/facebook-ads/create-a-facebook-ad/).

## The journey

Setting up Facebook ads takes these steps, in this order:

1. **Connect Meta.** Under **Settings › Facebook & Whatsapp**, log in with Facebook and choose the business, ad account, page and pixel. Follow [Connect your Meta account to Releva](https://releva.ai/documentation/guides/facebook-ads/connect-your-meta-account-to-releva/).
2. **Sync your catalog and audiences.** On the same tab, the **Catalog Sync Schedule** sends your products to the Releva catalog in Meta and the **Audience Sync Schedule** keeps your Facebook segment syncs up to date. See [How segment syncs work](https://releva.ai/documentation/learn/sync-segments/how-segment-syncs-work/).
3. **Create a Facebook product set** under **Data Platform › Facebook Product Sets**, so a carousel ad has products to promote. Follow [Create a Facebook product set](https://releva.ai/documentation/guides/facebook-ads/create-a-facebook-product-set/).
4. **Create a Facebook ad.** Follow [Create a Facebook ad](https://releva.ai/documentation/guides/facebook-ads/create-a-facebook-ad/).
5. **Copy the ad to change a fixed setting**, such as the objective. Follow [Copy a Facebook ad to change its objective](https://releva.ai/documentation/guides/facebook-ads/copy-a-facebook-ad-to-change-its-objective/).
6. **Read the results** on the **Facebook Ads** list. Follow [Check how your Facebook ads perform](https://releva.ai/documentation/guides/facebook-ads/check-how-your-facebook-ads-perform/).

What Releva creates where in Meta:

```plaintext
Releva admin                          Meta
-----------------------------------   --------------------------------------------------
Settings › Facebook & Whatsapp   -->  Business: "<page> (<page id>) Releva Products Catalog"
  Catalog Sync Schedule          -->    catalog products (updated on every sync)
  Pixel                          -->    pixel linked to the catalog
Facebook Product Sets            -->    product sets in that catalog
Segment syncs (Facebook)         -->  Ad account: custom audiences
Facebook Ads (Save)              -->  Ad account: campaign
Campaign or workflow (send)      -->    ad set (audience + targeting countries) and ad
```

## The pieces

| Piece                    | Where                                                | What it does                                                                                                                                         |
| ------------------------ | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Meta connection**      | **Settings › Facebook & Whatsapp**, tab **Facebook** | Links one Meta business, ad account, page and pixel to your shop. Everything below needs it.                                                         |
| **Facebook product set** | **Data Platform › Facebook Product Sets**            | A list of products from your catalog, synchronised into a product set in your Meta catalog. A **Products Carousel** ad promotes one product set.     |
| **Facebook ad**          | **Marketing Channels › Facebook Ads**                | The ad definition. Saving it creates a **campaign** in Meta.                                                                                         |
| **Campaign or workflow** | **Campaigns**, **Workflows**                         | Sends the ad to a segment. Each send creates an **ad set** and an **ad** under the campaign in Meta, targeted at an audience built from the segment. |

## The Meta connection

**Connect Facebook to Releva** on the **Facebook** tab opens a Meta login that asks for catalog, business, ads, page and WhatsApp permissions. After the login you select the **Business**, the ad account, the page and the pixel. Releva lets you save the settings only when an ad account, a page, a pixel, a valid **Catalog Sync Schedule**, a valid **Audience Sync Schedule** and at least one **Targeting countries** entry are set.

Three settings matter for ads:

* **Ad account**: where campaigns, ad sets and ads are created, and whose currency the **Daily Budget** and **Bid Cap** use. Changing it later warns *Please note that modifying your Facebook Ad Account will trigger the creation of new Facebook Ads reflecting the revised settings.* Clearing it warns *Please note that any active campaigns will be paused in Facebook Ads Manager and permanently stopped in Releva due to disabling of Facebook Ads.*
* **Targeting countries**: every ad set Releva creates targets these countries. For countries in the European Union, Meta also requires a **Beneficiary** and a **Payer**.
* **Catalog Sync Schedule** and **Audience Sync Schedule**: cron expressions (for example `0 7 * * *`) for pushing your catalog into the Meta catalog and your segments into Meta custom audiences. **Sync Now** runs either job at once and confirms with *Sync has been scheduled successfully.*

Without a connection, the **Facebook Ads** list shows *Please fill in your Facebook Ads credentials because we cannot send messages without them!* and **New Facebook Ad** is disabled.

Releva creates the catalog itself when you first save the settings: there is no catalog picker. The catalog lives in the selected business and is named after your page. Catalog syncs, product sets, audiences and ads run only after Releva has switched on the Facebook integration for your shop.

For the step-by-step setup, follow [Connect your Meta account to Releva](https://releva.ai/documentation/guides/facebook-ads/connect-your-meta-account-to-releva/). The Facebook login runs on Meta’s side.

## Facebook product sets

A product set has a **Name**, a **Type** and a size:

* **Full** takes all products from your catalog.
* **Ranked subset** takes up to **Max products to synchronise** (30 to 1000) products from a **Product Feed**, ranked for a **Ranking Segment**. The form says: *Full product sets includes all products from your catalog. Ranked subset product sets include a subset of your catalog, optimized for a specific segment.* Feeds with the **Ads** scope rank by their algorithm alone and need no segment.

Saving a product set queues a sync. The sync picks the products, creates or updates the product set in your Meta catalog, and then marks the set **SYNCHRONISED** with the Meta id (**Meta ID: …**) and the number of products Meta accepted (**FB Products: …**). Only synchronised product sets appear under **Promoted Products** on the ad form. The sync does nothing while the Meta connection is missing or disabled.

Product sets reuse product feeds and segments: see [How product feeds work](https://releva.ai/documentation/learn/product-feeds/how-product-feeds-work/) and [How segments work](https://releva.ai/documentation/learn/segments/how-segments-work/).

## What happens when you save an ad

A Releva Facebook ad is a Meta **campaign**. The first **Save** of a new ad:

1. Checks that the name is unique in your shop and that the **Message** is a valid Handlebars template. Otherwise you get *Facebook ad name must be unique!* or *Message body is not a valid Handlebars template: …*.
2. With a connected ad account, checks the **Daily Budget** against Meta’s minimum of 5 USD per day, converted to the ad account’s currency.
3. Creates the campaign in the ad account with the ad’s name, objective, optimization goal and daily budget, with the status **Active**. For the **Sales** objective, the campaign promotes your Meta catalog. Without a **Bid Cap**, the bid strategy is lowest cost without a cap.

The campaign has no ad set and no ad yet, so nothing is shown to anyone. Releva then asks *What next?* with **Back To Listing**, **Continue Editing** and **Send it**.

Saving an existing ad updates the campaign’s name, objective, optimization goal, daily budget and bid strategy in Meta. A changed **Bid Cap** is also written to every ad set that belongs to the ad.

## Which settings are fixed after the first save

The campaign-level settings that Meta does not let Releva change are greyed out once the ad has an id: **Objective**, **Optimization Goal**, **Call to Action Button**, **Ad placement**, **Promoted Visual**, **Promoted Products** and **Attribution** (and, for **App Promotion**, the app fields). **Name**, **Message**, **Product Details**, **Daily Budget**, **Bid Cap** and **Duration (Days)** stay editable.

To change a fixed setting, make a copy: [Copy a Facebook ad to change its objective](https://releva.ai/documentation/guides/facebook-ads/copy-a-facebook-ad-to-change-its-objective/). The copy is a new ad with its own campaign.

## What happens when you send an ad

A Facebook ad reaches people only through a campaign or a workflow that contains a **Facebook Ad** step. When the campaign runs for a segment:

1. Releva builds a Meta **custom audience** from the segment’s profiles (reused between runs of the same campaign) and, if the step asks for it, a **lookalike audience** of it.
2. Releva creates an **ad set** under the campaign, named *Releva ad set for workflow \<campaign name> ad \<ad name>*, with the status **Active**. The ad set starts now and, for a **Time Framed** ad, ends after **Duration (Days)** days; an **Unlimited Time** ad set has no end date. It targets the audience and the **Targeting countries** from your settings, bills by impressions, carries the **Attribution** window and, if set, the **Bid Cap**.
3. Releva creates an **ad** in the ad set, named *Releva ad for workflow \<campaign name>*, with your **Message**, the **Call to Action Button** and either the product carousel from the product set or your image. Links carry `utm_source=releva`, `utm_medium=facebookAd`, the campaign id and the ad id, which is how Releva attributes clicks and purchases.

The **Daily Budget** belongs to the campaign, so it is shared by all ad sets created from the same ad. The form says so: *this budget is shared across all campaigns which use this ad.* Deleting the ad in Releva deletes the campaign in Meta.

## Reading the results

Each card on the **Facebook Ads** list shows the attribution window, the ad set progress (campaign, ad set learning stage and product set status, read from Meta; a red dot marks an issue Meta reported) and, for the selected period, **Impressions** (with the cost per 1000), **Clicks**, **Conversions**, **Purchases**, **Revenue**, **Page engagements**, **Post engagements**, **Post reactions** and **Spend**. Amounts are in the ad account’s currency. **Export** downloads the same figures. The list defaults to the last 30 days.

## Next steps

* [Connect your Meta account to Releva](https://releva.ai/documentation/guides/facebook-ads/connect-your-meta-account-to-releva/): Choose your Meta business, ad account, page and pixel, and run the first catalog sync.
* [Create a Facebook product set](https://releva.ai/documentation/guides/facebook-ads/create-a-facebook-product-set/): Choose the products your ads show and sync them to your Meta catalog.
* [Create a Facebook ad](https://releva.ai/documentation/guides/facebook-ads/create-a-facebook-ad/): Create a Products Carousel ad with a daily budget and a duration in your Meta ad account.
* [Copy a Facebook ad to change its objective](https://releva.ai/documentation/guides/facebook-ads/copy-a-facebook-ad-to-change-its-objective/): Change settings that lock after the first save by saving a copy as a new ad.