ads
GET /v1/ads/connections/{connection_id}/product-trials
Each product's free-trial length, our recommendation, and the longest trial.
Authentication
Send an API key as a bearer token. The key must carry the ads.view permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
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/connections/{connection_id}/product-trials \
-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
Gated on ads.view (docs/1006 §83, za-100). Every product the account is known to sell (its sales and trials, its product costs, its own choices) with its free-trial length: 0 = no free trial, else 7, 14 or 30 days. A product with no choice of its own follows recommended_days (our recommendation for the account's business type) and reads custom: false. The autopilot judges SALES only after a trial has ended: a conversion still inside its trial counts as pending, never as a failure; a campaign (which carries no product) waits for longest_days.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
connection_id (path) | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
connection_id | string | Yes | — |
business_type | string | Yes | The account's business type ("" = not chosen); the recommendation follows it. |
choices | integer[] | Yes | The lengths that may be chosen |
recommended_days | integer | Yes | Our recommended trial length for this account. |
longest_days | integer | Yes | The longest trial the account's products run — how long a campaign's sales verdict waits. |
products | AdsProductTrial[] | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429