1. Home
  2. Blog
  3. Amazon Marketing Cloud (AMC) Audiences in SQL

Amazon Ads & PPC

Amazon Marketing Cloud (AMC) Audiences: Build Them with SQL

Amazon Marketing Cloud audiences built with SQL: audience vs analysis queries, five AMC patterns, size and privacy limits, API refresh and measurement.

Amazon Marketing Cloud audiences, usually called AMC audiences, are groups of shoppers you select with a SQL query inside AMC. Amazon builds that group as an audience in your Amazon DSP or sponsored ads account and refreshes it on a schedule, which turns AMC from an analysis tool into an activation tool. The shoppers never leave the clean room: you never see who they are, only that the audience exists and how big it is.

Our AMC explainer covers what AMC is and how analysis queries work. This guide is about the next step: how audience queries differ, five patterns worth building, the privacy limits that cause audiences to fail, refresh automation through the API, and how to tell whether an audience is working.

What AMC audiences are and where they activate

Amazon's documentation calls these rule-based audiences. You submit a query that selects user_id values; AMC runs it, applies its privacy rules and pushes the resulting audience to the advertiser account you name. Per the current docs, they can be used in:

  • Amazon DSP: as audiences on line items, selected like other DSP audiences.
  • Sponsored Display: as a targeting option in campaigns.
  • Sponsored Products and Sponsored Brands: as bid modifiers, so you can raise or lower bids when a shopper in the audience is searching.

Amazon also documents lookalike audiences built from an AMC query as a seed, and audiences from advertiser-uploaded first-party data. Activation options have expanded over time, so confirm in the current AMC documentation which ad products accept AMC audiences in each marketplace before you plan a campaign around one.

Audience queries vs analysis queries

The two kinds of query look similar and behave differently.

Analysis queries

Analysis queries return aggregated rows to your S3 bucket or download link. They must never output user_id, and every output row has to pass aggregation thresholds. You use them to size an audience before you build it, by counting distinct users.

Audience queries

Audience queries select user_id and nothing else that identifies a person, and they run against special tables with a _for_audiences suffix, such as conversions_for_audiences, sponsored_ads_traffic_for_audiences, dsp_impressions_for_audiences and amazon_attributed_events_by_conversion_time_for_audiences. The output does not come back to you. It goes straight to the DSP or sponsored ads account. Advertiser-uploaded tables keep their own names, with the column flagged as the main user ID used as user_id.

In practice you write each audience twice: an analysis version that counts users, then the audience version that selects them.

Five AMC audience patterns worth building

All examples are illustrative. The date range comes from the audience's time window parameters, not from the SQL, and column names should be checked in your instance's schema explorer.

Cart abandoners

Shoppers who added your products to their cart in the window and did not buy. A classic retargeting audience for DSP or Sponsored Display.

-- Example only: added to cart, no purchase, in the audience time window.
-- AMC SQL supports correlated NOT EXISTS; correlated NOT IN is not supported.
SELECT c.user_id
FROM conversions_for_audiences c
WHERE c.event_subtype = 'shoppingCart'
  AND c.user_id IS NOT NULL
  AND NOT EXISTS (
    SELECT 1
    FROM conversions_for_audiences o
    WHERE o.event_subtype = 'order'
      AND o.user_id = c.user_id
  )
GROUP BY c.user_id

Ad-engaged non-buyers

Shoppers who clicked a sponsored ad but have not purchased. Useful as a Sponsored Products bid modifier: they already know the product, so a higher bid when they search again is often justified.

-- Example only: clicked a sponsored ad, no purchase of your products in the window.
SELECT t.user_id
FROM sponsored_ads_traffic_for_audiences t
WHERE t.clicks > 0
  AND t.user_id IS NOT NULL
  AND NOT EXISTS (
    SELECT 1
    FROM conversions_for_audiences o
    WHERE o.event_subtype = 'order'
      AND o.user_id = t.user_id
  )
GROUP BY t.user_id

Cross-sell

Buyers of product A who have not bought product B. Filter purchases on tracked_asin, which in the conversions table is populated for purchase events. This works best where the products are genuinely complementary (a device and its refills, a shampoo and its conditioner) and where B is not already shown to these shoppers through Sponsored Brands. Activate it in DSP or Sponsored Display with creative for product B, and keep the ASIN lists in a configuration table so the same query serves every product pair.

Replenishment

Buyers of a consumable who are approaching the typical repurchase interval. Do not guess the interval: run an analysis query first that measures the median and spread of days between repeat purchases for the ASIN, aggregated so it passes thresholds. Set the time window to cover purchases from one replenishment cycle ago, and exclude anyone who has purchased more recently by building a second audience for recent buyers and using it as an exclusion where the line item allows.

New-to-brand seed for lookalikes

Recent buyers flagged new_to_brand = true, used as the seed for a lookalike audience rather than targeted directly. Lookalikes are built from the seed query you submit; Amazon's docs say an existing rule-based audience cannot be reused as a seed, so you copy its SQL into the lookalike request.

Privacy thresholds and minimum audience sizes

Most failed audiences fail on size. The numbers Amazon documents today:

  • Rule-based audiences: a minimum of 2,000 records, and Amazon advises targeting 2,500 or more, because opted-out users are removed during ingestion.
  • Lookalike seeds: at least 500 and at most 500,000 user IDs.
  • Targetable IDs: only the adUserId type can be activated, even though measurement queries also include device and browser IDs. Amazon notes that this coverage (around 90%) limits final audience size.
  • Exclusions: shoppers who opted out of targeting and users identified as potential children are removed from the final audience, and some sensitive ASINs are removed from tracked_asin and tracked_item in audience tables.

