# Build LinkedIn and Meta ad audiences from your list

> Pull the exact companies and contacts you want to reach, format them for LinkedIn matched audiences or Meta custom audiences, and keep them current.

Source: https://www.b2benrich.com/guides/ad-audiences  
Author: Dag Holmen, B2Benrich · Updated 2026-10-28

LinkedIn matched audiences let you upload a list of companies or people and show ads to the LinkedIn members who match it. Meta custom audiences do the same with a customer list. The platforms do the matching. Your job is the list: the right accounts, the right people, in a file each platform accepts.

This guide shows how to pull that list with the B2Benrich prospector, add work emails, format CSVs for LinkedIn and Meta, and keep each audience current with exclusions and a refresh schedule.

## Company list or contact list?

| Audience | What you upload | Use it when |
|---|---|---|
| LinkedIn company list | Company names, websites, LinkedIn page URLs | You target accounts and let LinkedIn's job targeting pick the people |
| LinkedIn contact list | Work emails, names, titles | You want specific people at those accounts |
| Meta customer list | Emails, names, phones | You want the same people to see you somewhere else |

For ABM ad audiences, a company list plus LinkedIn's own job function and seniority targeting is a good default. It isn't limited to the people you have emails for. Add a contact list when the buying group is small and you know who's in it.

## Step 1: Size the list first

Run your filters through `POST /v1/search/prospector/count` before you pull anything. It returns the count without the records, so you can tune filters until the audience is big enough to serve and narrow enough to matter. Every platform has a minimum matched audience size. Check the platform's current minimum, and remember that only part of any uploaded list will match.

```bash
curl --request POST \
  --url https://api.b2benrich.com/v1/search/prospector/count \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --data '{
    "contact_filters": { "job_function": "Marketing", "job_level": "VP" },
    "company_filters": { "employee_count_range": "201-500", "hq_country": "United States" }
  }'
```

If you're still deciding which accounts belong in the audience, start with [TAM mapping](https://www.b2benrich.com/guides/tam-mapping-api) or an [in-market account list](https://www.b2benrich.com/guides/in-market-account-list).

## Step 2: Pull contacts and add work emails

