create_ad_unit
Create an ad unit to display ads on your site. Specify a name and optional format, and get the unit's name and slot ID returned.
Instructions
Create a new ad unit. Returns the created unit with its name and slot ID.
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": {
"displayName": "<displayName>"
},
"name": "create_ad_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Ad format type | DISPLAY |
| adClient | No | Ad client name. Auto-detected if omitted. | |
| displayName | Yes | Display name for the new ad unit (e.g., "Homepage Banner") |