Documentation menu
Ads

Campaign tree

Campaigns, ad sets (TikTok ad groups), and ads with performance at every level.

GEThttps://app.tryadeli.com/api/v1/ads/tree
AuthorizationBearer <API key>How keys work

The Campaign → Ad set → Ad hierarchy for one ad account, with spend, impressions, reach, clicks, ctr, cpc and cpm rolled up at every level. An object that did not deliver in the range reports zeroes rather than being omitted.

For Meta, the tree is served from a copy Adeli keeps for up to five minutes, so an agent can re-read it freely without spending the ad account's Meta budget. fetchedAt is when Meta was last asked. Any change made through Adeli clears the copy, so the next read shows it. A change made in Ads Manager shows up within five minutes, or at once with refresh=true. While Meta is rate limiting, the last copy is returned with stale: true instead of an error.

Query parameters

adAccountIdstringRequired
An ad account id, in Meta's act_<digits> form.
sincedate
YYYY-MM-DD. Defaults to 28 days ago.
untildate
YYYY-MM-DD. Defaults to today. Ranges over 730 days are rejected.
accountIduuid
The Meta Ads account. A Facebook account id is not accepted.
profileIduuid
Required unless you pass accountId, which names its profile. If you pass both, they must agree.
refreshboolean
Meta: true to read from Meta instead of Adeli's copy, at most once a minute. Only needed after a change made outside Adeli.