/clay:ad-syncsfrom clay
Manages Clay ad syncs that push audience segments to ad platforms (LinkedIn, Meta, Google, Bing, Reddit, Vibe) as custom audiences. Create, edit, start, pause, map fields, check status, match rate, or run history.
Ships in clay. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before using this skill, read the clay entry skill if you haven’t already this session, and follow its access guidance.
An ad sync pushes an audience segment to ad accounts on ad platforms, called its destinations. Each platform matches the records and builds an audience to advertise to.
If the user wants to sync ads from an existing Clay table, recommend uploading the rows to Audiences. Table-based ad syncs are deprecated and no longer supported. Tell the user this.
Suggest the user use Create or update Audiences record in
their table in the Clay app, if that action is available in their workspace. Use the audiences skill to
find or create a segment for those records, then follow Create to sync it to the ad platform.
clay ad-syncs list [--limit <n>] [--cursor <cursor>]clay ad-syncs get <adSyncId>clay ad-syncs get-by-source --source-id <segmentId> --entity-type <people|companies>clay audiences get <segmentId>clay ad-syncs create --name <name> --source-id <segmentId> --entity-type <people|companies> --schedule-type <ONE_TIME|RECURRING>clay ad-syncs update <adSyncId> [--name <name>] [--schedule <ONE_TIME|RECURRING>] [--tier <PREMIUM|STANDARD>]clay app-accounts list --filter type=<provider>-ad-audienceclay ad-syncs ad-accounts list <appAccountId> --provider <provider>clay ad-syncs destinations create <adSyncId> --provider <provider> --app-account-id <appAccountId> --ad-account-id <accountId> [--ad-user-data-consent <status> --ad-personalization-consent <status>]clay ad-syncs destinations update <adSyncId> --destination-id <destinationId> [--app-account-id <appAccountId>] [--ad-account-id <accountId>] [--ad-user-data-consent <status>] [--ad-personalization-consent <status>]clay ad-syncs destinations delete <adSyncId> --destination-id <destinationId>clay ad-syncs field-mapping update <adSyncId> --input '<json>'clay ad-syncs pause <adSyncId>clay ad-syncs trigger <adSyncId>clay ad-syncs runs list <adSyncId> [--limit <n>]Use only the subcommands clay ad-syncs --help lists; older CLI versions lack some. When one is
missing, the user does that step in the Clay app, from the sync's url. Run
clay ad-syncs <subcommand> --help before a subcommand's first use. It has the exact output
shape, value sets, and error codes. <provider> is LinkedIn, Meta, Google, Bing, Reddit,
or Vibe, written in lowercase inside type=<provider>-ad-audience (e.g.
type=linkedin-ad-audience). An <accountId> is an accountId from ad-accounts list, and a
<destinationId> is a providerSyncConfigs[].id from get.
When a clay ad-syncs command is blocked by the workspace’s plan
(plan_upgrade_required), explain the restriction. If the error’s message
includes an upgrade URL, show it once, as the last line of the reply
(Upgrade your plan now at: <url>). Keep the URL
intact so its attribution is preserved. If the error supplies no link, relay
its guidance without constructing a billing URL. Do not retry the command,
recommend signing in again, or suggest buying credits to unlock a plan-gated
feature.
pause, tell them what pausing does
(see Statuses) and ask them to confirm, even when they asked for it.trigger only when the user explicitly asks; follow Start.ONE_TIME: it exports once, when the user starts it.RECURRING: it syncs continuously to its destinations, so they stay up to date with the people
or companies the user wants to target.Tell the user the label in parentheses, not the raw value.
DRAFT (Draft): not started yet.PROCESSING (Processing): an export is running, including enrichment when the sync has a tier.ACTIVE (Active): a recurring sync whose latest export reached every destination. It exports
again on its schedule.DONE (Exported): a one-time sync that reached every destination.WARNING (Warning): some destinations failed. A one-time sync reached only some of them, or a
later export of a recurring sync failed on at least one, and the sync stays live. runs list
shows which destinations failed.FAILED (Failed): a one-time sync that failed on every destination, or a recurring sync whose
first export failed on any destination.BULK_ENRICHMENT_FAILED (Enrichment failed): the enrichment step failed.PAUSED (Paused): the user paused it. Clay stops enriching new records in the segment, so it
stops spending credits, and stops pushing new records to the ad platforms. The audiences already
on the platforms stay as they are until the sync is resumed (see Start).Confirm each choice with the user before running the command that makes it.
Draft. Read the segment's entityType with clay audiences get <segmentId>, then run
clay ad-syncs get-by-source --source-id <segmentId> --entity-type <entityType>. If it returns a
sync, use that one. If it returns not_found, ask whether the sync should run once or on a
recurring schedule, and create it:
clay ad-syncs create --name "<name>" --source-id <segmentId> --entity-type <entityType> --schedule-type <ONE_TIME|RECURRING>
Accounts. For each platform, run clay app-accounts list --filter type=<provider>-ad-audience.
If it returns one connection, pick it. If it returns more than one, list them by name and ask the
user which to use. Don't check any connection's ad accounts before the user picks one, even if
you expect only one to work.
You MUST check the picked connection before using it, every time, including when it is the only
one: run clay ad-syncs ad-accounts list <appAccountId> --provider <provider>. Never pass an
--app-account-id to any command until that check has succeeded for it in this conversation. If
the check errors, don't use the connection: tell the user it couldn't load its ad accounts and
ask them to pick another one.
An ad account is usable when canManageAudiences is true, restrictions is empty, and it has
not already been added to this ad sync: compare its accountId with the
providerSyncConfigs[].providerAdAccount.id values from clay ad-syncs get <adSyncId>. If there
are none, the user sets them up in the Clay app from the sync's url. Continue once they're done.
Destinations. Ask which ad accounts to advertise to, then add each one:
clay ad-syncs destinations create <adSyncId> --provider <provider> --app-account-id <appAccountId> --ad-account-id <accountId>
Company syncs go to LinkedIn only. For Google, ask the user for both consent values and add
--ad-user-data-consent <status> --ad-personalization-consent <status>. Send UNSPECIFIED if
they don't track consent.
Enrichment tier (people syncs only). Best match rates is
clay ad-syncs update <adSyncId> --tier PREMIUM, Good match rates is
clay ad-syncs update <adSyncId> --tier STANDARD, and none means skipping this step. A tier
costs credits and can't be changed once set. To see what each tier costs, the user opens the
sync's url in the Clay app.
Field mapping. Read field-mapping.md and follow it.
Then give the user the sync's url so they can review it. If they want to start it now, follow
Start; otherwise they start it in the Clay app.
trigger starts a draft's first export, runs a one-time sync again, or resumes a paused sync.
Before confirming, run clay ad-syncs get <adSyncId>. Tell the user:
ONE_TIME exports once, RECURRING keeps syncing;Always confirm with the question tool before running trigger. You can't tell in advance
whether a trigger will be held for approval, so an approval request, if one follows, is a second
check, not a replacement. After the user confirms, run get again; if anything you described
changed, tell the user and confirm again.
After the command:
approval_required, nothing has started yet: present the request as the cli skill describes
and don't run the command again.validation_error, report the reason in product terms (no destinations, a missing field
mapping, an empty segment, or an export already running) and offer to fix what you can.url and say that clay ad-syncs runs list <adSyncId> shows each
destination's progress. Never retry automatically.Check adSync.status with clay ad-syncs get <adSyncId> first. DRAFT and PAUSED syncs can be
edited. A running sync (PROCESSING, ACTIVE, or WARNING) has to be paused first. Tell the
user it has to be paused and what pausing does, and ask them to confirm before running
clay ad-syncs pause <adSyncId>. DONE, FAILED, and BULK_ENRICHMENT_FAILED syncs
can't be edited.
clay ad-syncs update <adSyncId> --name "<name>"clay ad-syncs update <adSyncId> --schedule <ONE_TIME|RECURRING>clay ad-syncs update <adSyncId> --tier <PREMIUM|STANDARD>clay ad-syncs destinations update <adSyncId> --destination-id <destinationId> --ad-account-id <accountId>,
adding --app-account-id <appAccountId> if that ad account is under another connection. The
synced audience will then exist in a different ad account, so confirm the change with the user
first. A Google destination needs both consent flags again when its ad account changes.clay ad-syncs destinations update <adSyncId> --destination-id <destinationId> --app-account-id <appAccountId>clay ad-syncs destinations delete <adSyncId> --destination-id <destinationId>field-mapping.md.A paused sync stays paused. The edit takes effect once it is resumed (see Start).
clay ad-syncs list, paging with --cursor <cursor>, or with
clay ad-syncs get-by-source --source-id <segmentId> --entity-type <people|companies> when the
user names the segment.clay ad-syncs get <adSyncId>.clay ad-syncs runs list <adSyncId> --limit 100. The default returns only
the 20 newest runs across all destinations, so a destination's latest run can be missing without
the higher limit. If a destination has no run in the result, say so rather than guessing. Report
each destination's latest run in plain words (status, match rate, and audience size), and link
the sync's url. Google and Bing have no single audience size: report the size for each
network in the run's google or bing object. For a failed run, relay its errorMessage, which says what went wrong
and what the user can do about it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clay, ad-sync, audience-segment, custom-audience, ad-platforms
npx claudepluginhub clay-run/agent-plugins --plugin clay39 skills in this plugin
/audiencesClay Audiences — the workspace's own people, companies, and deals (contacts, leads, accounts, customers). Use for any request about their records when no surface is named, including counts, fill rates, lookups ("how many people have a phone?"), saved segments, and field definitions. Also deal and pipeline questions like largest opportunities, biggest pipeline items, recent wins, closed-won, deal stage, and ACV. Also Data hub enrichment configuration, audience assignments, and parity checks. Also the calls and meetings synced onto those records, such as Gong recordings, and which accounts discussed a topic on their calls./clayClay — start here. A table of contents for working with Clay and which skill to use for each thing — audiences (the workspace's own people/companies/deals), sequences (formerly campaigns; create, improve, and analyze outbound email sequences in Sequencer), ad syncs (push audience segments to ad platforms), search (find net-new people/companies), routines (run Clay-managed and custom functions), tables (query/export data), the CLI (ephemeral programmatic access), the Public API (build services on Clay), workflows (build automations), feedback, and getting help — reaching Clay support or a human about billing, refunds, or account problems. Read this first to answer "what can I do with Clay?"Other plugins' skills for the same job