Draft a custom segment
draft_custom_segmentDraft a custom segment from URLs and search terms — returns a PREVIEW.
A custom segment reaches people who browse sites like the URLs or who search for / are interested in the terms (any of them: members are OR-ed). Custom segments cannot be attached to Search campaigns; in Demand Gen they are used inside an audience (draft_demand_gen_audience). The applied result returns custom_audience_id for draft_demand_gen_audience.
Google Ads API: https://developers.google.com/google-ads/api/docs/start
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": {
"name": "<name>"
},
"name": "draft_custom_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Segment name, unique in the account. | |
| urls | No | Websites the audience browses, e.g. competitor sites. | |
| keywords | No | Terms the audience searches for or is interested in (at most 10 words and 80 characters each). | |
| customer_id | No | Google Ads customer ID (digits, dashes optional). Defaults to the configured account. | |
| description | No | Optional description. | |
| segment_type | No | AUTO (default; Google decides between interest and search intent) or SEARCH (people who searched the terms on Google). | AUTO |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||