ads_tree
Campaigns with their ad sets and ads nested (data[].ad_sets[].ads[]), from the last background sync. The quickest way to see an account's whole structure. Takes the list filters (applied to campaigns) plus depth. Paginated by campaign: { total, page, per_page, data }.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ads_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ISO 8601. Created on the network at or before this time. No effect on Google Ads. | |
| from | No | ISO 8601. Created on the network at or after this time. No effect on Google Ads. | |
| page | No | Page number, 1-based (default 1) | |
| sort | No | Default newest | |
| depth | No | How deep to nest. Default ad. | |
| search | No | Name contains this text, or exact network id | |
| source | No | all (default) or postproxy (created through Postproxy only) | |
| status | No | Only objects in one of these statuses | |
| post_id | No | Only ads boosting this Postproxy post (post hashid) | |
| per_page | No | Page size (default 25, max 100) | |
| platform | No | Ad network: meta_ads or google_ads | |
| profile_id | No | Only objects of this ads profile (hashid) | |
| platform_id | No | The object with this network id | |
| ad_account_id | No | Only objects of this ad account (network id from ads_accounts_list) | |
| profile_group_id | No | Profile group hashid, to scope the call to one profile group. Usually not needed. |