AMC cheat sheet: thresholds, joins and date functions on one page

In short: This page condenses AMC-SQL onto one printed page: the five aggregation thresholds from NONE to VERY HIGH, the supported JOIN types including the gap at RIGHT JOIN, the difference between UNION and UNION ALL and the key date functions. Print the page or save it as PDF through your browser.

Aggregation thresholds

LevelMinimum users per rowNote
NONE1mostly metrics such as impressions and clicks; no filtering restriction
LOW2mostly dimensions such as campaign_id; no filtering restriction
MEDIUM100for example bid_price; no filtering restriction
HIGH100no filters with literal values, for example not WHERE postal_code IN (10001, 10011)
VERY HIGHnever outputfor example user_id; usable only inside aggregates, never in the final SELECT

JOIN and UNION

ConstructNote
INNER JOINonly matching rows of both tables
LEFT JOINall rows on the left, NULL on the right without a match
RIGHT JOINnot supported; use LEFT JOIN with the tables swapped
FULL JOIN, CROSS JOIN, non-equi JOINsupported
UNIONkeeps unique records; needs the same number of columns and types
UNION ALLkeeps all records including duplicates

Date functions

FunctionPurpose
DATE_TRUNC('DAY', ts)truncates to SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, QUARTER or YEAR
CURRENT_DATE / CURRENT_TIMESTAMPcurrent date or time in UTC
DAYOFWEEK(date)weekday 1 to 7, 1 is Sunday
DAYOFMONTH(date)day of the month 1 to 31
EXTRACT(unit FROM expr)pull one time unit, such as DOW, WEEK, MONTH, YEAR
CONVERT_TIME_ZONE_FROM_UTC(ts, 'Europe/Berlin')convert a UTC timestamp to a time zone
EXTEND_TIME_WINDOW(table, retro, future)extend a table window beyond the reporting period, applies to the whole query

Frequently used tables

  • dsp_impressions and dsp_clicks for Amazon DSP contacts.
  • sponsored_ads_traffic for sponsored ads contacts.
  • conversions and amazon_attributed_events_by_conversion_time or ..._by_traffic_time for conversions.
  • Many tables have a _for_audiences variant for building audiences.

To save: print the page and choose "Save as PDF" as the destination. Header, footer and navigation are hidden in print.

Sources: Amazon Ads API: Data aggregation thresholds · Amazon Ads API: AMC SQL basics · Amazon Ads API: AMC SQL functions · Amazon Ads API: Data sources overview (retrieved 2026-10-09)

Keep reading: AMC SQL with AI · AMC timeline