# Hermoso: create_analytics_audience · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/create_analytics_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_analytics_audience

# `create_analytics_audience`

Build a GA4 audience (remarketing list)

Area: GA4 <-> GOOGLE ADS: THE LINK, AND THE AUDIENCES THAT TRAVEL… · [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 GA4 AUDIENCE — a remarketing list defined by what people did on the site, which flows into Google Ads across the property's Google Ads link. TELL THE USER TWO THINGS BEFORE CALLING: GA4 marks the DEFINITION, the MEMBERSHIP DURATION and every filter SCOPE immutable, so a wrong audience is archived and rebuilt rather than edited; and it is NOT retroactive — it starts collecting members from creation onward, and Google takes 24-48 hours to populate it. `filterClauses` is GA4's own nested shape and the TOP level of each filterExpression MUST be a single `andGroup` (Google's schema says so and its rejection names no field). Worked example, 'everyone who fired purchase': [{"clauseType":"INCLUDE","simpleFilter":{"scope":"AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS","filterExpression":{"andGroup":{"filterExpressions":[{"orGroup":{"filterExpressions":[{"eventFilter":{"eventName":"purchase"}}]}}]}}}}]. The result says whether the property is linked to Google Ads, because an audience nobody can remarket to is not a finished job. 0 credits.

## Parameters

Parameter Type Description

`property` required `string` the NUMERIC GA4 property id

`displayName` required `string` the audience name shown in GA4 and in Google Ads

`description` required `string` REQUIRED by Google on the Audience resource — one line saying who is in it

`membershipDurationDays` required `number` REQUIRED and IMMUTABLE, 1-540. 30 is the usual remarketing window; 540 is GA4's maximum

`filterClauses` required `object[]` GA4 AudienceFilterClause list — each {clauseType:INCLUDE|EXCLUDE, simpleFilter|sequenceFilter}. See the worked example in the description

`exclusionDurationMode` `"EXCLUDE_TEMPORARILY" | "EXCLUDE_PERMANENTLY"` IMMUTABLE, and it applies to EVERY exclude clause on the audience

`eventTrigger` `object` optional {eventName, logCondition} event GA4 logs when a user joins the audience

## 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_analytics_audience`.

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

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_analytics_audience","arguments":{"property":"<string>","displayName":"<string>","description":"<string>","membershipDurationDays":"<number>","filterClauses":"<array>"}}}`
**CLI**

`hermoso call create_analytics_audience --json '{"property":"<string>","displayName":"<string>","description":"<string>","membershipDurationDays":"<number>","filterClauses":"<array>"}'`

## 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

- [list_analytics_audiences](https://hermoso.ai/docs/reference/ads/list_analytics_audiences/) List the GA4 audiences on a property
- [unlink_google_ads_from_analytics](https://hermoso.ai/docs/reference/ads/unlink_google_ads_from_analytics/) Unlink Google Ads from a GA4 property
- [link_google_ads_to_analytics](https://hermoso.ai/docs/reference/ads/link_google_ads_to_analytics/) Link a GA4 property to a Google Ads account
- [list_analytics_google_ads_links](https://hermoso.ai/docs/reference/ads/list_analytics_google_ads_links/) Which Google Ads accounts a GA4 property is linked to

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