What the API reads
Every endpoint of the Gloriads API — performance and comparisons, products, placements and spend off Amazon, impression share, every target's figures, search terms and n-grams, hours, Streaming TV, campaigns, keywords and ads, labels, templates, budgets and invoices, the Library, rules, strategies, Dayparting, activity, notifications and client reports — with its parameters, an example, and how fresh the figures are.
The API reads the same figures as your Gloriads screens. It never changes your account or your ads.
Endpoints
| Endpoint | What it returns |
|---|---|
GET /api/v1/account | Your subscription, whether Amazon Ads is connected, and up to which day the figures go. Call it first. |
GET /api/v1/marketplaces | Your connected marketplaces, with their currency, advertiser, target ACOS and how many campaigns, ad groups and ads each runs. |
GET /api/v1/summary | The totals of a period: the dashboard's cards, per marketplace and per ad type too. |
GET /api/v1/timeline | The same figures day by day or month by month: the dashboard's chart. |
GET /api/v1/reports/products | Each advertised product's figures over a period: the Products page. |
GET /api/v1/reports/placements | Each ad type's figures by placement, and the Sponsored Products spend off Amazon per marketplace. |
GET /api/v1/reports/impression-share | Each search's impression share and your rank on it, or each campaign's top-of-search impression share. |
GET /api/v1/reports/targets | Every keyword and target of one marketplace with its bid and its figures over 7, 14 or 30 days: the Targets page. |
GET /api/v1/reports/search-terms | What shoppers searched, per search or per n-gram, over 30 days to 6 years: the Search terms page. |
GET /api/v1/reports/hourly | The figures of each weekday and hour over a period: the Dayparting heat map. |
GET /api/v1/reports/budget-insights | Each campaign's time in budget last week, the sales Amazon estimates it missed, and Amazon's recommended budget. |
GET /api/v1/reports/attribution | What your ads and links outside Amazon sold on it (Amazon Attribution): totals, campaigns with ROAS, links and products. |
GET /api/v1/reports/streaming-tv | One marketplace's Streaming TV campaigns and their figures. |
GET /api/v1/reports/shopper-journeys | One marketplace's shopper journeys from Amazon Marketing Cloud, as last computed. |
GET /api/v1/campaigns | One marketplace's campaigns, with budget, targeting and state. |
GET /api/v1/ad-groups | One marketplace's ad groups, with their default bid. |
GET /api/v1/targets | One campaign's keywords and other targets, with match type and bid. |
GET /api/v1/ads | One campaign's ads: the products it advertises. |
GET /api/v1/labels | Your labels, the target ACOS each sets, and their campaigns. |
GET /api/v1/campaign-templates | Your campaign templates and template groups. |
GET /api/v1/campaign-templates/{template_id} | One template in full: its campaigns, keywords, bids and negatives. |
GET /api/v1/products | What you set on your products: campaign roles, « Keep clean », margin, phase, unit costs. |
GET /api/v1/amc/audiences | Your Amazon Marketing Cloud audiences and their sizes, per marketplace. |
GET /api/v1/budgets | Each marketplace's monthly budget, this month's spend and its pace. |
GET /api/v1/invoices | Amazon's invoices of each marketplace, checked against the reports. |
GET /api/v1/library/lists | Your Library's keyword and ASIN lists, and their folders. |
GET /api/v1/library/lists/{list_id} | One list with every entry. |
GET /api/v1/library/never-negate | Each advertiser's never-negate words and ASINs. |
GET /api/v1/rules | Your rules: on or off, where they act, their schedule, their last run. |
GET /api/v1/rules/settings | The settings every rule follows. |
GET /api/v1/rules/{rule_id} | One rule and what it does: its conditions and actions. |
GET /api/v1/rules/{rule_id}/runs | One rule's last 20 runs. |
GET /api/v1/strategies | Your strategies and their rules. |
GET /api/v1/rule-templates | Gloriads' ready-made rule templates and the ones you saved. |
GET /api/v1/dayparting/schedules | Your Dayparting schedules: their week of 7 × 24 hours and their campaigns. |
GET /api/v1/activity | Everything Gloriads did on Amazon, newest first. |
GET /api/v1/activity/{operation_id} | One operation. |
GET /api/v1/activity/{operation_id}/lines | What one operation created, changed or archived, line by line. |
GET /api/v1/notifications | Your latest notifications, newest first. |
GET /api/v1/client-reports | The reports you send your clients. |
Every parameter and every field is in the API reference, with a Try it button.
Periods
/summary, /timeline, /reports/products and /reports/placements cover a period. Send one of:
| Parameter | Example | Meaning |
|---|---|---|
range | last_30_days | today, yesterday, last_7_days, last_14_days, last_30_days, last_60_days, last_90_days, this_month, last_month, this_year, last_year, all_time |
start_date + end_date | 2026-09-01 and 2026-09-30 | Two days, both included, at most six years apart |
- Nothing sent:
last_30_days, like the dashboard. - A
rangecovers the same days as the dashboard's period, today included:last_30_daysis the 30 days ending today, andthis_monthandthis_yearrun through today. Today is not over, and Amazon credits a sale to its click days later, so the latest days can still grow. all_timestarts at the oldest day Gloriads holds and goes through today, like Lifetime on the dashboard.- To leave today out, send
start_dateandend_datewithend_date= yesterday. timezone(Europe/Paris,America/New_York…) decides which day "today" is. UTC by default.- Every answer repeats the days it covers in
period.
Compare two periods
Add compare to /summary, /timeline, /reports/products or /reports/placements, like Compare
to on the dashboard:
compare | Compared to |
|---|---|
previous_period | The same number of days just before. This month so far is compared with the same days of last month, and last month with the month before. |
same_period_last_year | The same dates one year earlier. |
The answer adds a comparison with the compared period's figures and, for spend,
sales, ACOS, impressions, clicks, CPC and purchases, how each changed:
"changes": {
"spend": { "kind": "change", "percent": 18.2, "direction": "up", "tone": "neutral" },
"acos": { "kind": "change", "percent": -6.5, "direction": "down", "tone": "good" }
}- Both periods are compared as asked, today included, like on the dashboard;
periodrepeats the days. kind: "new"means the figure was zero before;kind: "none"means there is nothing to compare (ACOS without sales).tonesays whether it is good news, like the dashboard's colors. Spend is alwaysneutral.all_timehas nothing before it:comparisonthen says why inunavailable.todayis compared with yesterday, or with the same date last year.- When Gloriads holds no history for the compared period, its figures are
nullandhistory_coveredisfalse.
Filters
| Parameter | Example | Keeps |
|---|---|---|
marketplaces | US,UK | These countries only (GB works too) |
ad_products | SPONSORED_PRODUCTS | SPONSORED_PRODUCTS, SPONSORED_BRANDS or SPONSORED_DISPLAY |
An unknown value is refused with a 400 that names it, never answered with zeros.
Totals of a period
curl "https://gloriads.com/api/v1/summary?range=last_month&marketplaces=US" \
-H "Authorization: Bearer YOUR_API_KEY"{
"period": { "start_date": "2026-09-01", "end_date": "2026-09-30", "range": "last_month", "timezone": "UTC" },
"currency": "USD",
"spend": 13140.53,
"sales": 46562.2,
"acos": 28.22,
"roas": 3.54,
"impressions": 3945723,
"clicks": 13973,
"ctr": 0.35,
"average_cpc": 0.94,
"purchases": 1479,
"conversion_rate": 10.58,
"by_marketplace": [ … ],
"by_ad_product": [ … ],
"meta": { "data_last_date": "2026-10-09", "history_covered": true, "truncated": false }
}acos,ctrandconversion_rateare percentages:28.22means 28.22 %.purchasescounts orders, like the console's Purchases, not units.- A ratio without its base (ACOS with no sale) is
null, never0.
Day by day or month by month
/timeline takes the same period and filters, and returns one point per day or
per month in data.
granularity=auto(the default) picks days up to 92 days, months beyond, like the dashboard's chart.granularity=dayis refused on a period longer than 92 days.- A day without any figure is left out.
Per product
/reports/products returns one row per advertised product (ASIN), sorted by
sort (spend by default) and order (desc by default).
product_id: nullgathers what Amazon ties to no product, mostly Sponsored Brands.titleis the product's name as Amazon's product report gives it, on the marketplace where it spent the most in the period. It isnullforproduct_id: null, and until Gloriads has received the account's product titles from Amazon.- The rows come in pages: see Limits and errors.
By placement and off Amazon
/reports/placements returns the figures of the dashboard's Performance by
placement and Spend off Amazon cards, in your account's currency (currency):
data: one row per ad type and placement:top_of_search,rest_of_search,product_pages,off_amazon(Sponsored Products only) andother.off_amazon.marketplaces: what Sponsored Products spent and sold off Amazon in each marketplace (other sites, apps and creators' content), with its share of the marketplace's Sponsored Products spend.- It takes
marketplacesandcompare, notad_products. - Gloriads reads these figures from Amazon's placement report once a day, while the
dashboard, the Campaigns page or the Reach on and off Amazon tool shows them.
meta.data_first_datesays the first day held; it isnulluntil the first report.
curl "https://gloriads.com/api/v1/reports/placements?range=last_30_days" \
-H "Authorization: Bearer $GLORIADS_API_KEY"Impression share
/reports/impression-share returns the shares the Search terms page, the Campaigns
page and the dashboard's Brand search share card show. Sponsored Products and
Sponsored Brands only: Amazon gives no share for Display.
level | One row per | Fields |
|---|---|---|
searches (default) | Search, marketplace and ad type | impression_share (your share of the ad impressions, in %), impression_rank (1 = you get the most impressions), impressions, clicks, is_brand_search |
campaigns | Campaign | top_of_search_impression_share: your share of the impressions at the top of the first page of results, in % |
- Amazon gives a share over a whole period, never day by day. So instead of
range, send awindow:last_30_days(default),previous_30_days(the 30 days before),last_90_days,last_365_daysorall_time(the last 6 years). All end yesterday. Campaigns:last_30_daysandprevious_30_daysonly. - To see a drop, read
last_30_days, thenprevious_30_days. is_brand_search: the search holds a term of your never-negate keyword list, like the card.brand_only=truekeeps only those.contains=water bottlekeeps the searches containing that text.marketplace: null: Amazon gave the search on several marketplaces without saying which. Its shares are then inmarketplace_values, one per marketplace.- Gloriads asks Amazon again when the shares are over a day old. The first call for a
window may answer
"status": "preparing": call again aftermeta.retry_after_seconds.
curl "https://gloriads.com/api/v1/reports/impression-share?brand_only=true&sort=impression_share&order=asc" \
-H "Authorization: Bearer $GLORIADS_API_KEY"Every target's figures
/reports/targets returns the Targets page: every enabled
and paused keyword, product target, category, automatic group and Display audience of
one marketplace (marketplace_id), with its campaign and ad group, its bid, its
ad group's default_bid and the effective_bid, and its figures over the last days
(7, 14 or 30, the default).
curl "https://gloriads.com/api/v1/reports/targets?marketplace_id=3478512345678901&match_families=exact&without_sales=true&min_clicks=10" \
-H "Authorization: Bearer $GLORIADS_API_KEY"- Filters:
ad_products,states,match_families(broad,phrase,exact,asin,asinExpanded,category,closeMatch,looseMatch,substitutes,complements,theme,audience),campaign_ids,ad_group_id,contains,min_clicks,without_sales. sort:spend(default),sales,acos,roas,orders,clicks,cpc,impressions,ctr,cvrorbid.- Bids are in the marketplace's currency, figures in your account's (
meta.currency). - A target that spent nothing has zeros.
meta.figures_status: "waiting": the account's first daily target report is on its way, up to a day;figuresis thennull.
Search terms and n-grams
/reports/search-terms returns the Search terms page of
one marketplace: what shoppers typed before your Sponsored Products and Sponsored
Brands ads showed, over days = 30 (default), 90, 365 or 2190 (all time, 6 years).
group_by | One row per | Also |
|---|---|---|
search_term (default) | Search | is_exact_keyword, campaign_count, and places: every ad group that served it |
ngram | Word, or run of 2 or 3 words | words (its size) and search_count |
without_sales=truewithmin_clicks=10finds the words that cost without selling.words=1keeps single words.- Amounts are in the marketplace's own currency, like on the page.
meta.status: "preparing": Amazon prepares the period's report (a few minutes, up to an hour for 6 years). Call again later.
Hour by hour
/reports/hourly returns the week of the dashboard's Performance by hour card and
the Dayparting page's heat map: 168 cells (hours), Monday 0:00 first, each summing
that weekday and hour over the period, on each marketplace's own clock, and their
total.
- It takes
rangeorstart_date+end_date(the last 30 days by default). marketplace_idkeeps one marketplace; with it,campaign_idskeeps some of its campaigns (200 at most one by one; past that, their marketplace's hours).- Gloriads keeps the hours one year.
meta.status: "waiting": the first hourly report is on its way, up to a day.
Sales missed for lack of budget
/reports/budget-insights returns the Campaigns page's
three budget columns, one
row per active Sponsored Products and Sponsored Brands campaign.
| Field | What it means |
|---|---|
status | ran_out (it ran out of budget last week), in_budget, no_recent_week (Amazon's latest week is older: no figures), not_enough_data, no_estimate |
time_in_budget | The share of last week it stayed on, in % |
missed_sales_low, missed_sales_high | The sales Amazon estimates it missed, in the row's currency |
recommended_budget | The daily budget Amazon recommends (it can be lower than daily_budget) |
ran_out_only=truekeeps the campaigns that ran out.totalsadds up their missed sales per currency.sort:missed_sales(default, the low estimate),time_in_budgetorrecommended_budget.- Gloriads reads Amazon once a day. The first call may answer
"status": "not_read": call again in a few minutes.
curl "https://gloriads.com/api/v1/reports/budget-insights?ran_out_only=true" \
-H "Authorization: Bearer $GLORIADS_API_KEY"Sales from outside Amazon
/reports/attribution returns the Amazon Attribution
page's figures over a period (range or start_date + end_date, at most 13 months: what
Amazon keeps), in your account's currency.
| Field | What it means |
|---|---|
totals | Clicks, product page views, orders, units, sales, conversion, new-to-brand, brand halo, KENP pages, the Brand Referral Bonus Amazon estimates, and the spend you typed with its ROAS and cost per order |
campaigns | One row per campaign, the same figures |
links | One row per link (campaign, ad group, creative, publisher), 500 at most |
products | One row per product the links sold, 500 at most |
spend,roasandcost_per_orderarenullwhen no spend is typed.- These sales are already in your Amazon sales: never add them to the other reports.
meta.any_figures_keptisfalsewhile no tagged link was clicked.
curl "https://gloriads.com/api/v1/reports/attribution?range=last_30_days" \
-H "Authorization: Bearer $GLORIADS_API_KEY"Streaming TV
The other reports leave Streaming TV (TV ads on Prime Video and streaming apps)
out, like the dashboard. /reports/streaming-tv reads it from the Amazon report
your rules share, for one marketplace.
curl "https://gloriads.com/api/v1/reports/streaming-tv?marketplace_id=3478512345678901&range=last_30_days" \
-H "Authorization: Bearer YOUR_API_KEY"- A period of 365 days at most, within the last 6 years.
- The first call for a period may answer
"status": "pending"while Amazon makes the report, usually a few minutes. Call again aftermeta.retry_after_seconds. The report is then kept 3 hours. - Each campaign comes with its spend, impressions,
cpm(cost per 1,000 impressions), clicks, sales, purchases andunits_sold. - Amounts are in the marketplace's own currency, not in USD.
"status": "unavailable": Amazon does not offer Streaming TV to this account, for example a KDP author's.
Shopper journeys
/reports/shopper-journeys gives what the Shopper journeys
page last computed for one marketplace: the path to purchase, the time to
purchase, the keywords that open journeys and the new customers.
curl "https://gloriads.com/api/v1/reports/shopper-journeys?marketplace_id=3478512345678901&days=90" \
-H "Authorization: Bearer YOUR_API_KEY"days: 30, 90 (the default) or 365.- It never starts an analysis at Amazon:
"status": "computing"means some were never computed for that period (opening the page computes them),"not_open"that Amazon Marketing Cloud was never opened for that marketplace. - Shares go from 0 to 1. Amounts are in the marketplace's own currency.
- Amazon's results are confidential: keep them between you, your clients and the services that work for you.
Campaigns and ad groups
Both need marketplace_id: an id from /marketplaces.
curl "https://gloriads.com/api/v1/campaigns?marketplace_id=3478512345678901&states=ENABLED" \
-H "Authorization: Bearer YOUR_API_KEY"- They list enabled and paused campaigns of Sponsored Products, Sponsored Brands and Display. Archived ones are never listed.
- Budgets and bids are in the marketplace's own currency (
currency_codein/marketplaces). provenancesays whether Gloriads created the campaign, changed it, or never touched it.labelslists the names of your labels on a campaign.goalgives the target ACOS a campaign or an ad group aims at today (target_acos, in percent) and where it comes from (source:ad_group,campaign,labelwith itslabelname, ormarketplace), in the order of Campaign goals;nullwhen no target is set./ad-groups?campaign_id=…keeps one campaign's ad groups.- Up to 1,000 rows per page (100 by default).
Keywords, targets and ads
/targets and /ads list what is inside one campaign. Both need
marketplace_id and campaign_id; ad_group_id keeps one of its ad groups.
curl "https://gloriads.com/api/v1/targets?marketplace_id=3478512345678901&campaign_id=28430987654321" \
-H "Authorization: Bearer YOUR_API_KEY"/targetslists each keyword with itsmatch_type(EXACT,PHRASE,BROAD), the product targets (ASINs), categories, auto-targeting groups and negatives, with theirbidand state.bid: nullmeans it bids the ad group's default bid./adslists each ad with the products it advertises (product_ids).- They are read from Amazon at the moment you ask, and carry no figures.
- Sponsored Products, Sponsored Brands and Display. Archived ones are never listed.
- Up to 1,000 rows per page (100 by default).
Labels, templates and products
/labelslists your labels: the target ACOS each sets (target_acos, withtarget_start_dateandtarget_end_datewhen it is dated) and thecampaign_idscarrying it, per marketplace. Each marketplace's own target ACOS istarget_acosin/marketplaces./campaign-templateslists your campaign templates and template groups;/campaign-templates/{template_id}gives one in full: a Sponsored Products template's campaigns (names, budget, bid strategy, placements, keywords and targets with their bids, negatives), or a Brands, Display or Streaming TV template's settings./productslists what you told Gloriads about each product: the role of each of its campaigns, Keep the structure clean, and its margin, phase, stock, label and unit costs. Each product's figures are in/reports/products./amc/audienceslists, per marketplace, its Amazon Marketing Cloud workspace, the size of each audience Gloriads can build and the audiences created, with theaudience_ida campaign takes. It never opens a workspace nor starts a count.- Lists, labels and templates belong to one advertiser:
advertiser_id(from/marketplaces) keeps one advertiser's.
Budgets and invoices
/budgetsreturns the Budgets page: each marketplace's monthly budget, what itspentthis month in its own currency, itspace(expectedso far,projectedend of month,statusunder,on_track,overorreached), and whether Gloriads pauses it at the cap.totalsadds up the budgets per currency./invoicesreturns Amazon's invoices of each marketplace over the last 14 months (billed,digital_services_tax,vat,credits,true_cost) and the check of the reports against those of the last 90 days.meta.status: "reading": Gloriads is reading them from Amazon, call again in a few minutes.
The Library
/library/listslists your Library's keyword and ASIN lists and their folders;kind=keywordsorkind=asinskeeps one kind./library/lists/{list_id}gives one list with every entry./library/never-negategives each advertiser's never-negate words and ASINs: what Gloriads never sends as a negative.
Rules and activity
/ruleslists every rule, most recently edited first;/rules/{rule_id}gives one, with the objects it leaves alone for good./rules/settingsgives the settings every rule follows: who wins when two rules disagree, the last day of figures they read, how long new campaigns are left alone./strategieslists your strategies and their rules;/rule-templateslists Gloriads' ready-made rule templates (source=gloriads) and the ones you saved (source=account)./dayparting/scheduleslists your Dayparting schedules: their week of 7 × 24 hours (100 = normal, 0 = paused, 10 to 900 = every bid at that percentage), their campaigns, whether they are on and when they change next./rules/{rule_id}/runsshows what each recent run looked at and changed. Tests are not listed./activitylists every operation Gloriads ran on Amazon: a campaign created or copied, products added, a rule's changes, an undo. A rule's run appears once per marketplace, with the samerule_run_id. A change of more than 5,000 lines (a big copy, a bulk edit, a dayparting change…) appears as its parts of up to 5,000 lines: each later part names the first inpart_of, and Activity shows them as one line.tool=rulekeeps only the rules'./activity/{operation_id}reads one operation: poll it to follow one still running./activity/{operation_id}/lineslists what the operation did, line by line: the campaign, ad group, ad or target, whether it was created, changed or archived, each value before and after, and Amazon's error when a line failed. Up to 500 lines per page (100 by default): one operation can hold 5,000. A Dayparting change holds one line per campaign, its bids counted inbids(how many, and from which percentage to which); a bid Amazon refused is a line of its own. Its lines are kept 30 days.
What a rule does
/rules/{rule_id} gives the rule's logic: what it does, in a format of the API
that changes only by adding. /rules?include_logic=true adds it to every rule, and
each /rule-templates entry carries one too.
"logic": {
"format": 1,
"level": "target",
"branches": [
{
"formula": "clicks (last 30 days) >= 20 AND orders (last 30 days) = 0",
"if": { "items": [ … ], "connectors": ["and"] },
"then": [{ "type": "set_state", "state": "PAUSED" }]
}
],
"else": [],
"scope": { … },
"schedule": { "every": 1, "unit": "days", "time": "07:00", … },
"options": { "cooldown_hours": 72, … }
}branchesare the IF, then each ELSE IF, in order: an object takes the first branch it matches.elseis what the others get.formulareads the IF in one line.ifholds it in detail:items(a condition, or a group in brackets), each can be negated (negate), joined byconnectors. AND binds tighter than OR:A AND B OR Creads(A AND B) OR C.- A condition compares a
metricover aperiod(last_days,days_before,same_days_last_year,dates,lifetime), or reads anattribute(text,choice,flag). It compares with a number, an amount per currency, another value times a factor, or thetarget_acostimes a factor. - An action has a
type:set_state,set_bid,change_bid,set_budget,change_budget,set_bid_strategy,set_placement,change_placement,add_keyword,add_negative_keyword,add_product_target,add_negative_product,notify,set_bid_from_target_acos,step_bid_to_target_acos,set_budget_from_spend,raise_budget_to_amazon_recommendation,set_off_amazon_reach,pause_product_campaign,change_product_bids,rename. Amounts go per currency ({ "USD": 0.5 }). - New metrics, attributes and action types can appear: skip what you do not know.
Notifications and client reports
/notificationslists your latest notifications, newest first, each with itscategory(ads,rules,budgets,products) andseverity.unread_only=truekeeps the unread ones. Reading them here never marks them read./client-reportslists the reports you send your clients: period, blocks, schedule and the newest edition. Never the recipients' addresses nor the private links.
How fresh the figures are
- They are your dashboard's figures, read from the same data with the same code.
- Performance amounts are in your account's currency (the
currencyfield), each day converted at its own exchange rate. - Amazon credits sales several days after the click, so the last days of a
period still grow for a while.
meta.data_last_datesays up to which day the figures go. - Campaigns are read from Amazon at most every 30 minutes per marketplace.
meta.synced_atsays when. On the very first call for a marketplace the list may be empty withmeta.syncing: true: call again a minute later. - Product figures refresh once a day. A period that starts before the history
Gloriads holds returns
meta.history_covered: false. - Keywords, targets and ads are read live from Amazon, at each call:
meta.read_atsays when. - Streaming TV figures are kept 3 hours after Amazon makes their report:
meta.report_ready_atsays when.