ads_get_workflow_execution

The status of an AMC query from ads_create_workflow_execution.

readAmazon Adsads.amc-reporting

Poll every 15–30 seconds; most queries finish within two minutes. Amazon Ads API · getWorkflowExecution · GET /amc/reporting/{instanceId}/workflowExecutions/{workflowExecutionId} Docs: https://advertising.amazon.com/API/docs/en-us/amc-reporting#tag/Workflow-executions/operation/getWorkflowExecution

Call it

In an AI client (MCP)

tools/call
{
  "name": "ads_get_workflow_execution",
  "arguments": {
    "store": "myStore-US",
    "country_code": "<country_code>",
    "workflow_execution_id": "<workflow_execution_id>"
  }
}

From code (Tool API)

curl -X POST https://api.sellersheetai.com/api/v1/tools/ads_get_workflow_execution \
  -H "Authorization: Bearer $SELLERSHEET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"store":"myStore-US","country_code":"<country_code>","workflow_execution_id":"<workflow_execution_id>"}'
Early access — the Tool API is open on request, contact us.

Arguments

NameTypeDescription
storerequiredstringthe store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim.
country_coderequiredstringthe Ads profile's 2-letter country code (e.g. 'US').
workflow_execution_idrequiredstringdata.workflow_execution_id from ads_create_workflow_execution.

Result

Every tool answers {notification, data, human_action}; data carries:

  • data.status — SUCCEEDED when the rows are ready; PENDING or RUNNING while AMC works; REJECTED when AMC refused the SQL (a privacy rule or a syntax error — Amazon answers it although its spec omits it), FAILED or CANCELLED otherwise.
  • data.status_reason — Amazon's sentence when REJECTED or FAILED — fix the SQL by it.
  • data.output_columns[] — {name, column_type, data_type} once validated.

Params (Amazon schema)

instanceId*: string
workflowExecutionId*: string
includeWorkflow: boolean

On this page

Actions

View as Markdown

Ask an assistant

Ask ChatGPTAsk Claude