# Hermoso: create_meta_audience · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_meta_audience/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / create_meta_audience

# `create_meta_audience`

Create a Meta custom audience or lookalike

Area: Meta: SEE the ad, SIZE the audience, BUILD the audience · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Build a retargeting audience on a connected Meta ad account. Four kinds: kind:"website" (people whose visited URL contains urlContains, seen by pixelId — pass the brand’s own domain for "all visitors"; retentionDays up to 180), kind:"engagement" (people who did `event` on the brand’s Facebook Page, or its Instagram business profile with source:"instagram"; retentionDays up to 730), or kind:"lookalike" (sourceAudienceId + country + ratio 0.01–0.20 = the top 1%–20% most similar people, lookalikeType "similarity" or "reach", or startingRatio for a band such as 1%–3%). Meta delivers a lookalike to the locations of the AD SET that targets it, so `country` is where you will run it — target the same country in that ad set. CREATING AN AUDIENCE SPENDS NOTHING — it is a definition; money only moves when an ad set targets it and that campaign is activated through set_meta_campaign_status(confirm:true). Meta needs roughly 30 minutes and ~1,000 people before a new audience can be targeted, so a fresh one reporting no size is normal. kind:"customerfile" is the brand's OWN CUSTOMER LIST (emails, phones, names…) for retargeting, suppression or as a lookalike seed: pass customerFileSource (a required attestation of where the data came from: USER_PROVIDED_ONLY, PARTNER_PROVIDED_ONLY or BOTH_USER_AND_PARTNER_PROVIDED), plus schema (the column names in order, from EMAIL, PHONE, FN, LN, FI, CT, ST, ZIP, COUNTRY, DOB, DOBY, GEN, MADID, EXTERN_ID) and rows (arrays in that order, up to 10,000 per call) to upload them in the same call. Hermoso normalizes and SHA-256-hashes every value before it leaves the server, exactly as Meta requires, and reports Meta’s own match counts (a mostly-rejected upload is a format problem and says so). To ADD more people to an existing list, call again with kind:"customerfile" + audienceId + schema + rows (uploads add, they never replace). Meta asks the ad account to accept its Custom Audience Terms once; if it has not, Meta’s refusal says so.

## Parameters

Parameter Type Description

`adAccountId` required `string` ad account id (act_… or digits)

`kind` required `"website" | "engagement" | "lookalike" | "customerfile"` which kind of audience to build — customerfile = your own customer list

`name` `string` audience name (required unless adding rows to an existing list with audienceId)

`description` `string` optional free-text note stored with the audience

`retentionDays` `number` how long someone stays in it — website max 180, engagement max 730 (default 30)

`pixelId` `string` website: the Meta Pixel that sees the traffic

`urlContains` `string` website: the URL fragment that defines the audience (your domain = all visitors)

`pageId` `string` engagement: which connected Page (required only if the profile has several)

`source` `"page" | "instagram"` engagement: Facebook Page (default) or the linked Instagram business profile

`event` `string` engagement: page_engaged | page_visited | page_liked | page_messaged | page_cta_clicked | page_or_post_save | page_post_interaction — or ig_business_profile_all | ig_business_profile_engaged | ig_user_messaged_business | ig_business_profile_visit

`sourceAudienceId` `string` lookalike: the existing audience to model (from list_meta_audiences)

`country` `string` lookalike: REQUIRED 2-letter country you will run it in — Meta delivers a lookalike to the locations of the ad set that targets it, so target this country there

`ratio` `number` lookalike: 0.01–0.20 = the top 1%–20% most similar people (default 0.01)

`startingRatio` `number` lookalike: optional lower bound for a band (e.g. 0.01 with ratio 0.03 = the 1%–3% band) — at least 0.01 and less than ratio; not combinable with lookalikeType

`lookalikeType` `"similarity" | "reach"` lookalike: similarity (tighter) or reach (broader) — default similarity

`prefill` `boolean` website/engagement: seed it with activity from BEFORE the audience existed (default true)

`customerFileSource` `"USER_PROVIDED_ONLY" | "PARTNER_PROVIDED_ONLY" | "BOTH_USER_AND_PARTNER_PROVIDED"` customerfile: REQUIRED attestation of where the list came from (customers gave it to you = USER_PROVIDED_ONLY)

`schema` `"EMAIL" | "PHONE" | "FN" | "LN" | "FI" | "CT" | "ST" | "ZIP" | "COUNTRY" | "DOB" | "DOBY" | "GEN" | "MADID" | "EXTERN_ID"[]` customerfile: the column names of rows, in order, e.g. ["EMAIL","PHONE"]

`rows` `string | number[][]` customerfile: the customers, one array per person in schema order (up to 10,000 per call). Plain values — Hermoso normalizes and hashes them before they leave the server

`audienceId` `string` customerfile: ADD these rows to this existing customer-list audience (from list_meta_audiences) instead of creating a new one

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/create_meta_audience`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_meta_audience","arguments":{"adAccountId":"<string>","kind":"<one of the listed values>"}}}`
**CLI**

`hermoso call create_meta_audience --json '{"adAccountId":"<string>","kind":"<one of the listed values>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [set_meta_campaign_status](https://hermoso.ai/docs/reference/publish/set_meta_campaign_status/) Activate or pause a Meta campaign
- [list_meta_audiences](https://hermoso.ai/docs/reference/ads/list_meta_audiences/) List Meta custom audiences + lookalikes
- [estimate_meta_reach](https://hermoso.ai/docs/reference/ads/estimate_meta_reach/) Estimate how many people a Meta audience reaches
- [meta_catalog_suggestions](https://hermoso.ai/docs/reference/ads/meta_catalog_suggestions/) Which catalog Meta would show under a new ad
- [preview_meta_ad](https://hermoso.ai/docs/reference/ads/preview_meta_ad/) Preview a Meta ad exactly as it will appear

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
