ads_get_query_based_audience_by_audience_execution_id
One AMC audience's status — poll it after creating one.
readAmazon Adsads.amc-audiences
SUCCEEDED means Amazon has sent it to the store's sponsored-ads account, where it appears within 2–24 hours; ads_list_targetable_entities then gives the audienceId campaigns take. Amazon Ads API · getQueryBasedAudienceByAudienceExecutionId · GET /amc/audiences/query/{audienceExecutionId} Docs: https://advertising.amazon.com/API/docs/en-us/amc-rba#tag/Rule-based-audience/operation/getQueryBasedAudienceByAudienceExecutionId
Call it
In an AI client (MCP)
{
"name": "ads_get_query_based_audience_by_audience_execution_id",
"arguments": {
"store": "myStore-US",
"country_code": "<country_code>",
"audience_execution_id": "<audience_execution_id>"
}
}From code (Tool API)
curl -X POST https://api.sellersheetai.com/api/v1/tools/ads_get_query_based_audience_by_audience_execution_id \
-H "Authorization: Bearer $SELLERSHEET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"store":"myStore-US","country_code":"<country_code>","audience_execution_id":"<audience_execution_id>"}'Early access — the Tool API is open on request, contact us.
Arguments
| Name | Type | Description |
|---|---|---|
storerequired | string | the store ref `<store>-<CC>` (name-country, e.g. 'myStore-US') — one of get_user_context's store_refs, verbatim. |
country_coderequired | string | the Ads profile's 2-letter country code (e.g. 'US'). |
audience_execution_idrequired | string | data.audience_execution_id from a create, or from ads_get_all_query_based_audiences_by_instance_id. |
Result
Every tool answers {notification, data, human_action}; data carries:
data.audience— {audience_execution_id, audience_name, audience_type, status, status_reason, audience_count, deletable, time_window_start, time_window_end, query}.
Gotchas
- FAILED comes back as an error notification carrying Amazon's status_reason — most often fewer than 2,000 shoppers, or a table without the _for_audiences suffix. Fix it with ads_update_query_based_audience_by_audience_execution_id or delete it.
- DEACTIVATED: the audience has no members any more (unused for long, or refresh off).