List Ads
postly_list_adsLists individual ads with their performance for a period, across all connected ad accounts or one account or network. Each ad includes key and snapshot_id for postly_compare_ads. Page with offset and next_offset, then next_account when several accounts are listed. Requires ads.read.
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>"
},
"name": "postly_list_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Start date as YYYY-MM-DD. Required unless all_time. | |
| until | No | End date as YYYY-MM-DD, at most 90 days after from. Required unless all_time. | |
| offset | No | ||
| search | No | Optional text to match the ad, campaign, or ID. | |
| status | No | Optional native status filter such as ACTIVE or PAUSED. | |
| account | No | Optional account key (provider:account_id). Omit to list every connected account. | |
| network | No | Optional ads network such as google or meta. Ignored when account is set. | |
| all_time | No | Use lifetime totals where the network supports them. | |
| workspace_id | Yes | Postly workspace ID. | |
| account_index | No | Optional next_account value from a previous page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| data | No | ||
| message | No |