ads
GET /v1/ads/analytics/markers/items
The changes behind a chart marker, newest first, paged, each with its Undo state (za-284).
Authentication
Send an API key as a bearer token. This endpoint checks no specific permission, so any key for your organisation can call it.
Where your organisation id goes
This endpoint takes org_id as a query parameter. Leave it out and the call covers your whole tenancy subtree; send it to narrow the call to one organisation.
Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X GET https://api.zinndigital.com/v1/ads/analytics/markers/items \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The changes applied (changes) and the changes Google made by itself (google) in marker_first..marker_last (UTC days; default the screen's window), each list paged by the same offset and limit with its own full count. The window must lie inside the screen's window or the link_days before it (an anomaly's link window), else 422. A change carries can_undo while its 30-day Undo is open (POST /v1/ads/changes/{change_id}/undo); a Google change carries undoable while its Undo can still be asked for (POST /v1/ads/connections/{connection_id}/google-changes/{change_id}/undo). Same gate and filters as GET /v1/ads/analytics/markers.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
org_id (query) | string | No | — |
range (query) | string<7d, 30d, 90d, ytd, 12m, custom> | No | The period. custom takes from and to. |
from (query) | string | No | — |
to (query) | string | No | — |
compare (query) | string<previous, year, none> | No | — |
grain (query) | string<day, week, month> | No | Bucket size. Default day up to 92 days, week up to 366, month beyond. |
network (query) | string | No | Comma-separated networks (google, microsoft, meta, linkedin, tiktok, x, pinterest, amazon). |
connection (query) | string | No | Comma-separated ad-account connection ids. |
campaign (query) | string | No | Comma-separated <connection_id>:<campaign_id> tokens. |
country (query) | string | No | Comma-separated ISO 3166-1 alpha-2 codes. Reads the country-level figures. |
device (query) | string | No | Comma-separated devices: mobile, desktop, tablet, tv, other (za-282). Reads the device-level figures (Google Ads accounts, campaign grain). No stored level is split by… |
offering (query) | string | No | Comma-separated product/site ids (za-290), or unassigned. |
client (query) | string | No | za-287: comma-separated client organisation ids. The read narrows to each client and its own clients, so an agency sees the same screen for one client. A client the caller cannot… |
currency (query) | string | No | Reporting currency (ISO 4217). Default the one currency in play, else the organisation's. |
marker_first (query) | string | No | — |
marker_last (query) | string | No | — |
offset (query) | integer | No | — |
limit (query) | integer | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | AdsAnalyticsMarkerItems | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429