Apply Ad
postly_apply_adPublishes a reviewed ad campaign or change from postly_prepare_ad to the ad network. This can spend money. Call only after the user explicitly confirms that exact summary. Repeating the call returns the same operation instead of creating a duplicate. If the result needs attention, check the native ads account and postly_list_ad_operations before trying again. Only workspace Owners and Admins can create or change ads with AI agents. Requires ads.write.
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": {
"workspace_id": "<workspace_id>",
"provider": "<provider>",
"account_id": "<account_id>",
"operation_id": "<operation_id>"
},
"name": "postly_apply_ad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | Yes | Ads network from postly_list_ad_accounts, such as google or meta. | |
| account_id | Yes | Native ad account ID from postly_list_ad_accounts. | |
| operation_id | Yes | The id returned by postly_prepare_ad. | |
| workspace_id | Yes | Postly workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| data | No | ||
| message | No |