> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Audience

> Create an audience on a Microsoft Ads account: a remarketing list from UET tag traffic, an empty customer list to fill with hashed records, a product audience, or a combined list

Create an audience on a Microsoft Ads account: a remarketing list from UET tag traffic, an empty customer list to fill with hashed records, a product audience, or a combined list. Microsoft will not create in-market, custom or similar audiences through the API at all.

| | |
| - | - |
| **App** | Microsoft Ads |
| **Operation ID** | `microsoft_ads_create_audience` |
| **Type** | Action |
| **Connection** | `microsoft_ads` (required) |
| **Credits per run** | 1 |
| **Agent / MCP tool** | Yes |
| **Requires approval** | Yes (write operation) |

## Inputs

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `account` | object or array of object or MicrosoftAdsAccountItem or string or integer | Yes | - | Microsoft Ads account to create the audience in. |
| `name` | string | Yes | - | Audience name, unique within the account. |
| `audience_type` | enum (`RemarketingList`, `CustomerList`, `Product`, `CombinedList`, `CustomSegment`, `ImpressionBasedRemarketingList`) | Yes | - | Type of audience. RemarketingList targets site visitors and needs a UET tag. CustomerList is filled afterwards with microsoft\_ads\_upload\_customer\_list. Microsoft will not create in-market, custom or similar audiences through the API at all; those come from Microsoft or from the web interface. |
| `description` | string | No | - | Optional note about the audience. |
| `scope` | enum (`Account`, `Customer`) | No | - | Account keeps the audience to this account, Customer shares it across every account under the customer. |
| `membership_duration` | integer | No | - | How many days someone stays in the audience. 1 to 180 for most types, up to 390 for a customer list, and -1 on a customer list means never expire. |
| `tag_id` | integer or string | No | - | UET tag feeding the audience. Required for RemarketingList and Product audiences. microsoft\_ads\_list\_uet\_tags returns these. |
| `rule` | object or string | No | - | RemarketingList only, and required: Microsoft rejects a remarketing list without one. JSON in Microsoft's RemarketingRule shape, for example \{"Type": "PageVisitors", "RuleItemGroups": \[\{"Items": \[\{"Type": "String", "Operand": "Url", "Operator": "Contains", "Value": "example.com/pricing"}]}]}. The item Type is String or Number, not the page or URL being matched. Operand is Url or ReferrerUrl. Items inside a group are ANDed and the groups are ORed. |
| `product_audience_type` | enum (`GeneralVisitors`, `ProductSearchers`, `ProductViewers`, `ShoppingCartAbandoners`, `PastBuyers`) | No | - | Product audiences only: which shopper behaviour to target. |
| `combination_rules` | array or string | No | - | CombinedList only: the include and exclude rules combining other audiences, as JSON. |

### MicrosoftAdsAccountItem

| Field | Type | Required | Default | Description |
| - | - | - | - | - |
| `value` | string | Yes | - | |
| `label` | string | Yes | - | |
| `customerId` | string | No | - | The Microsoft Ads customer ID used for REST CustomerId headers. If omitted, it is resolved from the account ID. |

## Output

**Type**: `Dict`

Returns the created audience, read back from Microsoft.

**Fields**: `id`, `name`, `type`, `membership_duration`, `scope`, `tag_id`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.