# Ad audiences

> Keep segments in sync with Meta and Google ad audiences, and send purchases to the Meta Conversions API.

URL: https://docs.lemuai.com/ads/overview
For: Owners and admins
Checked against LemuAI app version 1.0.12
Related: [Segments](https://docs.lemuai.com/segments/overview), [Standard and Conversion Events](https://docs.lemuai.com/website-pixel/standard-events), [Contacts](https://docs.lemuai.com/contacts/overview)

**Audience → Ad audiences** does two things:

1. **Synced audiences:** a [segment](https://docs.lemuai.com/segments/overview) becomes a custom audience in Meta Ads or a Customer Match list in Google Ads, and stays up to date: people who join the segment are added, people who leave it are removed.
2. **Meta Conversions API:** purchases (and other standard events you choose) are sent to Meta from LemuAI's server, so Meta can measure and optimise your ads even when the browser pixel is blocked.

Setting this up needs the **config** permission (Owner or Admin).

## Before you start

- A Meta ad account (for Meta) or a Google Ads account (for Google) you can manage.
- At least one segment of the people you want to reach.

## Sync a segment to an ad audience

**Step: Connect the ad account**

Under **Ad accounts**, connect Meta or Google and choose the accounts LemuAI may use. For Google, you can also enter a **Manager account ID (optional)** such as `123-456-7890` if you manage ads through a manager account.

**Step: Pick the segment and account**

Under **Sync a segment to an ad audience**, choose the **Segment** and the **Ad account**. **Audience name (optional)** defaults to `Lemu: <segment name>`.

**Step: Create it**

LemuAI creates the audience and runs the first sync: "Audience created. The first sync is running."

### How syncing works

- Only hashed email and phone are sent (SHA-256), never names in plain text. Meta and Google match them to their users.
- Contacts who opted out are never sent. Contacts with neither email nor phone can't be matched and are skipped.
- Each sync sends only the changes: new members are added, people who left the segment (or opted out) are removed, and someone whose email or phone changed is updated.
- **Synced audiences** lists each audience with **Sync now** and **Stop syncing**. When you stop, the audience stays in the ad account with its current members.

## Send purchases to the Meta Conversions API

**Step: Connect**

Under **Meta Conversions API**, enter your **Dataset ID** (the pixel or dataset ID from Meta Events Manager) and an **Access token** generated in Events Manager.

**Step: Choose the events**

Under **Events to send**, pick the standard events to send. **Purchase** is the default.

**Step: Test**

Enter a **Test event code** from Events Manager (like `TEST12345`) and send a test purchase. You should see it under **Test events** in Meta Events Manager.

Every matching event LemuAI records from then on (from Shopify, the tracking snippet, the events API or WhatsApp orders) is sent with the contact's hashed details. Turning it on doesn't send past events.

## Common problems

- **Needs a new token:** the access token expired or was revoked. Generate a new one in Meta and press **Reconnect**.
- **The audience is small in Meta:** Meta shows only matched people, and small audiences may show as "below 1,000". Add more people or check contacts have email and phone with country code.
- **No events sent yet.:** no matching event has arrived since you connected. Check the [Event Log](https://docs.lemuai.com/event-log/overview) for `Purchase` events.
