Skip to main content
cURL
Cost: Free.
Works while the extension is offline: this call uses only what Alura stores. See Chrome extension.
Needs the ads:read scope and the Etsy Ads workspace permission.

What you get

Read a run

Each action says how it ended on Etsy’s read-back: An unconfirmed action is never counted as applied, or in projected_monthly_spend_freed.

When it can’t be read

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Path Parameters

id
string
required

The run ID a preview answered.

Required string length: 1 - 80
Pattern: ^[A-Za-z0-9_-]{1,80}$
Example:

"0b9f0e3a-6d2c-4f0e-9a51-3c2d8e7f1a42"

Query Parameters

fields
string

Comma-separated dotted paths to return; id, object and as_of always come back.

Response

OK

object
string
required
Allowed value: "workspace.ads_optimize_run"
id
string
required

The run ID: GET /v1/workspace/ads/optimize/runs/{id} reads it while it is kept.

status
string
required

preview: planned only; nothing was changed on Etsy.

Allowed value: "preview"
shop_id
string
required
target
enum<string>
required
Available options:
listings,
search_terms
created_at
string
required

ISO 8601, UTC.

expires_at
string
required

When the preview is dropped: after it, its GET is 410 optimize_run_expired.

basis
enum<string>
required

Where the strategy came from: explicit (overrides.strategy), saved (the optimizer settings), default (Budget Saver, or Keyword Saver for search terms: no settings saved).

Available options:
explicit,
saved,
default
strategy
object
required

The strategy the plan used (the shape of a strategy in the optimizer settings), with the run's period and action cap.

period
object
required

The days judged, on Etsy's calendar (US Eastern); for search terms, the window their numbers cover (Etsy's rolling last 31 days and today).

margin_pct
number | null
required

The shop margin the plan used; null when none is saved or given.

break_even_roas
number | null
required

The shop margin's break-even ROAS: below it, ads lose money at this margin. A floor: a listing's own can be higher. null without a margin, when it is unknown, or when no ROAS breaks even at this margin.

actions
object[]
required

The planned changes, highest spend first.

held_back
object[]
required

What the rules matched but a guardrail held back (codes of kind guardrail, except run_cap: capped_count counts those), highest spend first, at most 20 (the held_back notice counts them all). Nothing here is changed by an apply; a seller who wants them acted on changes the strategy's guardrails.

capped
boolean
required

true when more listings matched than the action cap: the highest-spend ones were kept.

max_actions_capped
boolean
required

true when the strategy's own action cap (or the default) was above what one apply sends (120 listings, 7 search terms), so this preview planned at most that; send overrides.max_actions to plan more (preview only: an apply sends no more). The saved settings are unchanged.

capped_count
integer
required

Listings (or search terms) that matched beyond the cap (0 when not capped).

projected_monthly_spend_freed
object | null
required

The paused listings' (or turned-off terms') spend over the period, as 30 days: ad spend freed, not guaranteed cash saved (the daily budget is shared, so Etsy may spend it on other listings). Only spend Etsy reported is added: with spend_unknown_count above 0 this is a lower bound (at least this much). In US dollars (Etsy Ads money for every shop); null when it is unknown.

spend_unknown_count
integer
required

Paused listings whose spend Etsy didn't report: left out of projected_monthly_spend_freed, never added as 0, so above 0 that amount is "at least".

coverage
object
required
notices
object[]
required
plan_hash
string
required

The plan's hash (its actions and everything they were decided on). Send it with the apply (plan_hash): the apply is refused, nothing sent, unless it is still this plan.

fetched_at
string | null
required

When Alura read the scan from Etsy; null when nothing was read.

source
string
required
Allowed value: "live"