This script pages through the prospector, drops anyone at an excluded domain, finds a work email for each person with the [email finder API](https://www.b2benrich.com/guides/email-finder-api), and writes three files: a LinkedIn contact list, a Meta customer list and a LinkedIn company list.

```python
import csv
import requests

BASE = "https://api.b2benrich.com"
HEADERS = {"Content-Type": "application/json", "X-Api-Key": "YOUR_API_KEY"}
QUERY = {
    "contact_filters": {"job_function": "Marketing", "job_level": "VP"},
    "company_filters": {"employee_count_range": "201-500", "hq_country": "United States"},
    "page_size": 25,
}
# One domain per line, exported from your CRM: customers and open opportunities
EXCLUDE = {line.strip().lower() for line in open("exclude_domains.txt") if line.strip()}

def post(path, body):
    r = requests.post(BASE + path, headers=HEADERS, json=body, timeout=30)
    return r.json() if r.ok else {}

people, page = [], 1
while page:
    res = post("/v1/search/prospector", {**QUERY, "page": page})
    people += [p for p in res.get("records", [])
               if (p.get("company_domain") or "").lower() not in EXCLUDE]
    page = res.get("next_page") if res.get("has_more") else None

for p in people:
    found = post("/v1/enrich/person/name-domain-to-email", {
        "first_name": p["first_name"], "last_name": p["last_name"], "domain": p["company_domain"]})
    p["email"] = found.get("email", "")

def write(path, header, rows):
    with open(path, "w", newline="", encoding="utf-8") as f:
        w = csv.writer(f)
        w.writerow(header)
        w.writerows(rows)

with_email = [p for p in people if p["email"]]
write("linkedin_contacts.csv", ["email", "firstname", "lastname", "jobtitle", "employeecompany"],
      [[p["email"], p["first_name"], p["last_name"], p["job_title"], p["company_name"]] for p in with_email])
write("meta_customers.csv", ["email", "fn", "ln"],
      [[p["email"], p["first_name"], p["last_name"]] for p in with_email])

companies = {p["company_domain"]: p for p in people}.values()
write("linkedin_companies.csv", ["companyname", "companywebsite", "linkedincompanypageurl"],
      [[c["company_name"], c["company_domain"], c.get("company_linkedin_url") or ""] for c in companies])
```

People with no email found stay off the contact lists. Don't fill the gap with guessed addresses. For an account-only audience, pull companies with `POST /v1/search/companies` instead. Its records carry `name`, `domain` and `linkedin_url`, which map straight onto the company list.

## Step 3: Format and upload

**LinkedIn.** Download the current contact or company template from Campaign Manager and match its headers exactly. The headers in the script are a starting point, and LinkedIn updates its templates from time to time. Save as UTF-8 CSV so accented names survive. On company lists, include the website and LinkedIn page URL, not only the name: "Acme" could be a dozen companies, while `acme.com` is one.

**Meta.** Ads Manager lets you map columns during upload, but standard headers like `email`, `fn` and `ln` save a step. Meta accounts usually sit on personal emails and phone numbers, so a file of work emails alone may match fewer people there. Add every identifier you're allowed to use. Phones go in with the country code; the [phone number API](https://www.b2benrich.com/guides/phone-number-api) guide covers formatting. When you upload in Ads Manager, Meta hashes the file for you. If you push lists through Meta's Marketing API instead, you normalize and hash each value yourself.

Upload under Audiences on both platforms: as a matched audience list in LinkedIn Campaign Manager, and as a customer list custom audience in Meta Ads Manager. Each one takes a while to process, then shows a matched size. Judge the audience by that number, not by the row count of your file.

## Exclusions

Build exclusion audiences once and attach them to every prospecting campaign:

- **Current customers.** They should see onboarding and expansion messages, not acquisition ads.
- **Open opportunities.** Sales is already talking to them. Run deal-support ads in a separate campaign if you want them.
- **Competitors and your own company.** Neither needs to see your prospecting ads.
- **People who opted out.** Keep one suppression list across email, calls and ads, and only upload people you have a lawful basis to advertise to.

The script filters excluded domains out of the source file, but upload an exclusion audience as well. The source filter only covers that file. An exclusion audience covers every campaign it's attached to, including ones that target by job title.

## Refresh cadence

Audiences go stale three ways: people change jobs, new companies grow into your ICP, and deals open or close. Re-run the same query on a schedule:

- **Exclusions: weekly,** or whenever a deal closes. A new customer seeing acquisition ads wastes spend.
- **Prospecting audiences: monthly,** or before each new campaign flight.

Keep the query JSON in version control, so every refresh pulls the same definition. Then replace the list with the full new file where the platform allows it, or upload a fresh audience and swap it into the campaign. B2Benrich is unlimited API usage for $500 a month, so re-pulling the whole list costs the same as pulling only the changes. LinkedIn and Meta both offer APIs for audience uploads if you'd rather automate that last step too.

## Frequently asked questions

### What are LinkedIn matched audiences?

Audiences you build on LinkedIn from your own data, such as an uploaded list of companies or contacts, website visitors or people who engaged with your content. With a list upload, LinkedIn matches your rows to its members and lets you show ads to the ones it finds.

### Should I upload a company list or a contact list to LinkedIn?

For account-based campaigns, start with a company list and layer LinkedIn’s job function and seniority targeting on top, since it doesn’t depend on having an email for everyone. Use a contact list when you need to reach specific, named people.

### How do I format a contact list for LinkedIn?

Download the current template from Campaign Manager and match its column headers exactly. Include work email, first name, last name, job title and company where you have them, save the file as UTF-8 CSV, and leave out rows with no email.

### Can I use the same list for a Meta custom audience?

Yes. Upload it as a customer list custom audience in Ads Manager with headers like email, fn and ln. Meta accounts are usually tied to personal emails and phones, so add every identifier you’re allowed to use and judge the audience by the matched size Meta reports.

### How big does an ad audience need to be?

Each platform sets a minimum matched audience size before ads can serve, and it can change, so check the platform’s current minimum. Size your list with a count query before you pull it, and expect only part of the upload to match.

### How often should I refresh ad audiences?

Refresh exclusions such as customers and open opportunities weekly or whenever a deal closes. Refresh prospecting audiences monthly or before each campaign flight, using the same saved query each time.
