Filter /v1/ads/tree by delivery/spend in the date range (hasDelivery / minSpend)

Today /v1/ads/tree's fromDate/toDate only scope the metrics overlaid on each node, not which campaigns are returned (confirmed by support) — so the tree returns every campaign in the account regardless of whether it had any delivery in the window.

For large accounts this gets very heavy. A busy ad account can hold many hundreds of campaigns, and a date-windowed query returns all of them (tens of MB across pages) even when only a small fraction had any spend in that window. The vast majority are dormant campaigns irrelevant to the period, so the response is mostly wasted payload and the call takes tens of seconds.

status= isn't a workaround: it filters by a campaign's current status, not its activity during the window, so status=active drops campaigns that spent during the window but are now paused/completed — which undercounts historical reports.

Request: an option to return only campaigns with delivery/spend in the requested date range (e.g. hasDelivery=true or a minSpend filter). That makes date-windowed queries both accurate and small. Happy to share reproduction details privately if useful.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
💡

Feature Request

Date

About 1 month ago

Author

Henrik Raitasola

Subscribe to post

Get notified by email when there are changes.