So an analysis count of 2,300 users is not a safe audience. Size each query with a distinct count first and leave a margin. When a pattern is too small, widen the window, broaden the ASIN set, or combine several products into one brand-level audience rather than one per product.

Refresh schedules and automation via the API

Audiences are created with POST /amc/audiences/query on the Amazon Ads API (the older instance-level AMC endpoints were retired in 2024). The request includes the audience name, the target advertiserId, the SQL, a time window, and two parameters that control freshness:

  • refreshRateDays: how often the query re-runs and fully overwrites the audience. Documented values run from 0 to 21. If it is 0, Amazon deactivates the audience in the target account after 30 days.
  • timeWindowRelative: when TRUE, each refresh moves the time window forward by the refresh interval, which is what you want for "last 30 days" audiences. It defaults to FALSE.

Amazon also slows refreshes in some cases. A DSP audience not attached to a line item moves to a two-day refresh within 14 days, a seven-day refresh by 30 days, and stops refreshing by 100 days. A query that runs longer than four hours also moves to a two-day refresh. Audiences cannot be edited after creation, only recreated, although failed audiences can be fixed.

What that means for automation:

  • Keep audience definitions in version control, with name, SQL, window and refresh settings, and create them from code rather than by hand.
  • Name audiences with a version suffix, because changing the SQL means a new audience.
  • Poll status (PENDING, RUNNING and the terminal states) with the list and get endpoints, and alert on failures and on a stale lastRefreshedTime.
  • Respect rate limits: Amazon documents five requests per second for creating audiences.
  • Attach audiences promptly to DSP line items so refresh does not decay.

This is the same code-first approach our Amazon Ads API development team uses for reporting pipelines, so audience definitions and the data that measures them live in one place.

Measuring AMC audience performance

An audience is a hypothesis about who is worth reaching. Measure it like one.

  • Delivery first. Check that the audience reached a usable size in the target account and that line items or bid modifiers actually served against it.
  • Performance in standard reporting. DSP reporting has an audience report type (dspAudience), and v3 reporting lists Sponsored Products and Sponsored Brands audience reports (spAudiences, sbAudiences) grouped by the campaign's audience bid boost segment. Compare against a baseline of similar spend without the audience.
  • Back in AMC. Use analysis queries to compare conversion rates of exposed shoppers in the audience's definition against a comparable group that was not targeted, with the same time window. This is where most of the useful learning happens, because it is the only place you can see both groups.
  • Incrementality where it matters. For large budgets, design a proper holdout (for example, a line item that excludes the audience or a geo split) before spending, not after.

On Tinuiti, we integrated AMC into the same data layer that powers reporting, so audience insight feeds AI-driven budget allocation and audience automations instead of living in a separate tool.

Pitfalls

  • Treating analysis counts as final size. Opt-outs, ID types and exclusions shrink audiences, so leave a margin above 2,000.
  • Static windows by accident. Forgetting timeWindowRelative produces an audience that refreshes the same old date range.
  • Overlapping audiences. Cart abandoners and ad-engaged non-buyers overlap heavily. Decide which takes priority and exclude one from the other.
  • Account blind spots. AMC instances are scoped to a region and to the advertiser accounts linked to them. A query in your US instance knows nothing about shoppers reached only by accounts that are not linked to it, such as a UK account.
  • No owner. Audiences decay quietly when nobody watches refresh status. Put them on the same monitoring as your pipelines.

If you want AMC audiences built, versioned and measured as part of your Amazon Marketing Cloud setup, and activated across Amazon Ads and programmatic and CTV campaigns, book a free 30-minute ad data review or start with a free ad data plan. For the privacy model behind all of this, see our guide to clean rooms and first-party data.

Frequently asked questions

Can I see which shoppers are in an AMC audience?

No. Audience queries send their output directly to the Amazon DSP or sponsored ads account, never to your S3 bucket or download link, and user_id can never appear in an analysis query's output. What you can see is the audience's status, refresh times and, by running a separate analysis query, an approximate count of distinct users.

Can I use my own first-party data in AMC audiences?

Yes. Data uploaded through AMC's advertiser data upload can be queried in audience queries. Uploaded tables keep their own names rather than taking the _for_audiences suffix, and the column you flagged as the main user ID at upload acts as user_id. Matching and privacy rules still apply, so expect the activated audience to be smaller than your uploaded list.

Do I need a separate AMC instance for each country?

Usually, for different regions. AMC instances are tied to an Amazon Ads region and only see activity for the advertiser accounts linked to them. A brand advertising in the US and the UK therefore typically builds and maintains audiences in separate instances, each activated into its own region's accounts. For markets in the same region, such as the US and Canada, check which advertiser accounts your instance has linked before assuming coverage.

Is Amazon Marketing Cloud SQL different from standard SQL?

AMC uses SQL with its own rules. Analysis queries can never output user_id and every output row must pass aggregation thresholds. Audience queries select user_id from tables with a _for_audiences suffix. Some constructs also differ: correlated NOT EXISTS is supported, while correlated NOT IN is not. Check Amazon's AMC SQL basics before porting a query from another warehouse.

Do I need an Amazon Marketing Cloud developer to build audiences?

You need someone who can write AMC SQL, size each audience with an analysis query first, and create and monitor audiences through the Amazon Ads API. Writing a first query is within reach for many analysts; versioning, refresh monitoring and measurement are where a developer or data engineer usually helps. Our Amazon Marketing Cloud team does this for brands and agencies.

Sources

Want this built for you?

See how we approach it in Amazon Marketing Cloud services, or talk to an engineer about your accounts.

Talk to an engineer