API Reference

Meta Ads / API Reference

meta_ads_create_website_audience

Meta Ads tool. Create a website Custom Audience based on Meta Pixel events. Args: name: Audience name (required). pixel_id: Meta Pixel ID (required). event: Pixel event to target: PageView, ViewContent, AddToCart, Purchase, Lead, CompleteRegistration, etc. (required). retention_days: How many days to look back (1-180) (required). account_id: Ad account ID. Leave blank to use META_AD_ACCOUNT_ID from .env. url_contains: Optional URL condition — include users who visited URLs containing this string. url_equals: Optional URL condition — include users who visited this exact URL. description: Audience description.

This is a write tool: it creates website audience in your Meta Ads account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Create website audience in my Meta Ads account for [name], [pixel id], [event].

It takes 4 required and 4 optional parameters.

Parameters

ParameterTypeRequiredDescription
namestringYesName
pixel_idstringYesPixel Id
eventstringYesEvent
retention_daysintegerYesRetention Days
account_idstringNoAccount Id
url_containsstringNoUrl Contains
url_equalsstringNoUrl Equals
descriptionstringNoDescription

Related Meta Ads tools

Before you can call it

This tool needs a connected Meta Ads account. The Meta Ads connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads