replace_audience_members
Replace all members of a custom audience from an uploaded file, referencing the current membership revision and providing an idempotency key to avoid duplicate replacements.
Instructions
Replace all members of a custom audience using an uploaded file and current revision. Requires Idempotency-Key. Poll via get_audience_operation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"custom_audience_id": "<custom_audience_id>",
"idempotency_key": "<idempotency_key>",
"expected_revision": "<expected_revision>",
"file_id": "<file_id>"
},
"name": "replace_audience_members"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | Replacement file ID from upload_audience_file. | |
| filename | No | ||
| mimetype | No | ||
| file_size | No | ||
| ad_account_id | No | ||
| idempotency_key | Yes | Required idempotency key. | |
| identifier_type | No | ||
| expected_revision | Yes | Current membership_revision (required). | |
| custom_audience_id | Yes | Custom audience ID. | |
| identifier_resolution | No |