Get spend and cost models
get_spendRetrieve imported ad spend with cost models, completeness, and freshness; use date filters or a cursor to page rows and fetch the next set of results.
Instructions
Return imported ad spend, cost models, completeness and spend freshness. Without from, to or cursor every row comes back at once; with any of them the rows are paged, ordered by network, campaign, ad set, ad and day, and next_cursor is null on the last page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last metric day to include (UTC, YYYY-MM-DD). May be sent without from. | |
| from | No | First metric day to include (UTC, YYYY-MM-DD). May be sent without to. | |
| limit | No | Rows per page, 1-5000 (1000 when omitted). Read only in paged mode; alone it changes nothing. | |
| app_id | No | Optional app id to scope the result to one app. | |
| cursor | No | Pass the next_cursor from the previous response to fetch the following page. Omit for the first page. |