# Affiliateo, full reference > Affiliateo is an all-in-one platform where businesses launch affiliate programs for their web and mobile apps, sell products with built-in checkout, manage their paid ads (Meta, Google, TikTok, Apple Search Ads, Snapchat, X Ads) with true click-to-revenue ROAS, and pay affiliates worldwide. Affiliates browse a marketplace of programs, promote with tracked links, and withdraw earnings globally. Stripe is the merchant of record; tracking SDKs exist for web, iOS (Swift), Android (Kotlin), Flutter, and React Native. This is the expanded companion to https://affiliateo.com/llms.txt. It exists so a model can answer questions about Affiliateo from one fetch. The endpoint list, error codes and ad object levels below are generated from the same constants the running API serves, so they cannot drift from the product. ## Core concepts **Business.** A workspace. An account can own up to 3. One account wallet spans all of them. **App.** What a business installs into a workspace to run something: Affiliate, Clipping, Web Traffic, Collab, Meta Ads, Google Ads, TikTok Ads, Apple Search Ads, Snapchat Ads, Calendar and more. An app's URL is `/{business}/{appSlug}` and slugs are globally unique. **Product.** What a business's storefront sells: a course, a membership, a download, a service. Up to four plans (one-time or subscription, each with its own price, interval, setup fee, bullets, button label, accent, affiliate commission and stock cap) and a sales page built from twenty-two elements: text (one element holds a whole passage, each line with its own size, alignment and indent), image, hero media, video, carousel, checklist, plan cards, a second buy button, a plain button, a countdown, a sticky bar, a form, a booking calendar, reviews, a quote, numbers, a comparison table, FAQ, cards with optional pictures, dividers, spacers and rows. The form and the booking calendar are the two a visitor can USE without an account: a form collects whatever boxes the owner chose (email always), a booking calendar offers the owner's open times in the visitor's own time zone and books one. Both land in the business's Leads app and at `GET …/leads`, each with the affiliate who sent the visitor. Affiliateo does not host the call. The owner picks how it happens with `meetingType`: `google_meet` (a Google Meet room of its own for every call, made on the Google Calendar the owner connected in the Leads app, which also keeps their busy times off the page; only start and end times are ever read from it; `meetingProvider: "google_meet"` is the older spelling), `link` (their own Zoom or Teams room, the same link for everyone), `phone` (THE OWNER CALLS THE VISITOR on the number the form collects, so the owner's own number is never sent; a required phone field is added to the form) or `in_person` (an address). The link or address is never sent to the page and reaches the visitor in their emails. A booking calendar also takes days off (closed dates), a limit on calls per day, one reminder email to the visitor before the call, the owner's own plain-text note inside the confirmation email (no links), a thank-you page to send the visitor to, and `daysAhead`, which cannot be lowered past a call that is already booked through it (the save answers 409 and names that call's date). The visitor can move or cancel their own call from the link in that email at any moment until it starts (there is no cutoff); a moved call keeps its lead id, its affiliate and that link, a cancel emails both the visitor and the owner, and a visitor who lost the email gets the link sent again from the booking element ("Already booked?"), only ever to the address the call was booked with and with the same answer for every address. Through the API (and the MCP tools `list_leads`, `get_lead`, `list_booking_slots`, `reschedule_booking`, `cancel_booking`, `mark_no_show`, `delete_lead`) an owner's key reads every lead with its contact details, answers and a `status` (new, scheduled, completed, no_show, cancelled), `?status=upcoming` for the diary with the next call first, `?email=` for one person, date windows on when a lead was made, when a call starts, when it was cancelled or when it was moved (with `today`, `tomorrow` and `yesterday` read in `?timezone=`, which is what a daily briefing wants), the open times of a booking element (`…/leads/slots`, or with `?lead=` the times one call could move to), and can move a call or cancel it (both email the visitor), mark a no-show (which tells nobody) or erase a person (which tells nobody). A lead is never created through the API. Its URL is `/{business}/{slug}`, a surface it shares with apps, so a product slug must be free of the business's apps too. Pricing IS the plan list (an empty list is a free product; always USD), units sold are COUNTED from succeeded payments rather than stored, and re-pricing or removing a subscription plan cancels its active subscribers. See /docs/products and the Products endpoints below. **Invoice.** A bill a business owner sends one person by email: from the dashboard's Invoices row, from a lead's Send invoice button ("we had the call, here is the bill"), or `POST …/invoices` (the MCP tools `list_invoices`, `get_invoice`, `create_invoice`, `void_invoice`, `resend_invoice`, `stop_invoice_subscription`). A name, an address, a USD amount from fifty cents to a hundred thousand dollars, a due date, a note, and an optional product. Creating is sending: there is no draft. The person pays on `/pay/{inv_id}` by card, Link or US bank account with NO account needed; one is made for the address they pay with at that moment, exactly as on a sales page, and whoever pays is who the access and the receipt go to. A paid bill is a sale like any other: it appears in Payments, the seller is credited with the same 1% platform fee and the same hold, the payer becomes a member (with the product's access when the bill named one, never touching an active plan), and the affiliate who sent the person earns the normal commission (the payer's account attribution first, then a lead under their email, then the affiliate the bill carries from the lead it was made from). The link stays payable after the due date until the owner voids it; overdue is only a label. One open bill per address at a time (a second is refused as invoice_already_open until the first is paid or voided), and a business may send 30 an hour and 200 a day. What a bill is for is a product (the payer gets its access), a custom product (a name typed on the bill, "Website build", with nothing behind it) or nothing. A bill is one-time, or a subscription: it charges its amount once when paid and then charges the payer's saved method a recurring amount every interval (weekly, monthly, every 3 or 6 months, yearly) starting one interval after the payment, until the owner (`POST …/invoices/{id}/stop`, `stop_invoice_subscription`) or the payer (from the pay page) stops it; it then runs to the end of the paid period. "$100 now, then $30 a month" is an amount of 10000 cents with a recurring amount of 3000. Each renewal is a sale too, with the affiliate's renewal commission. **Affiliate.** A person promoting an app or a storefront with a tracked link. These are two separate programs with two separate link formats and they are never merged: `?ref=` is an affiliate sale link, `?a=` is a partner signup link. **One Affiliate app covers a website, a mobile app, or both**, on a single app id with a single referral link that routes by device (iOS to the App Store, Android to the Play Store, everything else to the website), unless the owner turns on `phones_to_website` to send phones to the website too (it needs the web rail: the API refuses to turn it on for an app that does not sell on its website; an app install that follows is still matched to the click). What the app can do is decided by which providers are connected, not by the app type, and a second rail can be added later by editing the app. The type is always `affiliate_app`, one name, sent and read back. Never infer rails from it. ## Attribution The difference between the two rails is real and worth stating plainly: - **Web is deterministic.** The `?ref=` code is stored first-party on the merchant's own domain and read back at checkout. - **Mobile is probabilistic.** The App Store strips every URL parameter, so a fresh install is matched to a click within the last 7 days by IP/subnet, OS, country and recency. Expect some mobile installs to go unattributed. - **One customer on two devices is linked through `identify`.** A new purchase with no affiliate on its own device is credited to the latest affiliate click the same identified user made on another device, within the usual 60 days. It only fills sales that would have been organic. See "One customer, two devices" below. **Ads attribution is first-party.** Ad clicks are stamped on visitors and locked onto conversions at sale time, so campaign ROAS reflects real attributed revenue rather than the network's own claim. ## Commissions and money Maximum commission is **70% on store-mediated sales** (Apple in-app purchases, Google Play, RevenueCat, Adapty, where the stores take up to 30% off the top) and **90% everywhere else** (Stripe and every web provider). Per-product rates are capped per catalogue when saved; the app default rate and per-affiliate deals are capped at the moment of the sale, where the rail is known. A purchase made on a WEBSITE that RevenueCat or Adapty reports (RevenueCat's own Web Billing, or a Stripe or Paddle purchase they track) has no store cut, so that sale is capped at 90%, not 70%; a store purchase through the same provider stays capped at 70%. Commissions are **locked at conversion time**: a customer's original rate survives renewals. There is **one wallet per account**, not per business. Withdrawals need identity verification and have a $20 minimum. Refunds and chargebacks reverse commissions as separate negative rows. ### The budget-app platform fee Budget apps (**clipping, web traffic, collab**) carry their 1% platform fee at **payout time**, not at funding time. Funding is free: every cent funded becomes the app's budget. Each payout then costs the budget the creator's amount **plus 1% of it**, taken from the same budget and credited to Affiliateo in the same transaction. A $100 payout costs the budget $101, so plan a budget as intended payouts times 1.01. A payout the remaining budget cannot cover **together with its fee** is refused outright rather than part-paid, so pay attention to the numbers below before offering an amount. Nothing is ever charged on money that did not reach a creator: ending an app refunds the whole unspent remainder and keeps no fee. Because of that, `budget_cents` is **gross**. It holds the creator money and the fees still to come, and `budget_cents` minus `spent_cents` is the **uncommitted money**, not what a creator can be offered. The derived, read-only `payable_capacity_cents` is the largest single payout that remainder can still cover with its fee. Read it instead of subtracting. `payable_capacity_cents` sits next to `budget_cents`/`spent_cents` on `GET /api/v1/businesses/{slug}/apps/{appId}` (in its settings object) and on the public discover feed. The apps **list** is a thin id/name/type/status index and carries no money fields, so read the single-app endpoint for a budget app's numbers. Affiliate apps are unaffected: their 1% is per conversion and was always collected at payout. ### The partner program Every account has a personal invite link, in three interchangeable forms: `/i/{code}` (an opaque permanent code), `/i/{username}` (the same thing, readable, breaks on a username change), and `?a={username}` appended to **any** page URL, so a partner can link straight to a business, an app or a blog post instead of the homepage. A signup through any of them is stamped onto the new account **permanently and single-level**. From then on the referrer earns **50% of every platform fee Affiliateo collects** from that account: sales on Affiliateo, app sales, budget-app payouts and ad spend alike. At the standard 1% fee that is 0.5% of what the referred account sells. The cut always comes out of Affiliateo's own fee - never out of the seller's net, the creator's payout, or any affiliate's commission on the same sale. Attribution is remembered for 30 days from the click and applied once, at signup; the most recent partner link clicked wins; referring your own account does not count. ### The partner-link fee trial An account that signed up through a partner link pays **no platform fee at all for its first 7 days**, counted from signup rather than from its first sale. It covers every fee surface without exception: sales, subscriptions, one-time products, budget-app payouts and ad spend. **Nothing is deferred to the end of the trial.** A fee falling inside the window is not postponed, it is never charged. For ad spend specifically this matters, because ad fees settle roughly two days behind the spend they bill: the trial is priced **per spend DAY**, not by the clock at the moment the meter runs, so a day inside the window stays free even when a sync or the daily cron settles it after the trial has already ended. Because the referrer's share is half of what Affiliateo **actually collects**, a referred account earns its referrer nothing during those 7 days. The 50% begins the moment the trial ends and then runs for the life of the account. ## Paid ads Six networks, one shape: Meta, Google, TikTok, Apple Search Ads, Snapchat and X Ads. For each, Affiliateo READS stats (spend, clicks, conversions, the network's own reported revenue), WRITES campaign management, and answers two cross-network questions identically on all six: **which ids a field can take** (`/ads/lookups`) and **where the money actually went** (`/ads/breakdowns`, split by age, geo, device, placement, hour and the rest). Both are covered below. Every ad row carries **two revenue views side by side**: verified revenue and ROAS from first-party tracked sales, and the network's own reported conversions and claimed ROAS. They disagree, and seeing both is the point. `customers` is the **people who paid** money that still stands, counted once across their devices and all time: a free trial start, a $0 row, a free grant or a sale refunded in full makes nobody a customer, and a trial that turned paid does. `trials` is the people who started a free trial, all time (a trial that turned paid is in both). CAC is `spendMicros` / `customers` and LTV per customer is `lifetimeRevenueMicros` / `customers`. Campaign rows and the totals also carry `funnel`, what the campaign did **inside the app over the window** (null on a campaign that belongs to none of the business's apps): `downloads` (phones first opened from it, Affiliateo's own count beside the network's installs), `trials` started, `paying` (people whose first payment fell in the window), `trialedWithin7Days` and `paidWithin30Days` (the install cohort: of the window's downloads, those that started a free trial within 7 days of first open, and whose person paid for the first time within 30; the trial rate and paid rate are these over `downloads`), `revenueD7Micros` and `revenueD30Micros` (what the window's downloads paid within 7 and 30 days of installing; `d7Complete` and `d30Complete` are false while some have not had their days yet) and `paybackDays` (days after install until they paid back the spend, null until they have). Cost per trial is `spendMicros` / `funnel.trials` and day 7 ROAS `revenueD7Micros` / `spendMicros`; `funnel.trialsCanceled` counts the trials whose person turned off renewal before the first charge. `funnel.downloadsMeasured` is false when none of the campaign's apps has the Affiliateo SDK: nothing then ties an install or a sale to the ad, so downloads, the trial and paid rates, day 7 and day 30 ROAS and payback are unknown (show dashes, not 0). ONE LIMIT ON IPHONE: an app install ad on Meta, TikTok or Snapchat links straight to the App Store, which tells the app nothing about the ad, so Affiliateo cannot tie those downloads, trials and payments to the campaign: its `funnel` stays null, the sales read as organic, and only the network's own installs show. Apple Ads campaigns do fill in (Apple names the campaign of each install), and so can a campaign that sends people to the business's website first, when they install within 7 days. For ROAS at another day, `funnel.revenueWithinDaysMicros` and `funnel.completeWithinDays` are keyed `"1"`, `"2"`, `"4"`, `"7"` and `"30"`: what the window's downloads paid within that many days of first open, and whether every one has had them (day N ROAS is `revenueWithinDaysMicros[N]` / `spendMicros`). On Apple Ads the ad group and keyword rows carry the same as `cohort` (`downloads`, `downloadsMeasured`, `revenueWithinDaysMicros`, `completeWithinDays`) for the installs Apple credited to them; a Search Match install counts on its ad group only. Every row and the totals carry `click_to_install_rate`: the network's installs column over its clicks, in percent, both the network's own counting (installs on Meta and Apple Ads, the optimised event on TikTok and Google, purchases on Snapchat, the web event tag on X). `?app=` narrows the whole answer to one of the business's apps, and `app_funnel` lists the apps and each one's part. On **Google**, every row and the totals also carry `auctionShare`: how much of the auction was won, and **why the rest was missed**. `auctionShare.limitedBy` is the actionable field: `"rank"` means the bid or ad quality was too low to enter the auction (raise the bid), `"budget"` means the daily budget ran out (raise the budget). **The two have opposite fixes**, so neither should be advised without reading it. `auctionShare` is `null` on Meta, TikTok and Snapchat, which publish no equivalent and never will, because an auction-share number needs a fixed slate of competitors bidding on the same query, which is a search-results idea and not a feed one. Apple Search Ads has one, as a separate report at `/ads/impression-share`. It is `null` on Google too for the most recent day or two, because the estimate lags; that is a pending number, not a campaign that reached nobody. `approximate: true` means Google censored a contributing day: it reports anything under 10% as exactly `0.0999` and anything over 90% as `0.9001`, so the true share is **lower** and the true loss **higher** than shown. On **Google keyword rows, and nowhere else**, every row also carries `qualityScore`: Google's own 1-10 rating for that keyword (`score`) plus three buckets that name **which thing to fix**, each `BELOW_AVERAGE`, `AVERAGE` or `ABOVE_AVERAGE`. They are `expectedCtr` (will anyone click this ad), `adRelevance` (does the wording answer what was searched for) and `landingPage` (is the page behind the click worth arriving on), judged against the other advertisers who showed for the same search over the last 90 days. `ratedDays` is how many days of the window carried a rating. It is `null` on campaign, ad group and ad rows, `null` on the other four networks, which publish nothing like it, and `null` on a Google keyword Google has not rated yet, which is what happens when too few searches match it exactly. **That null is not a zero and not a bad score**: it is the absence of an opinion, and Google prints a dash for it in its own reports. **Read `qualityScore` before recommending a higher bid**, because it is the reason a rank-limited campaign is not automatically a campaign that should bid more. Ad Rank, which decides whether an ad enters the auction at all, is roughly the bid multiplied by the quality (Google's full list of inputs is longer, but those are the two halves an advertiser controls). So when `auctionShare.limitedBy` is `"rank"`, bidding more is one of two available answers and usually the expensive one. A low quality score says the cheaper half of the fix is the ad wording and the landing page, and it is also inflating what every click already costs, because an advertiser pays only what it takes to clear Google's threshold and beat the advertiser below them, and better quality lowers that amount. **A quality score is a rank, not a quantity, so it is NEVER AVERAGED.** A 30-day window holds up to 30 daily opinions, and Google never issued the 4.7 that averaging them would produce. A window keeps the most recent day Google actually **rated**, which is what Google's own reports show for a date range, and an unrated day never displaces a rated one however new it is, because a blank on the newest row is Google not having re-graded rather than the grade being withdrawn. On a **totals row `qualityScore` is always `null`**, on every network and every business, and that is a decision rather than a gap: a grade has no denominator to add up the way impression share does, and an impression-weighted mean would hand the whole account's grade to whichever keyword happened to get the traffic. Never quote a totals `qualityScore` as a figure of any kind. It means something on a keyword row and nowhere else, which is also the only row that names something to change. Two more shapes worth knowing: `score` can be `null` while the three buckets are filled, because Google keeps grading the parts of a keyword it has stopped issuing a number for, and which part is weak is the actionable half anyway; and `adRelevance` and `landingPage` began being collected when this shipped, so older days carry only `score` and `expectedCtr` and the other two fill in as the nightly sync re-pulls its window. On **Meta ad rows, and nowhere else**, every row also carries `creativeRating`: Meta's rank of that ad against the other ads competing for the same audience, split three ways so that it names **which part to fix**. `quality` is the creative itself, `engagement` is whether people interact once they have seen it, and `conversion` is whether that interaction turns into anything. An ad can be beautiful and convert nobody, and those two facts arrive as two different bands. Each leg is `BELOW_AVERAGE_10`, `BELOW_AVERAGE_20`, `BELOW_AVERAGE_35`, `AVERAGE` or `ABOVE_AVERAGE`, worst first. `ratedDays` is how many days of the window carried a real band, and `ratedOn` is the day the shown verdict came from. It is `null` on campaign and ad group rows and `null` on the other four networks: Google's `adStrength` is a different question (a checklist on an ad's own completeness rather than a rank against other advertisers) and it lives on the campaign tree, TikTok publishes no per-ad grade at all, and Snapchat and Apple Search Ads publish nothing of this shape. **There are three states here, not two, and that is the field's whole trap.** A band means act on it. `"UNKNOWN"` is Meta's own word and it is **not** an absence: Meta has SEEN the ad and declines to rank it, because the ad is under Meta's impression threshold. On a new ad that is every row, and it means **wait** rather than fix. `null` is the third state and a different fact: the question was never answered at all, because the row is on another network, or it predates these fields being collected, or Meta refused them. Reporting an `"UNKNOWN"` as a dash says "nothing is known" about an ad Meta has looked at, and reporting it as a grade invents a verdict Meta refused to give. **A ranking is an ordinal, so it is never averaged and never combined.** The distance from `BELOW_AVERAGE_10` to `BELOW_AVERAGE_20` is not a number, there is no denominator to recover and nothing to weight by. Inside one ad a 30-day window can hold up to 30 opinions, because Meta restates the rankings as delivery accumulates; the window keeps the most recent day, which is what Ads Manager shows for a date range, and a real band beats an `"UNKNOWN"` however new that `"UNKNOWN"` is, because Meta stops ranking an ad whose delivery has dried up and the last real verdict is more use than a fresher shrug. On a **totals row `creativeRating` is always `null`**, on every network and every business, for the reason `qualityScore` is: an ad account does not have a creative ranking, and any account-wide band would be one Meta never issued. On **TikTok, at every level and on the totals**, every row carries `tiktokEngagement`: what people did with the ad after they saw it. `likes`, `comments`, `shares`, `follows` and `profileVisits` are the five itemised interactions, `engagements` is TikTok's own total, `engagementRate` is a **percent, 0 to 100**, matching what TikTok Ads Manager prints rather than the 0-1 ratios `auctionShare` uses (the unit follows the network), and `impressions` and `days` are the context behind them. **Every rate carries its own denominator and `impressions` is not it.** A rate is built only from the days that reported its own numerator AND reported their own impressions, because a day TikTok never sized cannot be divided by, so `engagementRate` must never be re-derived as `engagements` ÷ `impressions`. The two agree only while TikTok reported every field on every day, which is the ordinary case and is exactly why the arithmetic looks like it works, and nothing in the payload names the day that broke it. **`engagements` is not the sum of the five legs**, because TikTok counts at least one interaction it does not break out, so it is read rather than derived, and deriving it from the parts under-reports it quietly. Each leg is `null` when TikTok never reported it, which is a different answer from a reported `0`: a `0` is a measured fact about the ad. **Both `impressions` fields carry that same rule and are `number | null`**: `null` means no day behind those counts ever reported its own impressions, so the size of the window is unknown while the counts beside it stay measured, and a day that reported a genuine `0` still comes back as `0`. Never print a `null` as 0 and never add it as 0. It is `null` on the other four networks. Two things follow from TikTok reporting these fields at campaign, ad group and ad level alike. A campaign row carries its own real numbers rather than the structural null Meta's rankings leave above ad level. And **a campaign must never be added to its own ad groups or its own ads**, which counts the same likes two or three times. **Unlike `qualityScore` and `creativeRating`, the totals row here is a real combined number rather than a declared null**, and the difference is the point. Those two are ordinals: a grade and a rank have no denominator, so a mean of them is invented and a weighted mean hands the account's verdict to whichever entity got the traffic. None of that applies to a count. Likes, shares, profile visits and video plays add across days and across entities exactly the way `impressions` adds, so the account-level figure is the honest one. Consistency with the two fields above would be the absent-versus-zero failure running backwards: a total saying "nothing is known" about something that was measured. **The video half is `null` when no video played, and that is not the same as zero plays. An API consumer that renders it as 0% will report a catastrophic hook rate on an image ad.** `tiktokEngagement.video` is an object **only** when a video actually ran, and `videoState` says which of two reasons it is missing for. `"no_video"` is MEASURED: TikTok reported the play counter and it stayed at zero against real impressions, which is exactly what an image or carousel ad looks like, so there is no hook rate and no completion curve to state rather than a row of zeros. `"unknown"` is not measured: the play counter was absent from the payload, or nothing was delivered at all, in which case zero plays proves nothing about whether a video exists. Read `videoState` before quoting any video number. When the block is there it is a funnel: `plays`, `watched2s`, `watched6s`, then the four quartiles `p25`, `p50`, `p75` and `p100`, each of them `{ views, rate }`, plus `averagePlaySeconds` and the block's own `impressions` and `days`. **The hook rate is `watched2s.rate`**: 2-second views over the impressions behind them, the share of the audience that was paid for which stayed two seconds. Every `rate` is divided by the impressions of the days that reported THAT mark and deliberately not by the window's impressions, so an image ad in the same account cannot dilute a video ad's hook rate. **The block's own `impressions` is context for the block rather than the divisor itself**, and `views` ÷ `video.impressions` therefore neither checks nor rebuilds a `rate`: `views` counts every day the mark was reported, while the rate counts only the days that also reported their own impressions. A totals row is where that is easiest to see, because the account's impressions include the image ads while the hook rate keeps the video ads' own. `averagePlaySeconds` is the mean seconds watched per play, weighted by each day's plays, and it is reconstructed rather than reported, because TikTok publishes the daily mean and not a total. **The funnel does not have to fall.** The 2 and 6 second marks are absolute durations while the quartiles are relative to the video's own length, so on anything shorter than 24 seconds the 25% mark is passed before the 6-second one and `p25` can legitimately exceed `watched6s`. That is a fact about the creative, not a bad number. On **Meta, TikTok and Snapchat, at every level those three publish** (campaign, ad set / ad group / ad squad, and ad), every row also carries `reach`: **people, not impressions**. It is the network's OWN de-duplicated headcount for that one entity, the frequency it published beside it, and on Meta the unique clickers behind the click column, published **one day or nothing**, because a range's reach is a question nothing stored can answer. It is `null` on **Google** and **Apple Search Ads**, and both of those nulls are permanent and correct rather than gaps: Google would publish one only if `metrics.unique_users` were requested and this integration requests nothing new, and Apple's fixed metric block carries no reach, no frequency and no unique-user metric anywhere. **`totals.reach` is ALWAYS `null`**, on every network and every business. **Reach is the one figure in this payload that must never be added to another one.** Every network de-duplicates people inside the window it was asked about, and `ad_stats` holds exactly one such window per row, a single day, so a day's reach is the answer to exactly the question that day was asked. That is why `reach` is a window object rather than a number, and why **`reach.single` is non-null IF AND ONLY IF exactly one date inside the requested range carried a figure** for that entity at that level. `single` is the only field that may ever be labelled as the window's reach. Adding days is provably wrong, and wrong in the flattering direction. On this live account 445 + 1,267 is 1,712 against a true two-day reach of **1,700**, and three campaign days of 445, 1,267 and 770 sum to 2,482, **a number no window ever equalled**. It does not reconcile up the object tree either, because each object is de-duplicated independently: one live Meta day with exactly one campaign, one ad set and one ad all delivering gave ad **757**, ad set **770**, campaign **770**, so a parent's reach is never built out of its children's rows. And it must never be added across entities at one level, because two campaigns can reach the same person and the overlap is an amount nothing stored records. That last refusal is stricter than an ordinal's: an ordinal has no denominator, while this one has a denominator that is **a set of people**. It is also why `totals.reach` is a declared null exactly like `totals.qualityScore`: `reach-metrics.ts` ships no merge function at all, so no code path can fill it, and that null must never be reported as zero reach, as "no data", or as a figure of any kind. **Never add reach across days, across levels, or across entities.** **There are four different nulls here and none of them is a zero.** (1) STRUCTURAL: the row is on `google` or `apple_search_ads`, which publish no de-duplicated metric at all. (2) NOT REPORTED: the row is on one of the three networks but no day in the window carried a figure, which happens on a Meta row from before the wide metric list (only 3 of 9 stored rows per level carry the extended fields, because the 2025-07 campaign predates it), on an account whose metric set TikTok or Snapchat narrowed, on a Snapchat night that fell back to the five-field core list after one refused field name, and on a TikTok day still inside the roughly 16-hour reach latency. (3) DECLARED: `totals.reach`. (4) **THE THIRD STATE, which is the one that catches people**: a NON-NULL `reach` whose `single` is `null` does not mean "no reach". It means more than one date carried a figure and there is no honest combined number, so `measuredDays` and `bestDay` are published instead. Never render that as 0 and never substitute `bestDay` for it. Separately, **a reported reach of 0 is a MEASURED day**: it counts toward `measuredDays` and renders as 0. Absent is the sync failing to say; 0 is the network saying nobody was reached. The fields: - `network` (`"meta" | "tiktok" | "snapchat"`) is which network de-duplicated these people, carried so the caveats above can be applied without re-deriving the network from the request. - `single` (`ReachDay | null`) is **the only field that may ever be labelled as the window's reach**. Non-null if and only if exactly one date inside the requested range carried a figure for this entity at this level. `null` with `measuredDays` above 1 is a refusal, not an absence. - `bestDay` (`ReachDay | null`) is the single largest day, carrying its own date. "This one day reached 1,267 people" is a true statement about a real window the network really did de-duplicate. On a tie the earlier date wins, so the same window renders the same answer whatever order the rows arrive in. It is **never** the range's reach, it must never be printed without its date, and it must never sit under a heading that calls it the range's reach. - `measuredDays` (`number`) counts **DAYS, never people**: how many distinct dates carried a reach figure, not how many days are in the selected range. A 7-day window where six days predate the field reports `1` and publishes `single`. Never render it as a headcount and never divide anything by it. - `estimated` (`boolean`) is true **on TikTok only**. TikTok says its reach and frequency are ESTIMATED while every other TikTok figure in the payload is exact, and TikTok's reach block also lags about sixteen hours, so the most recent day can legitimately carry no figure at all rather than a figure of zero. - `single.date` and `bestDay.date` (`string`, `YYYY-MM-DD`) are the `stat_date` these figures were de-duplicated over. **REQUIRED rather than optional**, so no renderer can print the number without the window it belongs to: a reach number without its day is a claim about a window nobody measured. - `single.reach` and `bestDay.reach` (`number`, in **people**) are the different people who saw the ad on that one date. `0` is a measured zero and renders as 0. - `single.frequency` and `bestDay.frequency` (`number | null`, **average times per person, not a percent**) are the network's OWN frequency for that same day, READ and never derived. Verified against Meta to six decimals: 519/445 = 1.166292, 1307/1267 = 1.031571 and 797/770 = 1.035065, matching Meta's own strings byte for byte. `null` when the row carried a reach figure and no frequency beside it, which is not a frequency of zero. - `single.uniqueClicks` and `bestDay.uniqueClicks` (`number | null`) are the people who clicked at least once that day, de-duplicated. **META ONLY**: it is Meta's `unique_clicks`. TikTok and Snapchat publish nothing of this shape, so `null` there is structural rather than a row coming up short. It sits just under the broad click count (35 against 36, 63 against 66), which is exactly what makes a summed version look plausible while being silently overstated, and it must never be added to, or compared against, the broad `clicks` column as though the two counted the same thing. **Never derive frequency as impressions over a summed reach.** Frequency's denominator is that one day's reach, and that denominator cannot be reconstructed from anything stored. One bad sum yields two wrong numbers pointing opposite ways, because an inflated reach understates how often people saw the ad. One naming trap goes with it: **Snapchat's wire word is `uniques`**. There is no field called reach anywhere on Snapchat, so an owner comparing this payload to Snapchat Ads Manager has to look under uniques, and a reader grepping the wire for "reach" on Snapchat finds nothing and reports absence forever. On **Meta, at all three levels and on the totals**, every row also carries `metaExtras`: Meta's post-click funnel (link clicks, landing page views, outbound clicks), its five itemised engagement legs, its video retention curve **divided by PLAYS rather than impressions**, and the attribution label that makes every conversion number on the row readable. It is present at campaign, ad set and ad alike, because `meta.ts` sends the same `INSIGHT_METRICS` unchanged at every level, so a campaign row carries real numbers here rather than the structural null Meta's rankings leave above ad level. On totals it is a **real combined value**, merged across entities at ONE level. It is `null` on TikTok, Google, Snapchat and Apple Search Ads. **Three separate absences, and none is a zero.** The object itself is `null` when the row is not Meta, and `null` when no row in the window carried any of these fields, in which case a consumer should render no block at all rather than a grid of dashes. **Inside** a non-null object every leg is independently nullable, and there `null` means "Meta never mentioned it" while `0` means "Meta reported none". That distinction is the common case on this network rather than the edge one: live, 9 rows per level of which exactly 3 carry the extended fields, because the 2025-07 campaign predates the wide metric list. Those 6 older rows answer `null` for `linkClicks`, `outboundClicks`, `attribution`, `accountCurrency` and all six video fields while still carrying a full engagement set, because `actions` has been requested since the start. An ad nobody commented on reports `comments: 0`; an old row reports `comments: null`. Filling those nulls with 0 does not report a quiet ad, it reports an ad that drove nobody to the site. **A measured no-video verdict is NOT a null object**: the object stays, with `video: null` and `videoState: "no_video"`, because "this ad has no video" is an answer the payload is meant to state. The funnel and the engagement legs: - `linkClicks` (`number | null`) is Ads Manager's "Link clicks", and what an advertiser MEANS by a click: clicks on links that lead to your destination. It is the scalar `inline_link_clicks` and deliberately NOT `actions[link_click]`; the two are near identical and are not the same measurement (live, one entity read 52/54/52 against 52/52/54 across the three levels, because Meta restates between the three sequential calls). **It is also not the Clicks column already on the dashboard**, which is Meta's broad `clicks`, counts likes, comments and media expands too, and is always the larger number. - `landingPageViews` (`number | null`) is pages that actually loaded after the click. The drop from `linkClicks` to this is the single most actionable thing Meta gives away free: live, 69 link clicks against 49 landing page views is a 29% loss **on the page** and not on the creative, which are two very different fixes that look identical from a conversion count alone. - `outboundClicks` (`number | null`) is clicks that left Meta entirely, read out of an array of `{action_type, value}` whose inner type is `outbound_click`, the one array on Meta whose inner type is not `video_view`. - `postEngagements` (`number | null`) is Meta's OWN total and **a rollup that provably contains the legs listed beside it**. Measured, not feared: on the live rows `post_engagement` equals `link_click + post_reaction + post_save + post + video_view` EXACTLY (9+62+1+3+272 = 347; 10+78+2+1+329+2 = 422; 69+849 = 918). Never add it to `linkClicks`, `reactions`, `saves`, `shares` or `videoViews`: a naive total over one live day reports 1,885 "actions" where 918 interactions happened. - `reactions` (`number | null`) is likes and other reactions, from `actions[post_reaction]`. - `comments` (`number | null`) is comments on the ad, from `actions[comment]`. - `shares` (`number | null`) is shares. On the wire this is the BARE action type `post`, a plain noun that is the share count and not a rollup, and the single easiest name in the payload to misread. - `saves` (`number | null`) is saves, from `actions[onsite_conversion.post_save]`. - `videoViews` (`number | null`) is Meta's **3-second plays**, from `actions[video_view]`, across EVERY day in the window. Distinct from `video.plays`, which counts only the video days and is the rate divisor. - `impressions` (`number | null`) is the window's own impressions taken from these same rows rather than from a caller. `null` when no day stated it, which is not zero. - `days` (`number`, in days) is the DISTINCT dates that contributed anything. On a merge it is the **union, never a sum**: three ads each measured on the same three days is a three-day window, not a nine-day one. `video` (`MetaVideoRetention | null`) is the retention curve and is non-null **if and only if** `videoState` is `"played"`. `videoState` (`"played" | "no_video" | "unknown"`) says why the video half is absent when it is: `"no_video"` is MEASURED, meaning that on at least one day Meta reported the play counter, it stayed at zero, and THAT SAME DAY delivered impressions; `"unknown"` means we cannot say either way, and on Meta it is the COMMON answer for an image ad, because Meta omits an action type entirely rather than sending a zero for it. **Never render an absent `video` block as 0%. Read `videoState` first**, and never read `"unknown"` as `"no_video"`. - `video.p25`, `video.p50`, `video.p75` and `video.p100` (`MetaRetentionPoint | null`) are the four quartiles of the curve, **relative to the video's own length**. `null` when Meta never reported that mark, which stays different from a mark reporting 0 views. - `video.thruPlays` (`MetaRetentionPoint | null`) is ThruPlays: played to completion OR for at least 15 seconds. **Not a fifth quartile**, because it is an absolute rule rather than a point on the curve, so it need not fall below `p100`. Live, ThruPlays 150 sits BELOW `p25`'s 278 on a creative whose average play time is 9 seconds. The curve does not have to fall, and a crossover is not a bad number. - `video.*.views` (`number`) is every day that reported this mark, and the count a consumer should display. - `video.*.rate` (`number | null`) is `rateViews` over `rateBase`, unrounded on purpose, and **a PERCENT 0 to 100** (60% is 60, not 0.6; treating one as a 0-1 fraction is a silent 100x). `null` when there is nothing honest to divide by. - `video.*.rateViews` (`number`) is the part of `views` that landed on a day which ALSO reported the play count. Always a number, possibly 0. It is exposed so the pair can be PRINTED ("600 of 1,000 plays, 60%") rather than inferred. - `video.*.rateBase` (`number | null`) is plays summed over those same days, which is the divisor the rate really used. `null` when no day reported both, which is a different fact from a base of zero. - `video.plays` (`number | null`, in 3-second plays) is `actions[video_view]` summed over the days a video RAN, and **the denominator every rate above was divided by**. Deliberately not the window's impressions and deliberately not the top-level `videoViews`. `null` when no video day ever reported a play count, which is not 0. - `video.averagePlaySeconds` (`number | null`, in seconds per play) is the mean seconds watched per play across the window, WEIGHTED by each day's plays. Meta publishes only the daily mean (live values 9, 7, 7) and never a total, so the total is reconstructed as mean times plays, summed, divided by summed plays. A plain mean of daily means would weight a 5-play day the same as a 500-play one. - `video.days` (`number`, in days) is the DISTINCT dates on which a video ran. It unions rather than adds across entities. **The video rates are divided by PLAYS, not by impressions**, which is the OPPOSITE basis to TikTok's card, whose rates divide by impressions: the unit and the basis follow the network, not this dashboard. And `views` and `rateViews` are different numbers whenever Meta reported a quartile on a day it never reported a play count, so `views` ÷ `plays` neither checks nor rebuilds `rate`. Read the rate; print the pair. **There is no hook rate on Meta and one must not be invented**: Meta's 2-second view count is not among the requested fields, and ThruPlays is not a stand-in, because it means the video finished or ran 15 seconds, which is the far END of the curve rather than its start, so putting it under a hook-rate heading answers the opposite question in the same words. The label and the currency: - `attribution` (`MetaAttribution | null`) is the attribution windows Meta actually used for every conversion number on the row. **A LABEL, never a quantity.** `null` when no row stated it, which leaves the Reported column UNLABELLED rather than wrong. - `attribution.settings` (`string[]`) is distinct, sorted, verbatim as Meta spelled them. The live value is `1d_view_7d_click`, **VIEW FIRST THEN CLICK**; the intuitive spelling `7d_click_1d_view` does not appear anywhere, so a parser matching the click-first form silently finds nothing. Nothing parses it: it is carried through so it reads exactly as it does in Ads Manager. - `attribution.mixed` (`boolean`) is true at two or more settings. It means the conversion numbers in this window were NOT all measured the same way and cannot be compared to each other directly. Meta has silently applied each ad set's own setting since 2025-06-10. - `accountCurrency` (`string | null`) is the single currency every contributing row agreed on, upper-cased ISO-4217. It is a free FX cross-check: `ad_stats.currency` is written from the accounts listing rather than from these rows, so a disagreement means the conversion to USD was done against the wrong currency. `null` when nobody said, AND `null` when two rows disagreed. - `currencyMixed` (`boolean`) is true when contributing rows stated two different currencies. An ALARM rather than a display choice: a mixed account has no single currency, and a picked one is a money bug with no other symptom. `attribution` is never summed, never averaged and **never newest-wins**: a window holding two settings has no correct single value, so both are listed, and picking one silently relabels every conversion number beside it. `currencyMixed: false` with `accountCurrency: null` must NOT be read as "verified", because nothing was said. Warn on `currencyMixed: true`, stay silent on false, never print a tick. And because Meta sends the same `INSIGHT_METRICS` at all three levels, **never add a campaign to its own ad sets or its own ads**: that counts the same landing page view two or three times. Summing across DAYS inside one entity is honest, and so is summing across ENTITIES AT ONE LEVEL. On **Google, at all four levels and on the totals**, every row also carries `googleExtras`: the Google metrics requested since the Google build and read back by nobody. Interactions, all conversions, view-through conversions, conversions by conversion date, an interaction rate and a cost per interaction derived from our own columns, the top and absolute-top position pair with the impressions they were divided by, and the Display impression share in its single-day form. It is present at campaign, ad group, keyword and ad alike, because `statQuery` appends `COMMON_METRICS` unconditionally and the ad level adds nothing of its own. The ONE exception is `contentImpressionShare`, which is **campaign level only** and structurally absent below it. A Performance Max advertiser produces campaign rows and nothing under them at all, so a blank keyword or ad level there is structural rather than a broken column. On totals it is a **real combined value** with one declared null inside it. It is `null` on Meta, TikTok, Snapchat and Apple Search Ads. The whole object is `null` when the row is not Google, or when no row in the window carried any of these fields. **That second null covers two indistinguishable absences and neither is a zero**: every row may have come from `google.ts`'s NARROW FALLBACK, which carries only the core five keys, so the question was never asked; or the wide row simply omitted the key, because proto3 leaves an unset optional field out. Inside a non-null object each field is independently nullable on the same rule, and **a reported 0 is a real measured zero that renders as 0** (`viewThroughConversions: 0` on a pure Search account is a measurement, because nobody can convert from an impression there). One sharp edge worth naming: proto3 also omits a field whose value is the DEFAULT, so a day whose absolute-top percentage really was 0.0 arrives with the key missing and is read here as unknown. Refusing to show a number we were not clearly given understates, which is the direction this codebase errs in. - `interactions` (`number | null`) is every chargeable engagement, **not only clicks**. On Search this equals clicks; on Video it counts views and on Display it counts engagements. It is NOT the clicks column under another name. - `allConversions` (`number | null`, in conversions, **fractional allowed and never rounded**) is the SUPERSET of the Conversions column already on screen: it also counts conversion actions whose `include_in_conversions_metric` is false. It is a DOUBLE, because Google splits attribution across actions, so 3.5 is a real value. **It CONTAINS the Conversions figure, so never add the two.** That is the standard explanation when an advertiser says the dashboard under-reports, and without it the wider number reads as evidence that the smaller one is broken. - `viewThroughConversions` (`number | null`, in conversions) is conversions after an impression with no click. It is the mirror case and is **NOT part of Conversions**, so this is the one of the pair that MAY be added to it. And `0` here is a real zero on a Search-only account, forever, rather than a gap. - `conversionsByConversionDate` (`number | null`, in conversions, fractional allowed) is conversions attributed to the day they HAPPENED rather than the day the click happened. It will not equal Conversions for the same window and is not meant to, it must never share a column with Conversions, and a disagreement between them is the design rather than a bug. Recent days keep filling in, because the nightly sync re-pulls the last 30 days and anything older is frozen wherever it stood. - `interactionRatePercent` (`number | null`, **a PERCENT 0 to 100**, so 2.5 means 2.5%) is OUR interaction rate, not Google's: summed interactions over the impressions of the days that reported interactions, divided ONCE at the end. Google's own `interactionRate` on the same row is a **0-1 FRACTION** and is deliberately not published here, because carrying both is a silent 100x waiting for a tidying pass. And since `interactions` is not clicks, this is not CTR. - `costPerInteractionMicros` (`number | null`, in **USD MICROS**: 1,243,544 micros is $1.24) is summed spend over summed interactions across that same day set. USD because the input is the row's `spend_micros_usd`, the only Google money figure that has been through FX. Taking the spend from the SAME days is not a detail: money spent on a day Google never reported interactions for would sit in the numerator with nothing under it. Google's own `averageCost` and `costPerConversion` carry their values in micros while being typed as doubles, which is why they are refused, and formatting this one as a plain currency amount without dividing by 1,000,000 overstates by a million. - `topImpressionPercent` (`number | null`, PERCENT 0 to 100) is the share of OUR OWN impressions that appeared above the organic results. It is rebuilt EXACTLY rather than approximated, because Google's wire value is a fraction of our own typed impressions column: per day `topImpressions = pct * impressions`, sum both sides, divide once, multiply by 100. - `absoluteTopImpressionPercent` (`number | null`, PERCENT 0 to 100) is the same, for the very first ad slot. It keeps its OWN divisor, because proto3 can omit one of the two percentages on a day it sends the other. - `positionImpressions` (`number | null`) is the impressions the pair above was actually divided by, published so the derivation is checkable rather than trusted. When only one of the two shares was reported it is that one's divisor. `null` when neither was reported, and `null` when both exist and their bases disagree, because then no such single number exists and printing either one would make the card state a falsehood about the other. - `days` (`number`, in days) is the distinct `stat_date`s that carried any of these fields. On a merge it is the UNION and never a sum of per-entity day counts. **Never average daily percentages for the position pair.** A 10-impression Sunday at 90% and a 1,000-impression Monday at 10% average to 50% against a true 109/1010 = 10.8%. The averaged answer is nearly five times the real one and looks perfectly plausible. And `allConversions` and `conversionsByConversionDate` are DOUBLES: never call `Math.round` or `parseInt` on them, because 3.5 all conversions is a real value and rounding loses the half. `contentImpressionShare` (`GoogleShareDay | null`) is Display Network impression share, and it is non-null **only when exactly one day of the window carried it and nothing has been merged**. Its `null` covers four situations that all forbid a number: the row is not a campaign row, more than one day carried it, no day carried it, or this is a totals object. Inside it, `contentImpressionShare.date` (`string`, `YYYY-MM-DD`) is the `stat_date` the share was measured on, and it is **REQUIRED rather than optional**, the same discipline `reach` keeps: a share that is only true of one day must never be printed without the day it belongs to. `contentImpressionShare.percent` (`number`) is a PERCENT 0 to 100, because Google's wire value is a 0-1 fraction and it is multiplied here exactly once. `contentImpressionShare.approximate` (`boolean`) is true when Google censored the value to its floor or ceiling, so the number is a BAND ("< 10%" or "> 90%") wearing the costume of a measurement: Google returns anything under 10% as exactly `0.0999` and anything over 90% as exactly `0.9001`, in the API and in the Ads UI alike, with no way to get the true figure. **`approximate: true` means the true share is LOWER than shown and the traffic missed is HIGHER**, which is the direction that flatters, so quote it as "under 10%" or "over 90%" and never as a measurement. **`contentImpressionShare` cannot be combined at all**, because its denominator is eligible DISPLAY impressions only, which Google never reports. It must NEVER be folded through `auctionShare`'s recovery trick (eligible = impressions ÷ share), because our impressions column is Search and Display combined, and dividing one by the other produces a number that is wrong, plausible, and wrong in the direction that FLATTERS the account. It is also not comparable with the Search impression share sitting on the same object, because the two count different auctions. And on totals it is **always `null`** even when exactly one campaign contributed exactly one day, because a share of one campaign's Display auction is not the account's share of anything. All four counts and the position pair exist at all four Google levels, so **never add a campaign to its own ad groups, keywords or ads**. And a missing key is never a zero: there are two reasons for one, the narrow fallback and proto3 omitting an unset field, and they cannot be told apart from a stored row. On **Snapchat, at all three levels and on the totals**, every row also carries `snapchatExtras`: Snapchat's watch curve, its attention time (total view time, total screen time and our own screen time per impression), the post-swipe funnel step that separates a landing-page problem from a creative one, and the eight standard pixel events that are not purchases. It is present at campaign, ad squad and ad alike, because Snapchat sends the identical 38-field list at every level. On totals it is a **real combined value**. It is `null` on Meta, TikTok, Google and Apple Search Ads. The object is `null` when the row is not Snapchat, or when nothing was reported at all. Inside it EVERY field is independently nullable and `null` always means "Snapchat never said", never "none". **Absence is routine here rather than exceptional**, for a specific reason: Snapchat validates the `fields` list AS A WHOLE and refuses the request when one member is unavailable, and the retry then PINS the five-field core list for the rest of that night's run, across all three levels and every remaining 30-day slice. So a single refusal anywhere leaves that whole night carrying 5 keys where 38 were asked for. A reader that renders a missing quartile as 0 turns a downgraded night into "nobody watched", and a missing `landingPageViews` into "the page lost everyone". **A reported 0 is a real measured zero and renders as 0**: nobody adding to cart is a fact about the funnel. **And the standing caveat: no Snapchat stats response carrying the wide field set has ever been observed**, at any level, because the connected account holds no campaigns. Every wire type and unit below comes from the integration source and Snapchat's own field tables rather than from a row anybody has seen, so anything the reader cannot place lands as ABSENT and never as zero. - `landingPageViews` (`number | null`) is page loads that followed a swipe. It is the only step between a swipe and a conversion, which is what makes it the landing-page diagnostic: far fewer page views than swipes points at the page rather than at the ad. - `landingPageRatePercent` (`number | null`, PERCENT 0 to 100) is landing page views over SWIPES, re-derived from the days that reported both. It is not clamped: more page views than swipes is a signal about the page, not a number to hide. - `landingPageRateViews` (`number | null`) is the numerator that rate was really built from, printed beside it so the derivation is checkable. It differs from `landingPageViews` whenever a day reported page views against no swipes. - `landingPageRateSwipes` (`number | null`, in swipes, the typed taps column) is what that same rate was divided by. `null` when no day carried both halves. - `viewTimeMillis` (`number | null`, **MILLISECONDS, a total and not an average**) is total video view time. Additive. The unit is in the name because it is in Snapchat's wire name. - `screenTimeMillis` (`number | null`, **MILLISECONDS, a total**) is the total time the ad was on screen. It is Snapchat's own currency, and no other network in this integration publishes anything like it. - `screenTimeMillisPerImpression` (`number | null`, **MILLISECONDS PER IMPRESSION**, not per thousand and not seconds) is OUR derivation: summed screen time over the impressions of the days that carried BOTH. Snapchat also publishes `avg_screen_time_millis` and nothing states what that one divides by, so it is refused and this one is shown with both halves printed. The two can differ. - `screenTimeRateMillis` (`number | null`) is the numerator behind the figure above. - `screenTimeRateImpressions` (`number | null`) is the impressions it was divided by. `null` when no day carried both. - `installs` (`SnapchatInstallSplit`) is app installs, three ways. It is **always an object, never `null`**, with three independently nullable members. `installs.total` is Snapchat's OWN `total_installs` figure and `null` when Snapchat did not send one, **never ios plus android**; `installs.ios` is Snapchat's `ios_installs`; `installs.android` is `android_installs`. There must be no "other" bucket derived as total minus ios minus android either. Nothing states that the three reconcile and no response carrying them has ever been seen, so either derivation presents arithmetic nobody measured as a platform nobody named. **None of this is the Installs column already on the table**: on Snapchat that column carries `conversion_purchases`, which is a completely different number. - The eight pixel events are `addCart` (ADD_CART), `startCheckout` (START_CHECKOUT), `viewContent` (VIEW_CONTENT), `signUps` (SIGN_UP), `pageViews` (the pixel's own PAGE_VIEW), `subscribe` (SUBSCRIBE), `addBilling` (ADD_BILLING) and `startTrial` (START_TRIAL), each of them `number | null` and each **a count that can be FRACTIONAL**, because Snapchat splits attribution across swipe and view windows the way Meta does. Never round them: the integer installs column and `metadata.raw` can honestly disagree by up to half a conversion per row for exactly this reason. - `days` (`number`, in days) is the DISTINCT DATES that contributed. On a merge it is the UNION and never a sum of per-entity day counts. **Three near-identical names sit in this object, and summing any two double counts**: `pageViews` is the pixel's PAGE_VIEW event, `landingPageViews` is the post-swipe page load, and `viewContent` is the pixel's VIEW_CONTENT event. Two of them appear side by side. **There is also no conversions total here and no field where one could be put**: Snapchat publishes roughly forty `conversion_*` fields and no single conversions metric, so any sum over them adds page views to purchases. Purchases are deliberately absent from the eight, because they are reported once, in the Reported column. And no `_value` field is published here at all: only the purchase value has its unit documented anywhere, the other eight say nothing, and `spend` in the same object is already micros, so one payload carries two conventions and rendering an unconfirmed unit as money is refused. `video` (`SnapchatVideoRetention | null`) is the watch curve and is non-null **if and only if** `videoState` is `"played"`. `videoState` (`"played" | "no_video" | "unknown"`) says why the curve is absent when it is: `"no_video"` is MEASURED, meaning that on at least one day Snapchat reported the video-view counter, it stayed at zero, and THAT DAY delivered impressions; `"unknown"` is the routine case here, because one refused field name thins the whole night to five keys, and it also covers an entity that delivered nothing at all. **Never render an absent `video` block as 0%, read `videoState` first**, and never read `"unknown"` as `"no_video"`. - `video.views` (`SnapchatRetentionPoint | null`) is Snapchat video views. **This mark IS the divisor for every other mark**, so its own rate is 100% by construction and reads as the anchor rather than a claim that everybody watched. **No duration is claimed for it**: Snapchat counts a view at a threshold of its own and this integration does not know what that threshold is. - `video.views5s` and `video.views15s` (`SnapchatRetentionPoint | null`) are watched 5 seconds and watched 15 seconds, both **absolute durations**, from the wire names `video_views_5s` and `video_views_15s`. - `video.q1`, `video.q2` and `video.q3` (`SnapchatRetentionPoint | null`) are watched a quarter, half and three quarters, **relative to the video's own length**. - `video.completes` (`SnapchatRetentionPoint | null`) is watched to the end, from the wire field `view_completion`. **The name trap: `view_completion` reads like a rate and is a COUNT.** It is the 100% point on the curve, and rendering it with a percent sign multiplies the truth by whatever the count happens to be. - `video.*.views` (`number`) is every video day's count for that mark, and the number a consumer displays. - `video.*.rate` (`number | null`, PERCENT 0 to 100) is `rateViews` over `rateBase`, unrounded. `null` when no day carried both halves. - `video.*.rateViews` (`number`) is the part of `views` gathered only from days that reported this mark AND a video-view basis above zero. - `video.*.rateBase` (`number | null`) is the video views summed over those same days, exposed so a consumer prints "600 of 1,000 video views" instead of inferring a divisor. - `video.days` (`number`, in days) is the distinct dates on which a video ran at all. **The curve is divided by VIDEO VIEWS, not by impressions**, which is the opposite of TikTok's card, and it does not have to fall: the 5s and 15s marks are absolute durations while the quartiles are relative to the video's own length, so on anything shorter than 20 seconds `q1` can legitimately exceed `views5s`. That is a fact about the creative, not a bad number. Two last things about this network. **Snapchat's `stat_date` is the ad account's LOCAL day**, sliced out of the bucket's `start_time` as a string, so two accounts in different timezones have `stat_date` values meaning different 24-hour spans and every additive figure here inherits that. And **today's row is PROVISIONAL**: Snapchat finalises a day 48 hours after it ends in the account's timezone, and conversions keep de-duplicating behind two separate watermarks until then, so a window including the last two days will move between runs. That is settling, not a discrepancy. Because the identical 38 fields arrive at campaign, ad squad and ad, **never add a campaign to its own squads**; summing across days inside one entity is honest, and so is summing across entities at one level. Nothing in this composite is de-duplicated: `uniques` and `frequency` live on `reach` under a rule built for that, and every figure here is a count of events, which add. On **Apple Search Ads, at every stored level and on the totals**, every row also carries `appleExtras`: Apple's install anatomy. Tap-through against view-through, and new users against returning ones, which is the only thing that answers "how many of these installs were people who had never had the app", plus Apple's live bid guidance on a keyword and where a search term came from. The install family rides Apple's fixed metric block at campaign, ad group, keyword and search term. **This network has no ad level in `ad_stats` at all**, so an absent ad level is structural rather than a missing sync. `suggestedBid` is **keyword rows only** and `searchTermSource` is **search-term rows only**; neither restriction is enforced in code, they simply read absent at the wrong level. On totals the counts are a **real combined value** and those two are DECLARED nulls, latched by a flag in the merge rather than left to a caller. It is `null` on Meta, TikTok, Google and Snapchat. The object is `null` when the row is not Apple, or when nothing was ever published. **Null has a structural cause here that the other four networks do not share**: the nightly report body sets `returnRecordsWithNoMetrics` to false, so **a zero-delivery day produces no row at all**. Absence is the default state of every quiet keyword, and defaulting a gap to 0 invents an answer Apple never gave. Inside the object, a null install cell means Apple did not publish it, or the row predates the v5 tap/view split, and **never** that the app was not installed. - `installs` (`AppleInstallSplit`) is the eight-cell split. It is **always an object, never `null`**, with eight independently nullable members, each `number | null` and each counted in installs: `tapInstalls` (downloads after somebody TAPPED the ad, on a 30-day post-tap attribution window), `viewInstalls` (downloads after somebody merely SAW the ad, on a 1-day post-view window, which is why this is the smaller half and why it settles on a shorter fuse), `tapNewDownloads` and `tapRedownloads` (of the tap-through downloads, the people who had never had the app and the people who had), `viewNewDownloads` and `viewRedownloads` (the same split on the view-through downloads), and `totalNewDownloads` and `totalRedownloads` (new users and repeat users across tap AND view). `totalNewDownloads` is the one number that answers "how many of these installs were people who had never had the app". - `suggestedBid` (`AppleSuggestedBid | null`) is Apple's live bid guidance for one keyword. **A PRICE, not a quantity.** It is always `null` after a merge and therefore always `null` on totals. `suggestedBid.amountMajor` (`number`) carries its unit in its name: **MAJOR units of `currency`**, so 0.85 USD, not 850000 micros and not 85 cents. It is **the ORG'S currency, never USD**, because a bid is written back to Apple in the org currency and must never be run through FX, and a missing or non-positive amount is refused, because a suggested bid of zero is not guidance. `suggestedBid.currency` (`string`) is ISO-4217, upper-cased, and a missing currency is refused outright: a price with no currency is unlabelled money, and every other money figure in this payload is forced to USD, so an unlabelled major-unit number sitting beside them would simply be read as dollars. `suggestedBid.date` (`string`, `YYYY-MM-DD`) is the `stat_date` the guidance came from and is **REQUIRED rather than optional**, because guidance older than the nightly re-pull window is frozen at whatever Apple thought when it was written, and stale guidance shown as current is worse than none. Newest day wins within one entity. - `searchTermSource` (`"AUTO" | "TARGETED" | null`) is where a search term came from. **A categorical label with no arithmetic.** `AUTO` means Search Match found the query and nothing in the campaign targets it yet, so the owner can add it as a keyword or block it as a negative; `TARGETED` means one of their own keywords already bought it and there is nothing to do. This is the field that turns a passive search-term list into an action list. It is `null` when the row is not a search-term row, and `null` when Apple sent a source word this reader cannot place, which shows as nothing until somebody adds it. Always `null` after a merge. - `days` (`number`, in days) is the DISTINCT DATES that carried something, never a sum of per-entity day counts: adding day counts turns three entities each measured on the same three days into nine days. **These are two cuts of the Installs column, never extra volume, and there are two containment relationships to keep straight.** `tapInstalls` plus `viewInstalls` equals the Installs figure already on screen. And inside each of those families, new downloads plus redownloads equals that family's installs. Adding any two of the three families together counts the same download twice. A null install cell is not zero installs, and anything that defaults a gap to 0 stores a confident hard zero that looks exactly like a measurement. `suggestedBid` is never summed, never averaged and never converted to US dollars: a sum of bids is a number nobody can type into a bid field, and an average hands the whole account the bid of whichever keyword happened to get traffic. It must never be printed without its date, because it is guidance about the future, so an older one is not a smaller amount of the same thing, it is a worse answer. A `null` `suggestedBid` on a keyword row means one of three things: a MAX_CONVERSIONS campaign, where Apple bids for you and issues no guidance; a keyword with no impressions in the window, which has no row at all; or a row whose date is unknown, because a bid may not be published undated. `searchTermSource` is likewise never summed, counted or ranked, and an account is not one category, which is why it is a declared null on totals. Three more facts about this network. **Apple publishes no reach, no frequency and no unique-user metric anywhere** in its reporting surface, so `reach` is permanently `null` here, and that is a positive finding rather than a gap; every count in this composite adds across days and across entities at one level, exactly the way `impressions` adds. **Recent days keep moving**, because Apple credits an install back to the day of the tap or the view and keeps crediting for up to 30 days after a tap, so recent figures grow, and the first sync reached back 89 days while rows between 31 and 89 days old were frozen part way through attribution, so a 90-day window MIXES settled days with unsettled ones. And because Apple sends the same fixed metric block at campaign, ad group, keyword and search term, **never add a campaign to its own keywords**: that counts the same downloads twice. The v5-removed field names (`installs`, `newDownloads`, `redownloads`, `conversionRate`) are not published here at all. Do not look for them and do not reintroduce them: reading one of those through an integer coercion stores a confident hard `0` forever, and a 0% conversion rate on screen looks exactly like a real 0% conversion rate. On **TikTok, at all three levels and on the totals**, every row also carries `tiktokDelivery`: delivery before and after invalid-traffic filtering, which is the difference TikTok threw away on our behalf, plus the currency TikTok itself stamped on the row, which is free ground truth about a money bug that has no other symptom. On totals it is a **real combined value**. It is `null` on Meta, Google, Snapchat and Apple Search Ads. The object is `null` when the row is not TikTok, and `null` when no row in the window published gross impressions OR a currency. Both of those ride `EXTENDED_METRICS`, which TikTok can drop for a whole advertiser, so an entire account can legitimately have none. **`impressions` alone is deliberately not enough to open the object**, because it rides the base report metric set and is on every stored row, so an object gated on it would appear on every TikTok entity with nothing to say. - `grossImpressions` (`number | null`, in impressions) is impressions BEFORE invalid-traffic filtering, summed across days. `null` when no day published it, which is the whole-account state on an advertiser TikTok narrowed away from the extended metric set, and which is not zero. - `impressions` (`number | null`, in impressions) is impressions AFTER filtering: TikTok's own `impressions`, the same figure the delivery column everywhere else on the dashboard shows. It adds across days. - `filteredImpressions` (`number | null`, in impressions) is gross minus net, computed **only from the days that published BOTH**. That is why it can be `null` while both totals above are shown: on a narrowed account the two day sets really do differ, because gross rides the extended metric set and net does not. `null` is not 0, because a computed zero would claim TikTok removed no invalid traffic, and it is also `null` when the difference came out NEGATIVE, which is TikTok contradicting itself and is refused rather than clamped. - `invalidTrafficPercent` (`number | null`, **a PERCENT 0 to 100**, so 2.5 means 2.5%) is `filteredImpressions` over the GROSS of that same paired day set, divided once. The unit is in the name because getting it wrong is a silent 100x, and TikTok's own rates are percents rather than fractions. Its denominator is that paired day set, not the top-level `grossImpressions`. - `currency` (`string | null`) is TikTok's OWN currency for these rows, upper-cased ISO-4217. An attribute metric rather than a number. `null` when no day stated one, and `null` when two days disagreed, because a window holding two currencies has no single one. - `currencyMismatch` (`boolean`) is true ONLY when TikTok stated a currency AND it disagreed with the one stored against the row. The stored one is stamped once at connect time from the advertiser lookup, and a failed lookup there silently records US dollars for everybody, which under-bills non-USD spend and mislabels it. On a merge this is an OR rather than a vote: one mis-stamped advertiser is a money bug whether or not the rest of the account agrees. - `days` (`number`, in days) is the DISTINCT DATES that carried something. On a merge it is the UNION and never a sum of per-entity day counts. **`grossImpressions` and `impressions` are two different denominators and no rate may divide one by the other.** Any rate whose numerator was measured against filtered impressions and whose divisor is gross understates itself, silently and always in the same direction. Do not compute the filtered figure yourself as `grossImpressions` minus `impressions` either, because the two totals can cover different sets of days, which is exactly why the difference is computed here only from the days that published both. And `currencyMismatch: false` is a **third state wearing the costume of a second**: it is also false when there was nothing to compare, which is the routine case on an account whose metric set TikTok narrowed. Warn on true, stay silent on false, never print a tick. **This composite deliberately carries no `result` and no `cost_per_result`, and that gap is a decision rather than a missing feature.** The report does not say what the ad group was optimising for, and on a REACH or RF_REACH campaign `result` IS a de-duplicated headcount that cannot be summed, while on a WEB_CONVERSIONS campaign the identical field is an ordinary additive count. TikTok itself returns a dash at campaign level when its ad groups optimise for different things, so one number covering both would be a guess. Because TikTok sends the same metric block at campaign, ad group and ad, **never add a campaign to its own ad groups or its own ads**. And note the split with `reach` on the same row: everything in `tiktokDelivery` is EXACT and additive, while TikTok's reach and frequency are ESTIMATED and carry roughly sixteen hours of latency, so the two must never be described under one caveat. ### What each network can LAUNCH `POST /api/v1/businesses/{slug}/ads/campaigns` builds a whole stack - the campaign plus everything under it - in one call, on all five networks. Every campaign is created **PAUSED**, so a launch never starts spend; a stack that half-builds is rolled back rather than left orphaned. The MCP equivalent is the `launch_ad_campaign` tool. **Sales or signups, on the conversion goal of four networks.** A top-level `conversionEvent` picks what counts as a conversion: `purchase` (the default, never needed) or `signup`. Meta `objective: "sales"` builds an OUTCOME_LEADS campaign whose ad sets optimise for the pixel’s COMPLETE_REGISTRATION event, and is refused with `product: "advantage_plus"`. TikTok `objective: "conversions"` optimises for ON_WEB_REGISTER, TikTok’s name for the pixel’s CompleteRegistration. Snapchat `goal: "conversions"` optimises for PIXEL_SIGNUP. Google Search, `?type=pmax`, display and demand_gen give the new campaign its own SIGNUP conversion goal (shopping and app refuse it), so the account’s other campaigns keep theirs; that needs an enabled SIGNUP conversion action (`POST …/ads/pixel?network=google` with `{"type":"WEBPAGE","category":"SIGNUP"}`, then its tag on the signup page) and bids by count, not value. Anywhere else, or any other value, is refused rather than ignored. A network only learns from signups the business’s site actually reports to its pixel or tag, and Apple Ads can only aim at installs. Stats rows carry `signups`: filled on Meta and Snapchat, and null elsewhere because Google and TikTok already count the event a campaign aims at in `installs`. **The objective field is not the same on any two networks, and three of them read an unrecognised value as "traffic" rather than refusing it.** That is deliberate (a launch is not the place to start rejecting a field older callers never sent) and it is exactly why the legal set has to be read rather than guessed: - **Meta** - `objective`: traffic (default), sales, awareness, engagement, video_views (Meta has no video-views objective, so this is the engagement objective with a ThruPlay performance goal and the creative must be a video), app_promotion. `product` is manual (default) or advantage_plus, which moves the budget onto the campaign and hands Meta the audience and placements - offered on sales and app_promotion only, because those are the two states Meta derives, and refused rather than downgraded elsewhere. **A Meta ad launched here never runs on Audience Network.** `adset.publisherPlatforms` takes facebook, instagram, threads and messenger; no list (or []) means Facebook and Instagram on product manual, NOT Meta's automatic placements (which include Audience Network), and `audience_network` is a 400 alone or beside others. Instagram needs an Instagram account linked to the Page, so send `["facebook"]` for a Page without one. An advantage_plus launch carries no list (that absence is what makes it Advantage+), so it first switches Audience Network off for the WHOLE ad account through Meta's account controls, the one exclusion Meta allows without dropping the Advantage+ state; if Meta refuses that, the launch is refused before anything is created and says how to turn it off by hand. Three things on a Meta launch body are worth reading before you send one. **`adset.endDate` is the end of that day ON THE AD ACCOUNT'S OWN CLOCK, not UTC.** A launch naming one makes one extra Graph read to learn the account's timezone (a launch without one makes no extra call), and an end date that cannot be placed on a real clock is REFUSED rather than sent as `T23:59:59Z` - that hardcoded UTC is what a Los Angeles advertiser lost seven paid hours to and a Tokyo advertiser overspent nine hours past, with nothing erroring either way. **`specialAdCategoryCountry`** is a list of two-letter codes saying which countries a regulated declaration covers. One targeted country still derives itself, but a launch declaring a special ad category other than NONE while targeting TWO OR MORE countries is now a 400 unless it sends this: Meta would otherwise file the declaration under the country the account pays tax in, which is not where the ads run. Sending it with no regulated category declared is refused too. **`contextualMultiAds`** is `OPT_IN` or `OPT_OUT`, create-only, and UNSET IS NOT OPT_OUT - Meta enrols any creative made with no enrol status, so leaving the field out keeps Meta's default rather than declining it. All three are dashboard controls as well. One more refusal changed: an `adset.publisherPlatforms` list of which NONE is facebook / instagram / threads / messenger is a 400 instead of a silent change of placements. Dropping SOME unknown values is unchanged. - **TikTok** - `objective`: traffic (default), conversions, awareness (REACH, billed CPM, no pixel), video_views (VIDEO_VIEWS on the six-second view; send format SINGLE_VIDEO with a videoId), engagement (SPARK ADS - see below), leads (an Instant Form id), app_promotion (a TikTok app id plus ios/android), product_sales (a CATALOGUE campaign: it needs `catalog.catalogId` and uploads no creative at all, because TikTok renders every impression from the product itself - the ad goes out as a catalogue carousel and format, videoId and imageIds are dropped rather than sent empty). Each fixes the optimisation goal AND the billing event, because TikTok refuses mismatched pairs instead of correcting them. Leads, engagement, app promotion and product sales send no landing page at all. **Engagement is Spark Ads, and it UPLOADS NOTHING.** The ad promotes a post that already exists on a TikTok account: send `ad.itemId` - the post URL, or the number at the end of it - and no format, videoId, imageIds, text or displayName, because the post supplies the video, the caption and the account name. Confirm the id first with `GET …/ads/lookups?network=tiktok&type=organic_post`, which takes the id plus the identity that owns it and proves TikTok will release the post for advertising; it CONFIRMS one post rather than listing them, because TikTok publishes no endpoint that enumerates an account's posts at all. Smart+ cannot express it (its three are app promotion, web conversions and lead generation), and it does not need to: TikTok keeps ENGAGEMENT's manual form past 2026. **A lead campaign's Instant Form no longer has to be typed by hand, and its leads can be read back.** `GET …/ads/leads?network=tiktok` with no pageId lists the Instant Forms on the ad account - no special permission, and it is where `ad.pageId` comes from. The two LEAD reads both require `leadSource`, which takes INSTANT_FORM (with pageId) or DIRECT_MESSAGE (without one - leads collected in TikTok DMs are a second source entirely, so an account with no forms can still have leads). There is NO paging: TikTok ignores page and pageSize here and publishes no list endpoint, so one call is the whole answer. `&resource=fields` returns the form's questions as plain strings plus its name and public URL - worth reading for the questions a lead left blank, though not to label the answers, which already arrive keyed by those same names. The "Lead Management" scope is GRANTED, verified live 2026-08-05. **Which family builds each objective follows TikTok's own notice**: from 2027-01-01 its manual endpoints stop creating non-Search SALES, APP PROMOTION and LEAD GENERATION campaigns, and new ad groups and ads under them - nothing else. So conversions, leads, app_promotion and product_sales launch on Upgraded Smart+ only (Affiliateo stopped their manual form early, and the object-create door refuses a manual campaign, ad group or ad of those objectives, Search campaigns excepted); awareness, video_views and engagement launch on manual only, which TikTok keeps for them; traffic has both, Smart+ first. awareness and video_views were refused here from 2026-08-04 to 2026-10-13 on the belief that ALL manual creation was ending; TikTok's notice names only those three objectives, so both are served again. - **Snapchat** - the field is `goal`, **not** `objective`: traffic (default), conversions, awareness, engagement, video_views, leads, app_promotion. Seven of our eight, tied with Google, which reaches the same number by a different route: its campaign TYPE is its objective, and the only goal it refuses is video views, because the Google Ads API cannot create Video campaigns at all. The goal picks the CREATIVE, so leads takes a lead-form id and app promotion takes a store id plus an icon INSTEAD of a destination URL - and because neither of those creatives has a URL field, neither can carry tracking tags or report ROAS. **AGE TARGETING IS REFUSED RATHER THAN CLAMPED, AND THE TWO BOUNDS DO NOT SHARE A CEILING.** `ageMin` is a whole number from **13 to 35**; `ageMax` is from **13 to 55**; an `ageMax` below `ageMin` targets nobody. All three are `400 VALIDATION_ERROR`. Both bounds used to run through a single 13-55 clamp, so 65 silently became 55 and 12 became 13 and the ad squad went out targeting an audience nobody asked for while every surface reported the launch as configured - which means a caller working from the older "13 to 55 on both bounds" reading will now get a 400 where it used to get a 201. Leave `ageMax` out entirely for no upper limit. `ageMin`, `ageMax`, `gender` and `endDate` are dashboard controls as well. A launch may also carry **`profileId`** (alias `profile_id`), a Snapchat Public Profile id from Business Manager, used ONLY when the connection carries no profile of its own - the connection's profile always wins. A launch with no Public Profile anywhere answers **403 FORBIDDEN**, where it used to answer 502: the message is the same and the refusal is OURS rather than Snapchat's, so anything branching on the old status needs changing. - **Google** - there is no objective field. The campaign TYPE is Google's objective, chosen with `?type=`: omitted builds Search, or pmax, display, demand_gen, app, shopping. Each is one atomic mutate and `&validate=1` dry-runs it without creating anything. That flag is GOOGLE ONLY and is now REFUSED on the other four rather than ignored: it used to be read inside the Google branch alone, so a Meta launch sent with validate=1 created a real campaign and was told nothing had been. Meta does support validate_only, but it checks ONE object while that launcher builds a campaign, an ad set and an ad in sequence, each needing the real id above it, so there is nothing to dry-run. **Google collects LEADS by attaching a form to the Search campaign, and the form is CREATED in the same mutate rather than pointed at.** That is the one place Google differs from every other network on this endpoint: TikTok and Snapchat name a form that already exists, and Google has nothing to name until the launch makes it. Send `leadForm` on the Search body - `{ headline, description, businessName, cta, ctaDescription, privacyPolicyUrl, questions }`, all six required by Google itself, plus at least one question (FULL_NAME, EMAIL, PHONE_NUMBER and about a hundred more) - and the launch adds two operations to the same atomic call: a LEAD_FORM asset and the campaign_asset that links it. `cta` is one of LEARN_MORE, GET_QUOTE, APPLY_NOW, SIGN_UP, CONTACT_US, SUBSCRIBE, DOWNLOAD, BOOK_NOW, GET_OFFER, REGISTER, GET_INFO, REQUEST_DEMO, JOIN_NOW, GET_STARTED. The QUESTION ORDER is the form's layout, and Google lets it be reordered afterwards but never added to or removed from - so a form that asks the wrong thing is replaced rather than edited. No pixel is needed: the form is submitted on Google and Google reports the submission itself. - **Apple Search Ads** - no objective field either. A campaign is an app, a PLACEMENT (`supplySource`: search results by default, or the Search tab, the Today tab, or other apps' product pages) and a bidding strategy (`biddingStrategy`: MANUAL_CPT, or MAX_CONVERSIONS which bids toward installs and runs in search results only). Send `adGroup` or the campaign can never serve. An optional `ad: { productPageId, name? }` block promotes a **Custom Product Page** on any of the four placements, and it is **REQUIRED on `APPSTORE_TODAY_TAB`** whenever `adGroup` travels with the launch: a Today-tab launch with an ad group and no `ad.productPageId` is a 400 raised before anything is created, where it used to answer 201 and leave a campaign that could never serve. The 201 gains `adId`, `creativeId`, `creativeState` and `creativeStateReasons`. `adId` and `creativeId` are `null` on `APPSTORE_SEARCH_RESULTS` and `APPSTORE_PRODUCT_PAGES_BROWSE` **when no `ad.productPageId` was sent**, which is correct rather than an omission - those two render from the App Store listing and owe no ad object by default. Send `ad.productPageId` on either of them and an ad IS built and both ids come back, which is the same sentence as "on any of the four" read from the response end. `creativeState` is `null` on a creative we just made, because Apple's create returns only an id, and carries Apple's real verdict on a REUSED one. A failed AD create now rolls the campaign back and answers 502 (Apple refused) or 400 (our own check) instead of 201, and the rollback message calls it "the half-built campaign" rather than "the empty campaign", because a campaign whose ad failed still has an ad group in it. The campaign launcher asks for the product page too, picked from the `product_page` lookup, so this is not an API-only field. **What cannot be launched, and who owns each refusal** - worth telling an owner rather than retrying: - **Meta catalogue sales**: App Review did not grant `catalog_management`. Nothing on our side unlocks it. - **Meta leads, which is TWO refusals wearing one word, and only one of them is a wall.** The blocked half is Meta **Instant Forms**: they need `pages_manage_ads` to create and `leads_retrieval` to read the submissions back, App Review granted neither, and we could build that campaign and never read a single lead out of it. The other half is lead ads that send people to the **advertiser's own website**, which need no permission Meta has withheld and are simply **not built yet**. So do not tell an owner that nothing on our side unlocks the goal as a whole: half of it is a work item, and a false reason is how a work item stops existing. **Google, TikTok and Snapchat run lead campaigns today; Apple Search Ads does not** - it has no lead form anywhere in its API, which is the fourth kind of no again and not "the other networks". - **Google video**: Google's own guide says the Ads API can only fetch and report on Video campaigns, never create or update them. Demand Gen is Google's suggested alternative and does run on YouTube, but the ad we build there is an image ad, so it is offered under awareness and engagement rather than badged as video views. Google lead forms used to be listed here as a second gap and ARE NOT ONE ANY MORE: the launch authors the LEAD_FORM asset itself - see `leadForm` on the Search body above. - **TikTok Smart+**: needs no allowlist - TikTok confirmed general availability on 2026-08-03 - and the whole campaign/ad group/ad stack is verified live as of 2026-08-04. The Smart+ AD endpoint refuses a fixed call to action on most campaigns; the answer is a dynamic CTA portfolio id, sent inside `ad_configuration`, which the launcher builds. Three TikTok goals have no Smart+ form at all - awareness, video views and engagement - because Smart+ publishes three campaign objectives (APP_PROMOTION, WEB_CONVERSIONS, LEAD_GENERATION), and none of the three needs one: TikTok keeps their manual form. The Smart+ goals are traffic, conversions, leads, app promotion and catalogue selling - Smart+ sells from a catalogue as a WEB_CONVERSIONS campaign carrying `catalog_enabled` plus `catalog_type`, with `catalog_id` and `catalog_authorized_bc_id` on the ad group, and that body is BUILT and live-verified rather than the "third request shape nobody wrote" it was until 2026-08-04. What is genuinely left is that the launcher picks the TikTok family server-side rather than letting a caller choose it. - **GMV Max** is the one TikTok product still listed and greyed rather than hidden, so an owner can be told why instead of retrying. It is a third kind of blocker, neither "TikTok refuses it" nor "nobody wrote it": it advertises a TIKTOK SHOP, so it needs a Shop linked to the ad account and a seller account behind it - a merchant relationship nobody here can create - and it sells from a different product source (STORE, not the CATALOG rail our catalogue endpoints feed), so the catalogue campaign could not be widened into it. The catalogue product beside it, Smart+ Catalog Ads, is selectable (the manual Catalog ads product was removed on 2026-10-13, because TikTok ends manual product-sales creation after 2026-12-31). - **Snapchat product sales**: the field list is not the problem - the dynamic creative takes a dynamic_template_id and a product_set_id, and Snapchat publishes no endpoint for either, so the ad squad wants a product SET id that no endpoint of ours can list. - **Apple awareness, engagement, video views, leads and product sales**: none of these exists anywhere in Apple's API. A campaign advertises one app and bids on taps or installs. ### Audiences: building one, and pointing a campaign at it `GET/POST /api/v1/businesses/{slug}/ads/audiences` manages audiences on the **four networks that have them** - Meta, TikTok, Google and Snapchat. Apple has none at all: its ad groups target dimensions evaluated at serve time, and there is no audience object anywhere in its API to create, list or attach. Add `?catalog=1` (with no `?network=`) for the machine-readable vocabulary: every audience kind on every network, that network's own name for it, whether a writer exists today, and where one does not, whether the blocker is the network's own limit, a permission we were not granted, a product decision of ours, or a wire shape nobody has confirmed. That call asks no network anything, so it works without a connection. Five kinds, named by concept rather than by any one network's spelling - **website** (everyone a site pixel saw), **app_activity** (everyone an app's SDK saw), **engagement** (people who interacted with your own content or ads ON the network), **lookalike** (people the network judges similar to a seed), and **customer_list**. What each network can mint: - **Meta** - website, engagement (a Facebook Page), app_activity, lookalike. - **TikTok** - website (PIXEL), app_activity (APP), engagement (ad groups, or the profile-side video and live sources), lookalike. TikTok is also the only network that can **share** an audience to another ad account on the same connection, which is what stops an advertiser running several accounts from rebuilding the same purchaser audience once per account, each copy starting from its own date. Nothing about any person moves: an audience that already exists becomes targetable by a second account of the same advertiser, and it is withdrawable. - **Google** - website (a remarketing list) and lookalike (which serves on Demand Gen campaigns only and reads "Eligible - Limited" anywhere else). Its ids are **resource names** ("customers/123/userLists/456"); Google refuses the bare id in every slot that takes one. App and YouTube lists arrive because a Firebase, GA4 or YouTube property is LINKED, and no Ads API call creates one. - **Snapchat** - website, app_activity, engagement and lookalike, all one object type (a SEGMENT) distinguished by its source. The first two need at least one **event**: Snapchat has no "everyone the pixel saw" form and no URL condition at all, so a page-specific audience is a custom event there. **Customer-list uploads are refused on all four.** That is a product decision, not a technical gap - rule-based audiences do the same jobs off signals the pixel already sends, so no buyer PII has to flow through us to get a purchaser audience and a lookalike seeded from it. **An audience nothing can target is worth nothing**, so a launch carries them: send the ids on `POST /ads/campaigns` as `adset.audienceIds` on Meta, `adgroup.audienceIds` on TikTok, and top-level `audienceIds` on Google and Snapchat (each with an `excluded…` twin). Attaching afterwards is not the same thing - a campaign that spends its first day untargeted has already spent it. Three rules hold everywhere. **Never send an empty array**: omit the key, because all four networks read an empty include list as a filter that matched nobody, which is an ad set created successfully, reported as healthy, that cannot deliver. **The same id on both sides is refused** rather than forwarded, because all four evaluate both and reach nobody in that audience silently. And three products refuse audiences by name rather than dropping them: Meta `advantage_plus` hands the audience to Meta, Google `?type=app` has no criteria of any kind, and Google `?type=pmax` takes asset-group SIGNALS instead (`audienceResourceNames`, a second Google id space - "customers/123/audiences/456" - which seeds Google rather than restricting it and has no exclusion). TikTok's Smart+ does take them, nested under its targeting spec with the optimisation mode switched to manual, because under TikTok's default it answers 200 and drops them. Renaming is `PATCH …/ads/audiences/{audienceId}`, and **name and description are all there is**, on purpose and on every network. The rule, the retention window and the lookalike spec decide who is IN the audience, and rewriting one silently rebuilds the membership of an audience live ad sets are targeting right now, with nothing on screen changing to say so. Changing who is in an audience means creating the replacement. ### Everything a network keeps beside a campaign, behind one contract `GET /api/v1/businesses/{slug}/ads/resources` is **the one to try first** for anything that is not a campaign, an ad group or an ad. Twenty-three list-shaped objects across the six networks answer here instead of twenty-three dialects: audiences, custom conversions, app event tags, blocked words, identities, keywords, negative keywords, shared negative-keyword lists and their campaign attachments, labels, campaign groups, budget schedules, automated rules, recommendations, change history, ad strength, campaign experiments, third-party tracking tags, promoted accounts, media creatives, pre-roll bundle purchases, registered apps and balances. **THE LAST SIX ARE X OBJECTS THE OTHER FIVE NETWORKS MODEL AS A FIELD OR NOT AT ALL,** which is what a network arriving late looks like rather than a vocabulary growing without discipline. Four of the six are DECLARED AND NOT BUILT on this contract today: app event tags, promoted accounts, media creatives and pre-roll bundle purchases each answer 501 naming themselves as unbuilt, and each has a door of its own elsewhere in this API that does answer. The catalogue entry is worth more than silence anyway: it says the object EXISTS and how X spells its columns, which turns a dead end into a work item. **Call it with no `?resource=` and it describes itself.** That is the catalogue: every resource on every network, that network's own wire spelling for each column, the fields a create form takes, the parent object an id hangs off, the row actions that are not CRUD, and a status per operation of `available`, `not_built` or `blocked`. So what can be done is **read rather than guessed**, and the catalogue asks no network anything, which means it works before a connection exists. Answering today, seventeen of the twenty-three and several of them partly: `?resource=audience` on Meta, Google, TikTok and Snapchat (list, create, `PATCH ?id=`, `DELETE ?id=`) and on x (list, `PATCH ?id=`, `DELETE ?id=`, with CREATE declared and unbuilt: X publishes the call and every kind there is to create is blocked, so what is missing is a kind rather than a writer); `?resource=rule` on Meta (all four) and on TikTok (list, create, update, plus `POST {"action":"bind"}`; TikTok publishes no delete); `?resource=custom_conversion` on Meta (all four), on TikTok (LIST ONLY) and on Snapchat (list, create, delete, with the required parent `?eventSourceId=` and `&eventSourceType=PIXEL|APP`; no update, and that one is a real blocker because none of Snapchat's six paths is a PUT or a PATCH - the row itself said Snapchat "publishes no endpoint that lists an account's custom conversions" until the page was fetched on 2026-08-06 and turned out to publish six); `?resource=identity` on TikTok (list, create, delete); `?resource=registered_app` on TikTok (list, edit); `?resource=ad_balance` on TikTok (list); `?resource=keyword` on Apple Search Ads (all four, with the required parent `?campaignId=`) and on Google (list and edit, off the same GAQL query over `ad_group_criterion` the dashboard already runs; an edit carries status and the bid only, because Google answers [IMMUTABLE_FIELD] on the text and the match type); `?resource=negative_keyword` on Apple Search Ads (all four) and on Google (list, create, delete); `?resource=shared_set` on Google (list and create, plus three row actions that reach the TERMS in a list: `{"action":"keywords"}` reads them, `{"action":"addKeywords"}` adds and `{"action":"removeKeyword"}` removes one; NO DELETE, and that is a policy blocker rather than a gap, because removing a list stops every campaign attached to it excluding every term it held, all at once); `?resource=campaign_shared_set` on Google (list, create, delete, which are attach and detach under their real names - detaching removes the attachment and never the list, which is why this delete is offered while the one above is not; the id is the composite `campaignId~sharedSetId` and the `?campaignId=` parent is OPTIONAL, unlike every other Google parent here, because Google publishes both reads); `?resource=budget_schedule` on Meta (list and create only); `?resource=blocked_word` on TikTok (list, create, delete, plus `POST {"action":"rename"}`); `?resource=label` and `?resource=campaign_group` on Google (all four verbs, plus `{"action":"attach"}` / `{"action":"detach"}` on a label and `{"action":"assign"}` on a group); and `?resource=recommendation`, `?resource=change_history` and `?resource=ad_strength` on Google (LIST ONLY, with `{"action":"apply"}` and `{"action":"dismiss"}` on a recommendation). Those last three are read-shaped because Google made them so, not because nobody finished them: `recommendations:mutate` and `changeEvents:mutate` are not served at all - both answer an HTML document where a method Google does publish answers a JSON error envelope - and ad strength is an output-only FIELD on an ad rather than a resource. A GOOGLE LABEL DELETE IS THE ONE TO READ TWICE: removing a label detaches it from every campaign, ad group and ad carrying it, in one go, with no list of what it was on and no undo, so the catalogue ships a `confirm` sentence on that operation. The rename is one TikTok call rather than a delete followed by an add, because two calls leave a window in which the word is blocked by nobody - and a `PATCH` on a blocked word is therefore reported as BLOCKED rather than unbuilt, with the rename named as what to send instead. None of these is a second implementation: audiences go through the same four writers as `/ads/audiences`, Meta's custom conversions through the same writers as `/ads/custom-conversions`, identities, apps and balances through the same clients as `/ads/identities`, `/ads/apps` and `/ads/balance`, keywords, negative keywords and budget schedules through the same clients as `/ads/keywords`, `/ads/negative-keywords` and `/ads/budget-schedules`, and rules through the same clients as `/ads/rules`. **APPLE KEYWORDS: THE READ THAT DID NOT EXIST.** `?resource=keyword&network=apple_search_ads` with the required parent `?campaignId=` is the first way to LIST an Apple targeting keyword over the API. `/ads/keywords` exports `POST`, `PATCH` and `DELETE` and no `GET`, so until now that door could add a keyword, re-bid it, pause it and remove it and could not show you a single one. Four things are worth knowing before you write one. (1) **A NEW KEYWORD IS PAUSED.** Apple creates one ACTIVE when the body says nothing about status, which is the one create in this product that used to start spending the moment the request landed; send `"status": "ACTIVE"` and mean it. (2) **OMITTING `bidCents` INHERITS THE AD GROUP'S DEFAULT BID** - that is Apple's own fallback, and it is not the same as `0`, which is refused as a bid of nothing. (3) **THE READ IS CAMPAIGN-WIDE AND EVERY WRITE IS PER AD GROUP.** That is Apple's shape, not a choice: the keyword query is filtered by campaign and reports each row's `adGroupId`, while every create names the ad group it goes into. So `adGroupId` is required at CREATE and is read back off the row on edit and delete rather than asked for again - and an id that is not really in this campaign is refused as a 400 rather than sent, because Apple ids are small integers unique only inside one organisation. (4) **THE LIST IS A PREFIX PAST `&pages=` × 1,000 ROWS** (two pages by default, up to ten). When it is, `total` carries Apple's own count and the rows stop short of it, so the two disagreeing is how you can tell. `&pages=` is how deep to read APPLE and `&limit=` is how much of what came back to show; they are deliberately two numbers. `text` and `matchType` are frozen at create and a keyword cannot move between ad groups, so correcting any of the three is delete-and-recreate with a new id; `status` and the bid are the only two things an edit can carry. Apple takes `EXACT` or `BROAD` and a `PHRASE` is refused rather than widened to BROAD, which would buy far more traffic than you asked for. **GOOGLE KEYWORDS NOW LIST AND EDIT, AND THIS PARAGRAPH USED TO SAY THE ROW WAS UNBUILT.** It was not a network limit even then - the GAQL read that fills it already ran, and its rows already rendered on the dashboard's Google Keyword tab; the missing piece was the adapter, and that is now wired. `?resource=keyword&network=google` takes the required parent `?adGroupId=` and answers rows off the same `ad_group_criterion` query the dashboard runs, with five columns: the text, the id, the match type, the status and the Max CPC. **The edit carries `status` and `cpc_bid_micros` and nothing else**, and the two it will not carry are Google's refusal rather than ours: Google answers `[IMMUTABLE_FIELD]` on `keyword.text` and `keyword.match_type`, so correcting either is delete-and-recreate and the replacement is a new criterion id. Sending anything else is refused by name rather than dropped, because the shared updater builds its update mask from whatever bag it is handed and a mask naming an immutable field would 502 the whole edit instead of telling you which key is the problem. `status` is `ENABLED` or `PAUSED` - Google's vocabulary, deliberately not normalised toward Apple's `ACTIVE`. **Create and delete are still declared and unbuilt**, and that is two of the six triples named at the end of this section. Ids are the composite `{adGroupId}~{criterionId}`, which is a **different id space** from a Google NEGATIVE keyword's `{campaignId}~{criterionId}`: a keyword hangs off an AD GROUP (`?adGroupId=`) and a negative keyword off a CAMPAIGN, because they are two different Google objects. An ad group that is not on this customer is a 400 naming the customer, never an empty list, since an empty list here means "asked and it has none". **AUTOMATED RULES ARE THE ONE RESOURCE HERE THAT KEEPS ACTING AFTER YOU STOP.** A rule runs on the NETWORK'S side on the network's own schedule: it pauses ad sets, moves budget and changes bids with nobody calling the API, which is exactly why it is worth listing and exactly why it is worth reading before you write one. Meta and TikTok express it as two genuinely different objects rather than two dialects, and the fields say so. On **Meta**, a rule is `evaluationSpec` (when it fires) plus `executionSpec` (what it does) plus an optional `scheduleSpec`, and Meta requires an `entity_type` filter inside the evaluation spec naming which objects to scan. The update is a real PARTIAL, so a name-only or status-only edit is safe. `status` is `ENABLED` or `DISABLED`, and DISABLED is the reversible way to stop a rule - the delete is not, and undoes nothing the rule has already done. **AN EMPTY LIST ON META IS NOT PROOF THAT NOTHING IS RUNNING.** Live on 2026-08-05, the `adrules_library` edge answered `{"data":[]}` for an account whose `adrules_history` in the same run listed hourly evaluations of an ENABLED rule on that same account. That rule was Meta-authored (`PRODUCT_SET_BOOSTING` / `AD_RECOMMENDATION_APPLY`), so the likely reading is that the library lists rules an advertiser wrote and not ones Meta's own recommendation system installed, but only THAT it is absent was established, never WHY. On **TikTok** three things differ and none is cosmetic. (1) **The update is a FULL REPLACE.** TikTok marks `name`, `conditions`, `actions`, `applyObjects`, `notification` and `ruleExecInfo` required on update as well as create, so a partial body is not a rename, it is a rule with no conditions - both doors refuse one with the missing parts named. Read the rule, change it, send the whole thing back. (2) **Money is MAJOR units.** A "spend greater than X" condition is read in the ad account's currency in major units, so send `valuesCents` / `valueCents` / `limitCents` and the conversion is done for you, or send `values` / `value` / `limit` and they pass through untouched; sending both spellings of one number is refused rather than guessed, because guessing is how a rule meant to fire at $40 fires at $4000 instead. (3) **An `applyObjects` entry with no `dimensionIds` covers EVERY object at that level in the ad account**, which is a real TikTok mode and, on a pause rule, one that can stop an entire account - so it stays reachable behind `"confirmAccountWide": true` and is never arrived at by leaving a field out. `POST {"action":"bind"}` attaches an EXISTING rule to more campaigns, ad groups or ads; Meta has no equivalent, because a Meta rule decides what it touches through its own filters. **THERE IS NO TIKTOK DELETE AND NO OFF SWITCH,** and that is now from calls rather than from a reference: on 2026-08-05 `/optimizer/rule/delete/`, `/remove/`, `/unbind/`, `/batch_unbind/` and `/status/update/` each answered HTTP 404 with no envelope, while POST-only endpoints that certainly exist answered HTTP 405 and the list answered 200 on the same token in the same run. To stop a TikTok rule, replace its `applyObjects` with a narrower list, or remove it in TikTok Ads Manager. What a rule actually DID is a separate read and stays at the older door: `GET /ads/rules?network=tiktok&view=results`. **NEGATIVE KEYWORDS ARE ONE RESOURCE IN TWO SHAPES,** which is the point of one contract rather than twenty-three dialects. Both need `&campaignId=`, because neither network keeps an account-wide list of them. On Apple all four verbs answer, but an EDIT may carry `status` only - Apple freezes the keyword text and the match type at create, so correcting either is delete-and-recreate - and `adGroupId` at create picks campaign-wide versus one ad group, which is then READ BACK on edit and delete rather than asked for again, because Apple keeps the two scopes behind different paths and the id alone does not say which. On Google there is no edit at all, and that is a BLOCKER rather than a gap. The precise reason matters because the loose one is false: Google DOES publish an update on a campaign criterion, and it answers `[IMMUTABLE_FIELD] Field 'keyword.text' cannot be modified by 'UPDATE' operation` - live-verified against a control, where an operation Google does not publish answers a protobuf parse error instead. The two match-type vocabularies are NOT narrowed into each other: Google takes EXACT | PHRASE | BROAD, Apple only EXACT | BROAD, and a PHRASE sent to Apple is refused rather than quietly filed as EXACT, which would block far less than you asked for. A Google id is the COMPOSITE `campaignId~criterionId`, and one from another campaign is refused as a `400` - Google would remove it without complaint, and Apple's ids are small org-scoped integers that usually exist in several campaigns at once. **A META BUDGET SCHEDULE IS THE ONE ONE-WAY DOOR on this endpoint.** `&parentId=` is a campaign or an ad set - Meta hangs a high demand period off either, never off the account - and `list` and `create` are all there is, because Meta publishes neither an update nor a delete for one. A boost over the wrong week is money that will be spent, and the only remedies are elsewhere: lower the budget, or pause for that window. `timeStart` and `timeEnd` are unix SECONDS, and a millisecond value is refused before it is sent, because as seconds it is a window fifty thousand years out that Meta accepts and nobody can delete. Both of those blockers carry `sourcedFrom: null`: a live attempt was made and settled nothing, because Meta answers "does not exist, cannot be loaded due to missing permissions, or does not support this operation" as ONE sentence, and there is no real schedule on any connected account to address. Creating one to find out would have left a permanent boost on a live ad account to test whether it is permanent. TikTok's custom-conversion WRITES are the one gap worth explaining, because they are unbuilt rather than blocked and the difference is deliberate. `/custom_conversion/create/`, `/update/` and `/delete/` all exist - each named its own required field when called, where a route that does not exist answers HTTP 404 with no envelope - and no request BODY for any of them has ever been observed: both advertisers on the account this was verified against have no pixel and no app, so there is no event source to define one on. TikTok answers an unrecognised field with SILENCE rather than an error, so a create typed from an SDK read can succeed while dropping the rule that makes the conversion mean anything. A blocker there would claim TikTok cannot do something it plainly can, so the honest answer is no resolver. Note also that `/ads/custom-conversions?network=tiktok` manages a DIFFERENT OBJECT - pixel event rules (`/pixel/event/`) - which is a real and useful object and is not this one. That trio, GOOGLE'S `keyword` CREATE AND DELETE, GOOGLE'S `shared_set` UPDATE, X'S `audience` CREATE and ALL FOUR VERBS on `resource=experiment` for google and x and on `resource=tracking_tag` for x are the declared-and-unblocked operations on this endpoint with no implementation behind them: eleven subjects and thirty triples in all, and **the number splits in two.** SEVEN OF THE THIRTY ARE UNBUILT ANYWHERE in this product: TikTok's custom-conversion trio, Google's keyword create and delete, Google's shared_set update and X's audience create. THE OTHER TWENTY-THREE ARE A MISSING ADAPTER ON THIS CONTRACT RATHER THAN A MISSING CAPABILITY, because every one of them answers today through a route of its own: experiments at `…/ads/experiments` (google and x), tracking tags at `…/ads/tracking-tags` (x), X's pre-roll bundle purchases at `…/ads/targeting?resource=line-item-categories`, X's app event tags at `…/ads/conversions?surface=mobile`, and X's promoted accounts and media creatives at `…/ads/creatives?network=x`. Every one of those catalogue rows names its door in alsoAt, and every other 501 you can reach here carries a network's own reason. The other two are the same shape of gap as this one. Google plainly creates and removes keywords, and BOTH halves now exist on the generic object endpoint: a create is POST …/ads/objects at level `ad_group_criterion`, and a removal is DELETE …/ads/objects at the same level. What the `keyword` RESOURCE still lacks is a resolver routing to them, which is a wiring gap rather than a missing capability. Nobody has read whether `SharedSetService` publishes a rename, so a blocker there would be a denial we cannot support. **Four different NOs, and none of them is an empty list.** `400` the request is malformed (unknown resource, no network, a missing required parent, a limit or cursor we never issued). `501` declared but blocked, or declared and not built yet, and it says which - a blocked one carries the network's own reason, WHO can change it (the network's own limit, a permission nobody granted us, or a decision of ours), **whether anybody has ever CALLED the network to confirm it**, and the networks whose same verb is open. `409` not connected. `502` the network was asked and refused. So `rows: []` means exactly one thing: the network was asked and it has none. Retrying is never the answer to any of the four. **THE RETRY RULE FOR EVERY ADS WRITE, AND IT IS THE ONE AN AGENT GETS WRONG.** `502 UPSTREAM_ERROR` is the **only** ads failure worth retrying: it means we asked the network and the network refused, timed out or answered something we could not parse, so the same call a minute later can genuinely come out differently. **`409` with `error.code: "CONFLICT"` is OUR refusal, not the network's, and no network was asked at all** - the request was well formed and the caller was permitted, but the state of the account makes the write wrong to perform, so retrying it can never succeed and a loop just burns the rate limit. It is not `VALIDATION_ERROR` (there is nothing to fix in the body), not `FORBIDDEN` (permission is fine) and not `UPSTREAM_ERROR` (nothing upstream was called). The live case is `PATCH /api/v1/businesses/{slug}/ads/entities/{id}?network=google` editing `dailyBudgetCents` on a campaign whose Google `campaign_budget` is shared: the message says how many campaigns spend from that budget, nothing is sent to Google, and the fix is to change the shared budget in Google Ads or give the campaign a budget of its own first. That case used to answer `502`, which is precisely the code an agent loops on, and no amount of looping was ever going to move a budget we deliberately refused to touch. **Branch on `error.code`, never on the status alone**, because `409` also carries `NOT_CONNECTED` - a genuinely different answer with a genuinely different fix (send the owner a connect link). That "has anybody actually called it" field is not decoration, and most blockers still say **no**: they come from reading each network's SDK and reference rather than from a live call. This product has twice refused to build a feature because a comment written from reading said an endpoint did not exist, and both times the endpoint was real and the claim was load-bearing. So the doubt ships with the answer instead of being rounded off. A live sweep of TikTok's API on 2026-08-05 settled 31 of them and, in the process, found the catalogue wrong in BOTH directions on one resource at once: it said TikTok publishes no delete for an ad identity (it does, and it is wired now) and that an identity update was merely pending (that one really does answer HTTP 404). Neither entry had ever been called before that day. ### Ad object levels, per network These are the object types `POST/PATCH /ads/objects` can write. Call `GET /ads/objects?network=X` for the full field catalogue of any of them. **THE CATALOGUE CAN NOW ALSO TELL YOU WHAT ONE OBJECT HOLDS.** `GET /ads/objects?network=X&level=L&id=ID` answers with that same catalogue plus ONE extra top-level key, `current: { id, level, fields, unread }`. `fields` is keyed by the REGISTRY'S FLAT NAMES, the same ones the `fields` array publishes, never by the network's own nested wire paths, and it carries the units you would SEND, so a value read here and sent straight back through `PATCH` is a no-op. Without `&id=` the response is byte-for-byte what it always was, with no `current` key at all, so nothing moves for a caller that does not ask. THREE ANSWERS, AND CONFLATING THEM DELETES SETTINGS. A name MISSING from `fields` means the network said nothing about it. A name present and `null` means the network said it is empty. `unread` is the third and it is a statement about US rather than about the network: rows the reader knowingly did not fetch, because it has no way to ask for them at that level or cannot map the shape it gets back. Nothing is defaulted or filled in to make the bag look complete. An empty `fields` is therefore NOT an empty object, and on Snapchat, Meta, Apple and TikTok, which REPLACE an object rather than merging it, restating a key you did not actually read is how a live setting gets cleared with a 200 coming back. REMOVING A SETTING ON PURPOSE. A catalogue row with `clearable: true` takes `null` on a `PATCH` (an empty string reads the same) and the network drops the setting. Today that is Apple's ad group `endTime`: `{ "level": "adgroup", "fields": { "endTime": null } }` removes the end date, so the ad group runs until it is paused. Every other field refuses `null`. `current` IS `null` WHEN THE OBJECT COULD NOT BE READ, AND THE REQUEST STILL SUCCEEDS. One 200 covers every way a read comes back empty: a level the network publishes no single-object read for, an id the answer did not contain, a missing or read-only ad connection, or an id belonging to a neighbouring ad account (name it with `&account=`). Failing the whole request would take the catalogue away too. A MALFORMED REQUEST IS STILL A 400 and the split is deliberate: `&id=` with no `&level=`, a level that network does not have, or an id that does not match the network's id shape never reached a network at all, so answering "could not be read" would send a caller round a retry loop that cannot succeed. COVERAGE IS PER NETWORK AND PER LEVEL, AND IT IS UNEVEN. Google answers for every level it declares. Meta answers for campaign, ad set, ad and creative. TikTok answers for its three manual levels and its three Smart+ levels. Snapchat answers for campaign, ad squad and ad, and reports a CREATIVE's rows as `unread` rather than absent, because Snapchat publishes no single-creative read and an absent key there cannot be told from an unset one. Apple answers for campaign and creative only: its other four find endpoints are scoped to a campaign id this call is not given, and guessing an unpublished org-level path or sweeping every campaign to locate one id are both worse than saying so. `DELETE /ads/objects?network=google&level=X&id=Y` detaches a LINK, and is the only way to retire an asset - setting `status` to `REMOVED` is refused by Google, because removal is a separate operation rather than a status value. It takes the link-shaped levels only (`campaign_asset`, `ad_group_asset`, `asset_group_asset`, `customer_asset`, `asset_group_signal`, `asset_group_listing_group_filter`, `ad_group_criterion`, `campaign_criterion`); the spend-carrying levels refuse and point at PATCH `status`, and `asset` refuses because Google publishes no asset delete at all. Google only so far - the other four answer 400 saying it is not built rather than claiming their platform cannot. - **meta**: campaign, adset, ad, creative Meta calls the middle level an ad set. The other three call it an ad group. - **google**: campaign, budget, adgroup, ad, conversion_action, asset, asset_group, asset_group_asset, asset_group_signal, asset_group_listing_group_filter, campaign_asset, ad_group_asset, customer_asset, ad_group_criterion, campaign_criterion The asset levels are how Performance Max is built: an asset group replaces ad groups, ads and keywords entirely. Assets are never deleted, you remove the LINK. The two criterion levels are why a LIVE campaign can gain keywords, audiences, locations and schedules rather than being frozen at launch. - **tiktok**: campaign, adgroup, ad, smart_plus_campaign, smart_plus_adgroup, smart_plus_ad smart_plus_* is a separate endpoint family, not a mode of the manual levels. It is the only CREATION path for sales, app promotion and lead generation campaigns: TikTok ends their manual (non-Search) creation after 2026-12-31 and this API already refuses a manual campaign, ad group or ad of those three. Reach, video views, engagement and traffic keep their manual form; editing, pausing and reporting on existing manual campaigns continue unchanged. Smart+ creation needs NO allowlist and no extra permission - TikTok confirmed general availability on 2026-08-03, and campaigns and ad groups create on an ordinary ad account. Smart+ AD creation used to be blocked by a call-to-action refusal; TikTok’s answer is that some campaign and identity combinations require a dynamic CTA portfolio id instead of a fixed value, and the launcher builds one and sends it inside `ad_configuration` - at the top level TikTok DISCARDS it with no error and then refuses the ad for having no call to action, so setting call_to_action_id through …/ads/objects is nested for you as well. The full stack is VERIFIED LIVE as of 2026-08-04. SMART+ IS WHAT RUNS BY DEFAULT, and the one goal Smart+ cannot express is ENGAGEMENT: SPC_OBJECTIVES is APP_PROMOTION, WEB_CONVERSIONS and LEAD_GENERATION, so Spark Ads are the single TikTok goal with no Smart+ successor. Catalogue selling DOES have one - a WEB_CONVERSIONS campaign carrying catalog_enabled + catalog_type, with catalog_id and catalog_authorized_bc_id on the ad group - built and live-verified 2026-08-04. POST /ads/campaigns?network=tiktok does not make you choose: the objective picks the family. conversions, leads, app_promotion and product_sales are built on Smart+ ONLY (TikTok ends their manual creation after 2026-12-31, and Affiliateo stopped early). awareness, video_views and engagement are built on manual ONLY (Smart+ has no form for them, and TikTok keeps their manual form). traffic is the one objective with both: Smart+ first, manual as the standby that catches a Smart+ create-endpoint refusal. Two launch fields the Smart+ endpoints have nowhere to put are checked BEFORE the first create: adgroup.subplacements and ad.showcaseProducts. Naming either refuses the Smart+ attempt with nothing yet made: on traffic the manual family finishes the launch, and on a Smart+-only objective the request is refused - TikTok answers a field it does not recognise with silence rather than an error, so inventing a Smart+ spelling would drop a sub-placement NARROWING and buy the surfaces the advertiser just excluded. The response reports which family answered in `path` (manual or smart_plus). Send that value as the matching `kind` on any later edit, because the two families cannot write each other’s objects. - **apple_search_ads**: campaign, adgroup, keyword, negative_keyword, ad, creative Keyword-level bidding, so keywords and negative keywords are first-class objects. - **x**: campaign, line_item, promoted_tweet, card - **snapchat**: campaign, adsquad, ad, creative Snapchat calls the middle level an ad SQUAD, and that is the write level name: `adsquad`, not `adgroup`. It lands in ad stats as adgroup and comes back as kind `adgroup` from the entity endpoints, the same three-vocabulary split Meta already has for "ad set". Snapchat ids are UUIDs at every level, unlike the numeric ids Meta, TikTok and Apple use. ### Finding the ids a field takes A field catalogue tells you an ad group takes `location_ids` and an ad takes `video_id`. `GET /api/v1/businesses/{slug}/ads/lookups` tells you **which ones exist**, and it answers the same way on every network: `{ id, label, meta }`, where `id` is always the value that goes on the wire and `label` is always what a human picks from. One reader serves all five, which is the point - the older `/ads/targeting-search` answers in a different shape per network and covers eight lookups on four of them; this is a strict superset of it. What can be looked up, as concepts: geo, interest, behavior, language, audience, page, pixel, app, custom_conversion, video, image, organic_post, placement, catalog, product_set, identity, lead_form, keyword_idea, saved_audience, shared_set, topic, asset, merchant_center, zip_code, interest_keyword, purchase_intent, content_exclusion, device_model, carrier, isp, app_event, product, business_center, music, card, product_page, creative, app_category, dynamic_template, funding_instrument, bidding_rule, account_app, targeting_suggestion, iab_category, advertiser_category, content_category, curated_category, event, platform, platform_version, tv_market, tv_show. That is the vocabulary, not a promise. A concept is declared wherever the network HAS it, including where the network publishes no endpoint that enumerates it (placements on Meta, TikTok and Snapchat; TikTok's music, cards and inventory categories) and where it has refused us the access (Meta's catalogues and lead forms, Snapchat's Public Profile). Those answer 501 naming which. The endpoint description further down carries the per-network list of what can be answered today, and calling `/ads/lookups` with no `type` returns it live. Three things to know before using one: - **The same concept is a different id space on every network.** A Meta interest id in a TikTok body is well-formed, wrong, and nothing upstream will say so. `type` without `network` is therefore refused rather than defaulted to one. - **Fields point at their own lookup.** `GET /ads/objects` returns `lookup: { type, network, multiple }` on every field that takes an id we can enumerate, so a form or an agent goes from "this field is required" to "here are its legal values" with no per-network branch. A field with no `lookup` and an id-shaped `help` is one the network gives us no way to list, and the help says where the value comes from instead. - **A "no" is never an empty list.** A concept the network does not have is a 400 naming the ones it does; one it has that is unbuilt, or that the network has refused us the access for, is a 501 saying which. An empty result therefore means exactly one thing. ### Dimensional reporting Ad stats are **flat daily totals**: the day is their only segment. So "which placement, device, age group or hour is wasting my budget" - the question a reporting surface exists to answer - cannot be asked of them. `GET /api/v1/businesses/{slug}/ads/breakdowns` is where it goes. All five networks hold the data and spell it four different ways (Meta `breakdowns`, Google `segments`, Snapchat `dimension` + `pivots`, Apple `groupBy`); one catalogue owns that mapping and publishes each network's own spelling beside ours, so a wrong mapping is findable rather than a silently different number. The dimensions, as concepts: `age` (Age), `gender` (Gender), `country` (Country), `platform` (Operating system), `region` (Region), `metro` (Metro (DMA)), `network_type` (Connection), `language` (Language), `interest` (Interest), `publisher` (Publisher), `device` (Device), `placement` (Placement), `hour_of_day` (Hour of day), `product` (Product), `frequency` (Frequency), `asset` (Creative asset), `city` (City), `day_of_week` (Day of week), `ad_format` (Ad format), `device_make` (Device make), `device_model` (Device model). Again the vocabulary, not a promise: no network has all of them, and a few are declared because the network documents the split without documenting any way to ask for it. Snapchat's device MODEL is now the only one of that kind left - its dimension table lists `make` under Device and stops there, so `model` has an Ads Manager pivot name and no `report_dimension` value. **`make` was refused on that same reasoning and the reasoning was wrong about it**: re-read on 2026-08-06, it is in Snapchat's own `report_dimension` table, and it is servable today. It is **delivery metrics only** - Snapchat names it in its own list of the four pivots that lose conversion metrics (`lifestyle_category`, `region`, `dma`, `make`) - so `conversions` is `null` on every bucket rather than `0`, and asking for conversion metrics beside it is a rejected request rather than a null column. A dimension the network does not have is a 400 naming the networks that do; one it has that is unbuilt is a 501. The endpoint description below carries the per-network available list. **Meta's `device` breakdown now carries an extra sentence in `note`, quoting Meta's own opt-in notice.** Nothing about the buckets changed; what the sentence is for is that an EMPTY result there is ambiguous - it can mean the split has no data, and it can mean the account has not opted in to it - so an empty device breakdown on Meta is not evidence that nobody saw the ad on a phone. **The whole ad account, or ONE object.** A breakdown covers the ad account unless you send one of four ids: `?campaignId=`, `?adGroupId=`, `?assetGroupId=` (Google Performance Max only) or `?adId=`. Omitting all four is byte-identical to what this endpoint always answered. Several may travel together when they **chain**, because a campaign id beside an ad group id is one question narrowed twice and two networks cannot build the call without both halves; `?adGroupId=` beside `?assetGroupId=` is refused with a 400 naming both, since a Performance Max campaign has no ad groups and an ordinary one has no asset groups, so neither contains the other and picking one would be a coin flip. Every scoped report names the **deepest** level in `scope` (`account`, `campaign`, `adgroup`, `assetgroup` or `ad`), the object in `scopeId`, and echoes every id back under its own parameter name, so a caller can tell from the payload alone that the filter was honoured rather than dropped between us and the network. **`scopeVerified` is the field that separates a report from a probe, and it is on every scoped answer.** `true` means a live call has actually answered this network at that level and the catalogue records what came back, dated. `false` means the level is **wired and unproven**: the request really is sent, the scope really is proved from the ids the network sends *back* rather than from the filter having been sent, and nobody has yet recorded one real answer there. `scopeNote` says exactly that, in a sentence, on the response itself. Do not pass an unverified level on as a settled split, and note that the dashboard deliberately links none of them. What is **proven** today is the ad account on all five networks and one campaign on Meta, Google, TikTok and Snapchat. What is **attempted and unproven** today is one ad group and one ad on those same four, one asset group on Google, and one *campaign* on Apple Search Ads, which is the only campaign level nobody has ever called: the private key in the environment it was tried from would not parse, so the guarded code path exists and has never answered. Everything below campaign on Apple is refused rather than attempted, because nothing here has ever sent a `groupBy` to a nested Apple path. A level a network neither serves nor attempts is a **501 NOT_IMPLEMENTED** naming the level and the parameter, never a quiet fall back to the account: serving the account's numbers under an ad group id would be a wrong number wearing a right label, and unlike an error it has no symptom. Nobody reports it, they decide on it. **A scoped call that cannot be BUILT refuses in words too, and never with `buckets: []`** - an `?adGroupId=` with no `?campaignId=` on Snapchat, whose ad squad split rides the campaign stats path; a Google age, gender, geo or product split asked about an asset group or an ad, because those four live in reports of their own (`age_range_view`, `gender_view`, `geographic_view`, `shopping_performance_view`) which carry an ad group id and no ad or asset group id, while device, publisher, placement, hour of day and day of week are plain segments that ride whatever resource the query names and therefore reach every level, so the refusal names the report, the level to ask at instead and the five that DO reach that level; and a TikTok `?adId=` from the Upgraded Smart+ id space, checked before the call because the wrong filter matches nothing and answers with an empty report. An empty bucket list keeps its one meaning everywhere on this surface: the network was asked and there was no delivery. The catalogue call takes the same four ids. Each entry gains `scopeLevel` and `scopeState` (`served`, `probe` or `refused`); on a network that cannot narrow, EVERY dimension comes back with status `blocked` and the reason; and the response gains a `scope` object carrying each network's `levels` and `probe` lists, with `probe` always emitted so an empty one is a fact rather than a missing key. A probe keeps `status: available`, because it genuinely is answerable, and `scopeVerified` is what says the answer is unchecked. A malformed id is a 400 raised before any network is called, all four checked identically (letters, digits, hyphens and underscores, 1 to 128 characters, with the message naming which one it refused). Google prints a resource name rather than an id, and the value to send is the LAST SEGMENT of it: `customers/8249011858/campaigns/456` means `456`. - `key` is the **network's own value** and `label` is the human string. Join on `key`: the label side is lossy, because every network folds several unknowns into one word. - `spendMicros` is **USD micros** on all five, so buckets add up with every other spend figure here. A row that cannot be valued is dropped and counted, never zeroed. - `conversions` is `null`, never `0`, wherever the network refuses conversion metrics beside that split. - **One dimension per call.** All five restrict combinations, and a pair produces a row per combination against a shape that has one key. - **Bucket totals do not add up to ad stats totals, and are not meant to.** Networks suppress buckets under a privacy threshold, add an "unknown" bucket the flat rows have no equivalent of, and restate dimensional history on their own schedule. Ad stats stays the number to reconcile against, and nothing that decides an amount of money reads a bucket. Both surfaces are catalogue-driven: call either with no `type` / `dimension` and it lists what every network has and whether it can be answered today. The endpoint descriptions below carry the per-network available lists. ### Creative: what an ad can actually be The launch endpoint builds one ad of one shape. These are the levers beside it, and every one of them is optional - an untouched launch body builds exactly the ad it always built. - **Meta: boost a post you already published.** `ad.media = { type: "existing_post", objectStoryId: "{page_id}_{post_id}" }`, and then no text, headline, link, button or upload, because the post carries all five and Meta refuses `object_story_id` alongside `object_story_spec`. The boosted version **keeps the likes and comments the organic post earned**, which an ad rebuilt from the same image starts without. The id is typed rather than picked because listing a Page's posts is not built: it needs a PAGE access token and the connection stores a USER one (`pages_read_engagement`, the scope it used to wait on, was granted 2026-08-15). A post belonging to a different Page is well-formed and is refused before anything is created. - **Meta: the video cover frame.** `ad.media.thumbnailId`, candidates from `GET …/ads/media?video={videoId}`. Omit it and Meta picks, as it always did. - **TikTok: carousel, placements, product showcase.** `ad.format: "CAROUSEL_ADS"` takes 1–35 images plus `ad.musicId`, which TikTok requires on every carousel. **You no longer have to supply one on a Smart+ launch**: omit it and a carousel-legal track is picked for you. Say which one and yours is used. (An earlier version of this file claimed TikTok publishes no endpoint listing music - it does, on v1.3, and the claim is what made image-only Smart+ launches impossible.) `adgroup.placements` / `subplacements` / `automaticPlacements` choose where it runs - TikTok, Pangle, the Global App Bundle, or automatic. **Naming none still buys exactly what every previous launch bought.** `ad.showcaseProducts` anchors products under an ad of any format, which is what TikTok markets as a Collection ad: a FIELD, not a sixth ad format. - **Google: three Demand Gen layouts and pinned search assets.** `ad.demandGenFormat` picks multi_asset (the default), carousel or video_responsive. Responsive search headlines and descriptions take `{ text, pinnedField }`; a headline pinned to a description slot is refused because Google ACCEPTS it and the asset then never serves. - **Snapchat: four formats through a format-shaped route** - deep_link, reminder, story, collection - rather than through the field surface, which could always POST them and is exactly why almost nobody could. Plus a frequency cap at launch. - **Apple: ad-group targeting at launch**, and Custom Product Page ads. The targeting block was accepted by the server for months and sent by nothing, so every Apple campaign this product launched went out reaching everyone in its countries. **Previews.** `GET …/ads/previews` renders an ad that already exists. Meta returns embeddable HTML. Google returns a signed link and covers Performance Max asset groups and YouTube ads only - it refuses responsive search and display ads, which is most of what an advertiser runs, so `GET …/ads/ad-strength` (Google's own grade plus its action items) is the answer there. Snapchat previews the **media file** rather than the assembled ad. Apple needs none: the ad IS the App Store product page. **X answers, and this used to be a 501 blamed on X:** GET `accounts/{id}/tweet_previews` takes up to 200 `tweet_ids` plus a required `tweet_type` of DRAFT, PUBLISHED or SCHEDULED and answers with an iframe per post, the same shape Meta returns. **Pass the post id OR the promoted-post id off an ad row.** On X the post IS the ad, that endpoint takes the POST, and an ad row carries the PROMOTED post, which is the pairing of a line item and a post; X answers an EMPTY LIST rather than an error when the two are swapped, so a promoted-post id is resolved through GET `promoted_tweets/{id}` first. `?format=` is X's tweet_type and defaults to PUBLISHED. Its other preview endpoint, POST `.../draft_tweets/preview/{id}`, is a SEND rather than a read: it pushes a notification to the authorising user's own X app and returns nothing renderable. **No published endpoint on any of the six previews an ad that does not exist yet.** **Uploads.** 10MB images and 50MB video, and both ceilings are ours rather than any network's - the file is buffered once. Snapchat's used to be tighter and no longer is: above 32MB the upload is chunked automatically, so an ordinary 1080x1920 vertical video uploads instead of being refused. Google TAKES VIDEO BYTES, and this file said for months that it did not. `YoutubeVideoAsset` holds only an id and `MediaService` refuses video, both true, but `YouTubeVideoUploadService` takes the file and puts it on YouTube for you, on a Google-managed channel as UNLISTED when no channelId is given, so NO YouTube account is needed. Send multipart `file` + `kind=video` like every other network. The response carries `youtube_video_id: null` and `action_required: "video_processing"` on a fresh upload, because YouTube processes afterwards and only a processed video can back an asset; ask again later with GET …/ads/media?network=google&uploads=1. The YouTube-link META REWRITES CREATIVE BY DEFAULT AND NOTHING HERE STOPS IT. Advantage+ creative enhancements are ON on every Meta ad account: they crop, filter, add background MUSIC, overlay text and reword copy, and the campaign launcher never sets the field, so every campaign built through this product inherits that default. TURN IT OFF WHEN TESTING a creative, since a video Meta is allowed to alter cannot be measured; LEAVE IT ON when scaling something that already works. Two levers, one API: per creative send creative.degrees_of_freedom_spec = {"creative_features_spec":{"standard_enhancements":{"enroll_status":"OPT_OUT"}}} at create time, which is CREATE-ONLY and cannot be undone later; the account-wide default is in Meta Ads Manager under Advertiser settings then Creative features, where "Test new creatives" and the AI generation options are switched off, and NO API reaches it, so that half is an instruction to hand a person. form still works for a video already published: send a YouTube link and get back the asset resource name Demand Gen and Performance Max both need. `GET` on the same path reads the library back, which matters because an upload hands back its id exactly once. ### Operations: the reads that explain a campaign - **Why is this ad not delivering.** TikTok publishes ad review and appeal endpoints (under `/smart_plus/`, and reads on Smart+ objects never depended on Smart+ ad creation working), so a refused ad can be argued with rather than only observed - with the policy reason and the offending video frame, both of which TikTok defaults OFF and we ask for. There is no equivalent for TikTok's manual ads, which is stated rather than answered with a 501. Google's answer to the same question is ad strength. - **Who changed this account.** Google change history, thirty days, where every row's `clientType` tells a change made through this product from one made in Ads Manager, in Editor, by a script, or by Google's own automation. Google keeps no more than thirty days and answers day 31 with an EMPTY LIST, which reads as "nobody touched it" - so an out-of-range window is refused rather than passed through. - **A/B tests.** Google experiments and campaign drafts, and Google is the only network this path reaches. It is NOT the only network with an experiment API, and this line used to say so: X publishes `accounts/:account_id/ab_tests` with a create, an update, a read and a delete. X's is a different object rather than a smaller one, which is why it is not simply added here: it does not copy a campaign at all, it splits the audience across two to thirty mutually exclusive user groups over campaigns that already exist, each carrying a percentage, the percentages summing to 100.00, at CAMPAIGN or LINE_ITEM level. There is no draft, no treatment arm to promote and nothing to graduate, so none of the four verbs below has an X meaning yet. Meta's split tests need an App Review scope this app has not been granted, and TikTok, Snapchat and Apple publish no experiment API at all. On Google: nothing splits or spends until you schedule it; promote and graduate are permanent and say so; the real errors live in `asyncErrors`, because scheduling and promoting report acceptance rather than completion. - **Comments.** TikTok comment moderation plus a blocked-word list held at ACCOUNT level, so keeping one word out no longer means switching comments off per ad group. - **Money that is not campaign money.** Billing reads on three networks, and they answer three different questions: Meta's balance and spend cap, Google's billing setups, budgets and invoices (no "balance", because Google has none), and Snapchat's organization-scoped funding sources - the usual explanation for delivery stopping while every campaign reports healthy. - **What should I bid, and what else should I be bidding on.** `GET …/ads/keyword-recommendations` is one path answering two different questions, because two networks have a keyword surface and they do not have the same one. **Apple** (the default) is an INVENTORY: a suggested bid for every targeting keyword already in a campaign, lifted out of a 30-day keyword report because Apple publishes no standalone endpoint for it. `suggestedBidCents` is `null` on MAX_CONVERSIONS campaigns, where Apple bids for you, and the whole read works on a read-only Apple connection since it is report data. `&adGroupId=` reaches Apple's narrower ad-group-scoped report rather than filtering the campaign-wide one, which on a forty-ad-group campaign is forty times fewer rows for the same answer. **Google** (`?network=google`) is a SEEDED SEARCH: KeywordPlanIdeaService invents ideas from `?q=` seeds and/or a `?pageUrl=` to mine, and answers with monthly volume, competition and top-of-page bid ranges. Google throttles planning to about one request a second per account. Two refusals here are deliberate and both were real defects: `?network=` is checked against the TWO networks that have this rather than tested for the string `google`, because `?network=meta` used to fall through and answer with Apple bid recommendations for a campaign id the caller believed was a Meta one; and `?geo=` takes numeric geo target constant ids only, with a NAME refused rather than dropped - `?geo=texas` was filtered away and returned WORLDWIDE volumes and a completely different bid range, reading as a Texas answer, and those bid figures are exactly what a caller pastes into `keywords[].cpcBidCents` on a launch. Meta, TikTok and Snapchat have no keyword surface, so they have no keyword recommendations either. - **Which keyword, in which country, is worth what it costs.** Apple only: `GET …/ads/keywords-economics?network=apple_search_ads` (MCP get_apple_keyword_economics) answers one row per KEYWORD x COUNTRY, and a Search Match row (`kind: "search_match"`) per ad group x country for what the ad group spent and brought beyond its keywords, because Apple attributes no keyword to a Search Match install; the rows of an ad group add up to it. `?campaign=` or `?adgroup=` (Apple ids) narrows the answer to one campaign or ad group, with its countries and totals worked out over those rows alone; `?app=` to one app's campaigns. Spend, installs and `cpaMicros` are Apple's, split by country from rows the nightly sync stores per country (country null holds days stored before that split). The rest is the INSTALL COHORT OF THE SAME WINDOW from the SDK: `downloads`, `trials` (a free trial within 7 days), `paying` (a first payment within 30 days, none refunded in full), split into `direct` (a subscription without a trial) and `lifetime` (a one-time purchase). `estCacMicros` = spend / paying; `estLtvMicros` = the mean 12-month forecast per paying person, paid so far plus their price times the renewals still expected at the plan's observed renewal rate (blended with a default, `lowData` when it leans on it); `ltvToCac` is banded good from 3x, ok from 1x, bad below, and `countryLtvToCac` is the whole country's. Every row, country and the totals carry `trend` against `previousStart`.. `previousEnd`, the same number of days just before, read as of the same age: `cacChangePct` (lower is better) and `ltvToCacChangePct` (higher is better), null with nothing to compare and on All time. `stillCounting` means a download is younger than 30 days. Money is what the buyer paid before the store's cut, in US micros, like the Revenue page. The same figures ride `appleEconomics` on the Apple rows of `GET …/ads`, which is what its CAC and LTV columns show. To act on a search term, POST `…/ads/keywords` (MCP add_apple_keywords) adds it as a keyword, paused unless `status` is `ACTIVE`. - **Where you rank.** Apple's impression share report. Asking for one answers at once with the CSV as its `downloadUri`; a `reportId` runs the same query again. - **Organising accounts.** Google labels (many-to-many, across campaigns, ad groups and ads) and campaign groups (a folder a campaign is in at most one of). - **Scheduled budget boosts.** Meta, on a campaign or ad set that ALREADY exists - the campaign field is create-only. Meta publishes no update, no delete and no recurrence, so every schedule is permanent and "every Friday" is twelve objects. **ELEVEN ADS SURFACES GAINED A DASHBOARD SCREEN across two phases**, which is worth saying because for months they had none: they answered perfectly over `/api/v1` and there was nowhere in the product a person could click to see them, so an owner had to be told to use an API to find out why their ads had stopped. The first five were **billing** (balance, spend cap, funding sources and invoices - owner-only, because a card number is not a staff member's to read), **rendered previews**, **Meta's audience-size estimate**, **conversion reporting health with its test event**, and the whole **managed-resource** surface as one generic table with the same four verbs on every row - which is twenty-three list-shaped objects reaching a screen through one panel rather than twenty-three hand-written ones. **The last six followed, and they are the ones that had no obvious shape as a table.** **TikTok ad review** hangs off the ad row itself rather than sitting in a card, because both of its reads need an ad id and there is no list behind them - so the policy reason, the offending frame and the appeal are reached from the row of the ad that was refused. **TikTok comments** is a triage screen that owns its own date window, since TikTok caps the span at about 30 days and lists comments one ad group at a time. **Creatives** is a builder (Snapchat's four formats, Apple's Custom Product Page ads) rather than a table, and it never opens by itself, because neither Snapchat nor Apple publishes a list of what it just built, or a delete for one. Its Snapchat GET (`?resource=interaction_zones`) lists Snapchat's reusable zones, so a half-built collection is recovered by reusing the tiles that landed instead of uploading four more - a recovery path, not a table of creatives. **THAT SENTENCE USED TO SAY THE ENDPOINT ITSELF PUBLISHES NO LIST AND NO DELETE, AND BOTH HALVES STOPPED BEING TRUE WITH THE X BUILD:** X's own creative lists answer on this path at `?network=x&resource=poll_cards` and nine more. PATCH answers there for six resources and DELETE for ten: two of the ten are the families X publishes no PUT on at all, where a delete IS the edit, and the other eight are ordinary removes that had no door anywhere until they were routed. The screen is still a builder rather than a table, for the Snapchat and Apple reason above, and it is X that has the lists. **Google experiments and drafts** is a state machine whose load-bearing field, `asyncErrors`, only exists on the single-item read, so the list never claims health. **Keyword ideas** carries both halves - Apple's bid recommendations for keywords that exist, Google's ideas for ones that do not. And **Apple's impression share** is on screen: asking for a report shows it with its download straight away. Each appears only where the network really answers, read off the same declared leaf the endpoint answers from rather than a second opinion: Apple gets no billing card and no previews card, because Apple publishes no billing API and its ad IS an App Store product page, and TikTok gets no previews card while its preview blocker is unverified. A network that gains one of these gains the screen with no edit on either side. The six late arrivals are gated on the ads capability rather than on ownership, matching the API exactly - a co-founder the owner switched ads access on for already calls all six through the session bridge, so an owner-only panel over a team-reachable endpoint would be the same divergence pointing the other way. **THOSE ELEVEN ARE THE PANELS THAT WERE ADDED, NOT THE WHOLE OF WHAT IS ON SCREEN**, and the distinction matters because this paragraph used to end by claiming everything else was API-only. It was not. The campaign tree, the launcher, dimensional reporting (`…/ads/breakdowns`), the lead reader (`…/ads/leads`) and the advanced field panel over `…/ads/objects` were all on the ad dashboard before any of the eleven, and the twenty-three managed resources arrive through the generic table above. **Every capability named in this Operations section is reachable from the dashboard as well as from a key** - ad review, ad strength, change history, experiments and drafts, comments and blocked words, billing, impression share, labels and campaign groups, budget schedules - and the six above were the last of those endpoints the product could not do. **THE LAUNCHER GAINED FIVE CONTROLS THAT WERE API-ONLY, so five sentences that used to be true about it are not any more.** Apple's `ad.productPageId` (required on the Today tab, offered on the other three placements, picked from the `product_page` lookup); Meta's `specialAdCategoryCountry` (chips over the targeted countries, shown only once a regulated category is declared); Meta's `contextualMultiAds` on the creative step, defaulting to UNSET rather than to OPT_OUT; Snapchat's `ageMin`, `ageMax`, `gender` and `endDate`, so the wizard CAN narrow by age and set a stop date; and Meta's **creative fan-out**, which adds up to four more ads to the launch's single ad group, each with its own image or video and optional primary text and headline that inherit the base ad's when left blank. The fan-out writes `fanOut.extraAds`, the same key `POST …/ads/campaigns` already accepted, so this is one wire shape with two doors rather than a second implementation. **`fanOut.extraAdGroups`, the second-ad-group half, is still API-only** and should keep being described that way: a second ad group is a second budget and a second audience, which is a question the dialog does not ask anywhere. That is the honest shape of the parity claim - it holds capability by capability, and below that the wizard is not a field-for-field cover of the launch body. **THE ADVANCED FIELD PANEL KEEPS GAINING REAL CONTROLS, so "bidding is a JSON box" has stopped being true, and so has "everything nested is a JSON box".** The panel over `…/ads/objects` renders a `json` field as a raw textarea with the network's own field name above it. That is an honest fallback for a nested thing only the network can describe, and a poor control for a three-member list, a one-key wrapper or a budget. Google's two were first, and they decide WHERE a campaign runs and WHAT it pays. `network_settings` is now five switches, Google Search, search partners, Display, YouTube and Google TV, where search partners cannot be switched on while Google Search is being switched off in the same edit, because Google refuses that pair. The sixteen bidding schemes are now one strategy picker plus a single amount box that appears only for the strategies that take a target, because setting a scheme IS choosing the strategy and setting two is an error, and changing the strategy on a live campaign warns before it saves. `bidding_strategy` is deliberately outside that picker: it attaches a shared portfolio strategy by resource name and is not a scheme. The one NetworkSettings sub-field the switches withhold is `target_partner_search_network`, which Google's own field comment says is for select partner accounts and does NOT control the Search Partners Network, so it stays API-only on purpose rather than sitting beside the switch that does. **EIGHTY-TWO FIELDS HAVE NOW STOPPED BEING RAW JSON, ACROSS ALL FIVE NETWORKS, AND SIXTEEN KEEP THE CODE BOX**, which is why any sentence putting the first number at two, at thirty-three, at fifty-six, at seventy-eight, at seventy-nine or at eighty is now stale, and why any sentence putting the second at eighteen, at nineteen, at twenty, at thirty-seven or at thirty-eight is too. Both figures are counted from the registry itself rather than from an earlier version of this file, and they count SETTABLE fields the panel shows: fifty-six was five short, because four TikTok ad-group multi-selects and Apple's `campaign.supplySources` had stopped being code boxes without ever being tallied, seventy-eight became seventy-nine for one reason and no other, that Meta's `creative.object_story_spec` became a sub-form and left the refusal list, seventy-nine became eighty for one reason and no other, that Google's `ad.ad` became a choice-then-form and left it too, and eighty became eighty-two for TWO reasons and no others, `meta adset.bid_constraints` and `snapchat adsquad.cap_and_exclusion_config`, both of which left it because the panel can now READ the object it is editing rather than because anything about Meta or Snapchat changed. EIGHTY-THREE ROWS CARRY ONE OF THE SEVEN DECLARATIONS and eighty-two are controls somebody gets: the difference is TikTok's `smart_plus_adgroup.actions`, hidden from the panel along with the rest of that level's targeting, so it is real on the wire and is not counted here. Read-only objects the network fills in for you, Apple's `servingStateReasons` and Snapchat's `delivery_status` among them, are outside both figures, because there is nothing to type into them. Seven mechanisms did all of it, and each one is deliberately narrow, because the failure mode of a control built over a shape nobody verified is not a rejected request, it is an accepted one that means something else: - a **multi-select**, only where the network publishes the complete member set. A partial list here does not degrade to a free-text box, it refuses from inside our own process a value the network would have taken. - an **amount box with its own currency code**, for Apple's money object. - a **single inner control**, for an object with exactly one key a person fills in. The panel renders the control the key deserves and puts the key back on the way out. Two keys that interact is not a wrapper and stays a code box. - a **list editor**, for a list of scalars or of single-key objects, honouring the field's own maximum as a number of entries. - a **sub-form**, one labelled control per key, for an object whose WHOLE key set the network publishes. Where a key is ITSELF an object, or a list of them, whose own key set the network publishes too, that key becomes a form within the form. TWO LEVELS AND NO MORE: a key deeper than that stays a code box inside its parent form, which is still far narrower than the whole object being one, and the stop is enforced by the TYPE rather than by convention, since a key at the second level cannot declare a third. - a **repeating sub-form**, the same thing once per row, for a LIST of those objects. - a **choice, then the form for what was chosen**, for the one object shape a flat form cannot describe: one that holds the keys of exactly ONE option and never two. A flat form over the union of every option's keys asks for settings the chosen option has no place for, and emits an object nobody can read back to see which half the network acted on. THIS ONE GAINED A **COMMON HALF** IN THE PASS BEFORE THIS ONE, and it remains the only change the mechanisms themselves have ever had: a `variants` block may carry a `common` key list beside its `options`, holding the keys that sit BESIDE the choice and go out whichever option is picked. It is NOT a tenth control, it is a slot on the ninth, and it exists because an object can be a choice without being a PURE choice: Google's `Ad` puts the landing page URLs beside the ad type rather than inside it, so without that slot a form over it emitted an ad type and no URLs, which is an ad with no landing page. **WHAT CHANGED THIS PASS IS THAT THE PANEL CAN SEE THE OBJECT IT IS EDITING.** It used to open BLANK at every level, so a form knew only what somebody typed into it. On an EDIT it now reads the object first, through the `current` block documented above, and a form SEEDS from those values and carries the keys it does not name: a sub-form spreads what it was handed before setting the one key that was touched, and a wrapper does the same. THE SEND RULE DID NOT MOVE, deliberately. Only controls somebody actually moves are submitted, so an untouched field is still absent from the request rather than echoed back at its own value. AND WHERE THE READ DID NOT ARRIVE, THE FORM IS WITHDRAWN RATHER THAN SHOWN EMPTY. A read fails in ordinary ways: `current: null`, a row a reader listed in `unread`, an object past the page a reader stops at. On an EDIT on a replacing network, a form whose value came back unknown degrades to the code box that row used to have, with an amber line saying the value could not be read and that saving replaces it. That is not a rule against partial writes, since half an object can be typed into a box as easily as into a form; it is that the BOX HOLDS THE WHOLE VALUE, so the object can be pasted back out of the network's own manager and an edit through it carries all of it. A CREATE is exempt on purpose: there is no object yet, so a form naming fewer keys than the shape can hold deletes nothing. **THE ONE RULE THAT DECIDES WHETHER A SUB-FORM IS OFFERED. Read this first if you are wondering why some obvious-looking object is still a textarea, because it is the answer in every case.** Whatever the form emits becomes the WHOLE value of that field. What happens next to a key the form did not name depends on the network, and they do not agree. GOOGLE MERGES: it builds its update mask down to LEAF paths, so sending one key of an object names only that key and its siblings survive untouched. SNAPCHAT, META, APPLE AND TIKTOK REPLACE the object, so any key the form did not name is destroyed, silently, with a 200 coming back. Seeding answers that for a key the reader could SEE, which is why two fields grew forms this pass. IT ANSWERS NOTHING FOR A KEY NOBODY WROTE DOWN: a form offers exactly the keys this catalogue names, so on an object whose key set the network will not close, a form can carry an unnamed key through but can never let anybody SET one, where the code box could. Taking a capability away is not a smaller version of keeping it. A sub-form is therefore still offered only where this catalogue names EVERY key the object can hold. Naming just the important ones is not a smaller version of the same thing, it is the same failure with extra steps. Where a network's own documentation says the shape is whatever it happens to list, or that the object is free-form, or that it should not be filled in by hand, that is the answer already and the field keeps its code box. The same rule governs a key INSIDE a form, and forms stop at TWO LEVELS: a key whose own value is another object keeps a code box inside its parent, which is already better than the whole object being one. **GOOGLE, 37 controls and 1 code box.** Eleven from the first pass. Nine one-key objects: `conversion_action.attribution_model_settings` (`attributionModel`), `asset.text_asset` and `asset_group_signal.search_theme` (`text`), `ad_group_criterion.age_range`, `.gender` and `.placement` (`type`, `type`, `url`), and `campaign_criterion.device`, `.brand` and `.age_range` (`type`, `entityId`, `type`). Both `final_urls` lists, on `asset` and `asset_group`, are list editors of plain strings. Sixteen more in the second, fourteen of them sub-forms. Three campaign settings: `geo_target_type_setting` (`positiveGeoTargetType`, `negativeGeoTargetType`), `app_campaign_setting` (`appId`, `appStore`, `biddingStrategyGoalType`) and `brand_guidelines` (`mainColor`, `accentColor`, `predefinedFontFamily`, which really are the whole message: the business name and the logo are separate campaign assets beside it, not keys inside it). `conversion_action.value_settings` is `defaultValue`, `defaultCurrencyCode` and `alwaysUseDefaultValue`, in WHOLE units and deliberately not Apple's amount box. Eight extension assets on `asset`: `youtube_video_asset`, `callout_asset`, `sitelink_asset`, `structured_snippet_asset`, `price_asset`, `call_asset`, `mobile_app_asset` and `demand_gen_carousel_card_asset`. That last one names all three image slots, the headline and the call to action, because its help had named only three of those five and a form built from the help would have dropped the square and portrait images on the next save. Two criteria: `campaign_criterion.ad_schedule` (`dayOfWeek`, `startHour`, `startMinute`, `endHour`, `endMinute`, where the two minute fields are Google's four WORDS and not numbers) and `campaign_criterion.keyword` (`text`, `matchType`), which is the campaign-level NEGATIVE keyword and not the ad-group keyword, which carries a lookup and still renders a picker. The other two are repeating sub-forms, `campaign.frequency_caps` and `campaign.asset_automation_settings`, both described below. **NINE MORE GOOGLE ROWS FOLLOWED, every key set read off Google's own v25 protos rather than off the docs site, which is JS-rendered and returns nothing to a fetch.** Seven sub-forms: `campaign.targeting_setting` and `adgroup.targeting_setting` off ONE shared const, because `common/targeting_setting.proto` closes `TargetingSetting` at 2 members and `TargetRestriction` at 2, and the old objection (a second member the help did not name, which such a form would delete) was `targetRestrictionOperations` and is now NAMED rather than argued away. `campaign.shopping_setting` is closed at 8 by `resources/campaign.proto` (field numbers 5 and 7 to 13); the refusal had rested on an unquantified remainder and it is now a number, and 2 of the 4 extra keys are neither vehicle listings nor partner campaigns. `campaign.dynamic_search_ads_setting` had been refused on a FACT CLAIM THAT WAS WRONG: v25 has exactly `domain_name`(6), `language_code`(7) and `use_supplied_urls_only`(8), no repeated member of any kind and nothing page-feed shaped, because page feeds are an `AssetSet` linked by a `CampaignAssetSet`, a separate resource this object cannot hold and therefore cannot detach. `asset.promotion_asset` is numbered 1 to 17 with no gaps; its either-or objection is accepted as a UX risk rather than a safety one, since Google refuses the mutate and names the conflict, while the code box invited the identical mistake with nothing warning against it, and the old note calling it "two either-or pairs" was wrong: `promotion_trigger` is a FOUR-way union, so the barcode and QR options were hidden entirely. `asset.lead_form_asset` is closed at 15 by two independent Google sources that agree exactly, the proto and the v25 REST discovery document already transcribed in `google-lead-forms.ts`, and its three enums are IMPORTED rather than copied a fourth time. `campaign_criterion.webpage` has 2 settable keys; `coverage_percentage` and `sample` carry no `field_behavior` annotation and are read-only in their doc comments, which is a weaker claim than OUTPUT_ONLY and still enough, and both settable keys are required at CREATE and prohibited on UPDATE, which is why the row is create-only and why replace-versus-merge never arises here. One wrapper: `campaign.ai_max_setting`, where `enable_ai_max` is settable and `bundling_required` is annotated OUTPUT_ONLY, leaving exactly ONE fillable key, which is this file's rule for a wrapper rather than a sub-form containing a single toggle. One choice-then-form: `asset_group_listing_group_filter.case_value`, nine options and no discriminator, because `ListingGroupFilterDimension` is a PURE union with no member outside the oneof (so there is no shared key an option's form could drop). The help had named four of the nine, leaving `productCategory`, `productChannel`, `productCustomAttribute`, `webpage` and `retailFilterBundle` undiscoverable. Every count on this page is of fields the panel actually shows. **ONE MORE GOOGLE ROW FOLLOWED, AND IT IS THE AD ITSELF.** `ad.ad` is a second choice-then-form and the ONLY field on any network that declares a COMMON HALF. SEVEN AD TYPES ARE DRAWN and they are the seven this product builds: `responsiveSearchAd` (4 keys: `headlines` and `descriptions` as row forms, `path1`, `path2`), `responsiveDisplayAd` (17), `appAd` (7), `shoppingProductAd` (NONE, and that is Google's message being empty rather than an omission, because the ad is built from the Merchant Center feed), `demandGenMultiAssetAd` (10), `demandGenCarouselAd` (6) and `demandGenVideoResponsiveAd` (10). TEN KEYS RIDE BESIDE whichever type is chosen, which is what `variants.common` expresses: `finalUrls`, `finalMobileUrls`, `finalAppUrls` (a row form of `osType` IOS/ANDROID and `url`), `trackingUrlTemplate`, `finalUrlSuffix`, `urlCustomParameters` (a row form of `key` and `value`), `displayUrl`, `devicePreference` (offering MOBILE alone, the one member Google accepts), `urlCollections` (a row form of four) and `syntheticContentInfo` (a code box inside the form, because its two attestation values sit a THIRD level down). `pinnedField` is offered on the SEARCH ad's headlines and descriptions and on no other ad type, restricted to the three headline slots and the two description slots respectively, because a headline pinned to `DESCRIPTION_1` is ACCEPTED by Google and then never serves, and because the subset Google takes on display, app and Demand Gen text assets is not published anywhere retrievable. THE EIGHTH OPTION IS AN ESCAPE that takes any other ad type as a pasted object, described below. **META, 16 controls and 8 code boxes.** Six from the first pass. `campaign.special_ad_categories` and `adset.pacing_type` are multi-selects over the sets Meta publishes, and the first of those is a rule the launch parser already enforced, so the panel is catching up rather than inventing one. `ad.creative` (`creative_id`) and `creative.contextual_multi_ads` (`enroll_status`) are single inner controls. `campaign.special_ad_category_country` and `adset.creative_sequence` are list editors. The country field is deliberately NOT a multi-select: Meta validates it as a two-letter code and publishes no country list, so a picker there would be a set we made up. Four more in the second, every one a repeating sub-form. `campaign.budget_schedule_specs` is `budget_value`, `budget_value_type`, `time_start`, `time_end` and `recurrence_type`; it is create-only, so there is no earlier value for a blank form to overwrite and the destruction failure mode does not arise at all, and the amount is NOT rescaled because the row does not carry `money`. `adset.attribution_spec` is `event_type` and `window_days`, where `event_type` is free text rather than a picker because a two-member list would refuse an event type Meta accepts. `adset.adset_schedule` is `start_minute`, `end_minute`, `days` and `timezone_type`; `days` stays a code box on purpose, since Meta wants whole numbers there and a picker would emit them as text, which runs the ads on the wrong days rather than erroring, and `timezone_type` had been named only in prose, so it was the key nobody could fill in. `adset.frequency_control_specs` is `event`, `interval_days` and `max_frequency`. **FOUR MORE META ROWS FOLLOWED, all sub-forms, all on `creative`, and all create-only, so a blank form has nothing to overwrite.** `asset_feed_spec` is 24 keys, six of them nested repeating forms whose own item types were each verified separately (Body 3, Title 3, Description 3, LinkURL 7, Image 5, Video 6); `optimization_type` is the ONE picker on it, because it is the only enum on the object whose members the reference prints inline. `creative_sourcing_spec` is 12 keys with `site_links_spec` a nested repeating form of 6. `template_url_spec` is 7 keys, every one a nested form, all seven verified individually. `platform_customizations` is ONE key, `instagram`, a nested form of 5. The builder cross-check that had been the standing worry now checks out: `buildMetaCreativeSpec` writes exactly eight `asset_feed_spec` keys and every one of them is inside the 24, with every inner key it writes named in the form. Three labels are wrong and were left alone on purpose, so do not read them as the field's meaning: `template_url_spec` is labelled "Third-party click tracking" but Meta's own reference calls all seven keys APPLINK templates for dynamic ads, `platform_customizations` is labelled "Per-placement media" but has exactly one key and it is Instagram, and `creative_sourcing_spec` is labelled "Site links" but has 12 keys. Each help now opens by saying what the field actually is. Also: `should_fallback` inside `template_url_spec.web` is a STRING, not a bool. Meta types it string and defaults it to true, and a switch there would send JSON `true` where Meta expects the word. **THE LAST CONVERSION OF THE WHOLE SWEEP IS META'S `creative.object_story_spec`, THE WHOLE AD BODY.** It is a sub-form of the EIGHT keys `AdCreativeObjectStorySpec` enumerates, and both levels close off Meta's own reference pages rather than off a guide: `page_id` (required), `instagram_user_id`, and the SIX content blocks `link_data` (a nested form of 37 keys), `video_data` (19), `photo_data` (7), `text_data` (1), `product_data` and `template_data`. Create-only, so a blank form has nothing to overwrite. `product_data` and `template_data` keep code boxes INSIDE it on purpose: both are catalogue shapes this integration cannot build, since a product set needs `catalog_management` and Meta has not granted it, and `template_data` is `AdCreativeLinkData` over again, so a code box preserves all 37 of its keys rather than a second copy drifting from the first. `call_to_action`, `child_attachments` and `image_crops` sit a THIRD level down and stay typed inside their own block, which is the declared trade rather than a limitation to apologise for: the whole ad body was one code box, and now the button and the cards are. **IT IS A FLAT FORM AND NOT A CHOICE-THEN-FORM, and that is the load-bearing part.** The five content blocks really are alternatives, which is exactly what a choice-then-form describes, and it still cannot be used here: with no discriminator key that control emits the chosen option and nothing else, by design and by its own comment, so a media-type picker would send `{ link_data: … }` with NO `page_id`, and Meta's own opening sentence puts the page id beside whichever content key is used. No key inside the object holds the media type either, so the discriminator-key form does not fit. A flat form over the published eight keeps the Page visible next to the content, and the exclusivity shows up as one block per media type rather than as grouping we invented. THE BUILDER CROSS-CHECK PASSED, which is the test that matters when the panel opens blank: `buildMetaCreativeSpec` writes `page_id` plus `link_data{link, message, name, description, image_hash, call_to_action, child_attachments, multi_share_optimized, multi_share_end_card}` and `video_data{video_id, message, title, link_description, image_url, call_to_action}`, and every one of those is named in the form, so there is no key our own launcher sets that the form cannot see. `attachment_style` and `format_option` are declared `string` rather than `enum` because Meta types them enum and prints no members, and a `values` list there would be ours refusing a layout Meta accepts. A NAME DISAGREEMENT WORTH RECORDING: the form spells the Instagram key `instagram_user_id`, which is what the current reference, `meta.ts` and the lookup catalogue all call it, while `meta-creative.ts` still names `instagram_actor_id` in prose. Nothing writes the older name on the wire, so it is stale prose rather than a broken write, but it is the name an advertiser would copy out of it. **AND THE SIXTEENTH META ROW IS `adset.bid_constraints`, WHICH THE READ UNBLOCKED RATHER THAN A NEW READING OF META.** It is a single inner control over `roas_average_floor`, the Minimum ROAS floor, scaled by 10,000 and bounded 100 to 10000000, and it is a WRAPPER rather than a sub-form for a precise reason: a sub-form must name EVERY key, while a wrapper names one and CARRIES the rest, which is exactly what a struct Meta will not enumerate needs. Meta enumerates nothing here: the ad-campaign-bid-constraint reference has a Fields table with NO ROWS IN IT, the bid-strategy guide shows `roas_average_floor` on its own, and Meta's own generated SDKs each declare exactly that one field. AN EARLIER CLAIM IS WITHDRAWN AS UNCITED: this catalogue said the struct carries a cost-per-acquisition floor beside the ROAS floor, and nothing Meta publishes says so. An empty fields table is not proof that no sibling exists either, which is why the wrapper carries what it was seeded with, and why the row falls back to its old code box on any edit where the value could not be read. **TIKTOK, 12 controls and 4 code boxes.** `special_industries` on the manual campaign and on the Smart+ campaign, plus `placements`, `age_groups`, `household_income` and `operating_systems` on the MANUAL ad group and `age_groups`, `operating_systems` and `placements` on the Smart+ ad group, are multi-selects. `ad_text_list` and `call_to_action_list` on the Smart+ ad are list editors that emit the wrapper key TikTok actually reads, capped at 5 and 3 entries. That cap matters because TikTok answers an unrecognised or malformed field with SILENCE. AND: `adgroup.actions` is a repeating sub-form of four keys per entry, `action_scene`, `action_period`, `video_user_actions` and `action_category_ids`, closed at exactly those four (field ids 1 to 4) by TikTok's own generated definition on CREATE and on UPDATE alike, and confirmed a second time on the manual rail's SDK docs. Nothing in this repo writes any of the four, which is why the old refusal never resolved: it was waiting for a builder that cannot arrive, because this is targeting an owner chooses rather than something a launcher composes, and the reference closed it instead. The Smart+ twin `smart_plus_adgroup.actions` shares the SAME declaration, deliberately, so the rail that builds sales, app and lead campaigns past TikTok's 2026-12-31 manual-create sunset is not the one left as a code box; it is hidden from the panel like the rest of that level's targeting keys, so it is not in the count of 12. No `max` is declared on either, because TikTok publishes no `maxItems` for `actions` and a guessed cap would refuse a legitimate second behaviour. **APPLE, 8 controls and 0 code boxes.** Five money objects, `campaign.dailyBudgetAmount`, `campaign.targetCpa`, `adgroup.defaultBidAmount`, `adgroup.cpaGoal` and `keyword.bidAmount`, are an amount with an explicit currency code beside it. `campaign.countriesOrRegions` is a list editor of plain codes, and it is a list editor rather than a picker for the same reason as Meta's: nothing here declares Apple's storefront set, so a picker would be a guess. `campaign.supplySources` is a multi-select. AND: `adgroup.targetingDimensions`, Apple's last code box, is now a sub-form of all NINE dimensions Apple publishes, `adminArea`, `age`, `appCategories`, `appDownloaders`, `country`, `daypart`, `deviceClass`, `gender` and `locality`, confirmed from Apple's own DocC data endpoint as a closed properties table with no clause admitting unlisted fields. Each of the nine was then checked SEPARATELY, because the form nests and completeness applies per level: `CountryCriteria`, `AdminAreaCriteria`, `LocalityCriteria`, `GenderCriteria` and `DeviceClassCriteria` publish `included` and nothing else (Locality and DeviceClass say outright that they do not support `excluded`), while `AppDownloaderCriteria` and `AppCategoryCriteria` publish exactly `included` plus `excluded`, which is why only those two offer an exclusion. `age` and `daypart` keep a code box INSIDE the form, because their numbers sit a third level down (`AgeCriteria.included` is a list of `AgeRange` `{minAge,maxAge}`, and `DaypartCriteria` is `{userTime: DaypartDetail}` with the hours inside `userTime.included`). `country` is a real PRODUCT gap and not only a help gap: it is unreachable anywhere else in this product, so this box is now its only route. The help had said "eight audience dimensions are named here and Apple may accept more"; the count was one short and the hedge had nothing behind it. **SNAPCHAT, 9 controls and 3 code boxes.** Three from the first pass: `campaign.objective_v2_properties` (`objective_v2_type`), `adsquad.brand_safety_config` (`inventory_option`) and `creative.profile_properties` (`profile_id`) are single inner controls. Three more in the second, all sub-forms, and all three are about naming the SAME app twice. `campaign.measurement_spec` is the store-id pair `ios_app_id` and `android_app_url` (a Play PACKAGE NAME despite the wire name, not a URL). `creative.app_install_properties` adds `app_name` and `icon_media_id` to that pair, and `creative.deep_link_properties` adds `deep_link_uri`, `fallback_type` and `web_view_fallback_url` on top. The store-id pair is one shared declaration rather than three copies, because Snapchat validates the campaign's attribution target against nothing, so two of these drifting apart is a campaign reporting installs that never happened. **TWO MORE SNAPCHAT ROWS FOLLOWED.** `campaign.shared_properties` is a sub-form of the SIX keys the campaigns table publishes, `shared_optimization_goal`, `shared_ad_squad_bid_strategy`, `shared_conversion_location`, `shared_conversion_window`, `shared_pixel_id` and `target_cost_in_micro`, checked against the table and against both Smart Budget examples. Its three shared enums READ THE AD SQUAD'S OWN CONSTS rather than new lists, because Snapchat requires every squad to MATCH these values, so drift between the two menus is now impossible. THE OLD HELP NAMED ONLY FOUR OF THE SIX, and a form built on that help would have deleted `shared_conversion_location` and `target_cost_in_micro` on the next save. Note that the value columns on that table are not trusted and do not need to be: it prints `AUTOBID` where its own example sends `AUTO_BID`, and its bid-strategy list has a hole where a third value was dropped. `adsquad.placement_v2` is a choice-then-form on `config`: AUTOMATIC takes ZERO other keys, which is Snapchat's own documented rule rather than our shortcut, and CUSTOM takes `platforms`, `snapchat_positions`, `inclusion` and `exclusion`. `inclusion` and `exclusion` stay code boxes INSIDE the CUSTOM form, because their own key set is open: the table gives `content_types` and the page's own example sends `premium_content_bundle_ids`. `snapchat_positions` offers all NINE including `POST_CAPTURE_CAROUSEL`, which that table's Possible Values column drops. **AND THE NINTH SNAPCHAT ROW IS `adsquad.cap_and_exclusion_config`, WHICH THE READ UNBLOCKED.** It is a sub-form of THREE keys, and the first of them is itself a repeating form: `frequency_cap_config` is a list of caps, each one `frequency_cap_count`, `frequency_cap_type`, `time_interval` and `frequency_cap_interval` (the last two being the window's number and then its unit, which sound like one setting and are two), sitting beside the booleans `is_industry_exclusive` and `is_industry_competitively_separated`. THOSE TWO BOOLEANS ARE WHAT THE OLD REFUSAL WAS ABOUT: they appear only in the ad squad Snapchat prints back from a Reach and Frequency create, they are described on no page, and a cap-only form used to clear both on its first save. The evidence has not improved and the shape is still taken from examples rather than from a key table, so what changed is that a blank form is no longer what gets saved: the ad squad is a level the reader answers for, the form opens on the squad's real value and sends all of it back, and where the read did not arrive the row falls back to its old code box. THE TWO VALUE KEYS ARE TYPED BOXES AND NOT PICKERS, which is the one place the declaration deliberately holds back. `IMPRESSIONS` and `DAYS` are the only values Snapchat prints, and a sub-form select offers the declared values plus a blank and nothing else, unlike the field-level select which carries an off-list current value onto the list. A select of one would draw a cap already booked with any other unit as BLANK over a live setting, which is the exact lie this read exists to end. **THREE FIELDS ONCE HAD A CONTROL BUILT AND THEN WITHDRAWN, AND ONE OF THE THREE IS BACK.** They were Snapchat's `creative.web_view_properties`, Meta's `adset.bid_constraints` and TikTok's `smart_plus_ad.landing_page_url_list`, and all three failed the SAME test, which was about the PANEL rather than about the network: it opened BLANK, so a control rebuilt the object from the keys it held and destroyed whatever it could not see, which is worse than the code box it replaced, because the code box at least lets the whole object be pasted back. THAT IS THE FAILURE SEEDING ANSWERS, so the question narrowed to one that can be checked per field: does the read actually reach this object? META'S DOES, so `adset.bid_constraints` is a Minimum ROAS box again, described above. THE OTHER TWO DO NOT, and each fails differently. Snapchat's is on the CREATIVE, the one Snapchat level with no documented single-object read, so the reader reports every creative row as `unread` rather than pretending an absent key means an unset one, and a wrapper there would degrade straight back to the code box on every edit. TikTok's fails on the evidence rather than on the mechanism: nothing in this repo has ever observed a live `/smart_plus/ad/get/` response, so nobody can say the value arrives at all. THAT GAP USED TO BE WORSE THAN UNREAD AND IS NOT ANY MORE. The reader filled only a name the response actually carried, so a declared row TikTok does not return landed in NEITHER `fields` NOR `unread`, and the panel calls a value unknown only when the whole read failed or the row was named in `unread`: no amber note fired and the fall back to the code box did not fire either, so a form could open blank over a live value on a network that replaces lists whole. TikTok now reports such a row as `unread`, because its get endpoints take no field list and it has not earned the absent-means-unset reading the other four each earn a different way. Reopening the control itself still needs a live call, and a test pins each of the two meanwhile. ONE EARLIER CORRECTION STANDS: TikTok's own definition types an entry with exactly ONE property, `landing_page_url`, `maxItems: 1`, backed by a plain string list, so the `{ ...row, landing_page_url }` spread that was once said to preserve sibling keys preserves nothing, and its help no longer tells owners to type keys back in that the reference says do not exist. **NOTHING ON THE WIRE CHANGED**, for these eighty-two or for Google's one. No field was added, removed, renamed, re-levelled or re-shaped and nothing was re-encoded. The panel submits the same object the endpoint always took, so a caller sending any of them by hand is unaffected, and every one of these is still writable as raw JSON through `POST`/`PATCH …/ads/objects`. BOTH observable differences are additive and both are in the READ. One is the `current` block documented under the object levels above, which appears only when a caller asks for an object by id. The other is per field: a field in the catalogue from `GET …/ads/objects` may carry `item_key`, `wraps`, `amount_currency`, `subfields`, `rowlist` or `variants`, which is how the panel knows to draw a form. It has to travel, because the panel does not import this catalogue, it rebuilds it from that response, so a declaration the response does not spell does not exist as far as any control is concerned. THOSE PROPERTIES ARE WORTH READING EVEN IF YOU NEVER SEE THE PANEL: `subfields`, `rowlist` and `variants` publish the COMPLETE key set of an object, so a key absent from one is a key the network does not take, and on the four networks that replace rather than merge it is also the list of keys a caller has to restate to avoid deleting them. A `variants` block may also carry `common` beside its `options`, and it travels inside `variants` rather than as a seventh top-level property. What it means to a caller WRITING A BODY, which is the reading that matters if you never see a panel: those keys go at the TOP LEVEL of the object, as SIBLINGS of the chosen option's key and never nested inside it, and they are sent ALONGSIDE whichever option is chosen rather than instead of one. **APPLE'S AMOUNT IS NOT THE `money` FLAG, and the two names are kept apart on purpose.** A field carrying `money` is sent in hundredths of a major unit and the per-currency offset is applied at the wire and nowhere else. Apple's object is spelled `{ amount: "50.00", currency: "USD" }`: a STRING in whole major units with its own explicit code, which nothing rescales at any point. Fifty dollars is `"50.00"` in one and `5000` in the other, and conflating them is a budget wrong by a hundredfold that submits successfully and is discovered on the invoice. **SIXTEEN FIELDS KEEP THE CODE BOX, EVERY ONE CHECKED AGAINST THE NETWORK'S OWN PUBLISHED REFERENCE AND REFUSED ANYWAY.** This is the whole list, so a reader who sees their neighbours converted does not have to guess which were forgotten: none were. FOUR REASONS COVER ALL SIXTEEN, and every field is filed under exactly one of them. TWO ARE UNREAD: both had a control built and withdrawn, and the withdrawal held this pass for a reason it did not have before, since seeding only works where the read arrives and on these two it does not. FOUR ARE FREE-FORM OR UNPUBLISHED, so there is nothing to build a form out of. TWO ARE DO-NOT-HAND-WRITE, because a typed route already builds them and the right value to type is none. EIGHT WERE READ AGAINST THE REFERENCE AND REFUSED ON SHAPE, either because the values sit MORE THAN TWO LEVELS DOWN, which is where a form stops, or because the keys are published and their COMBINATIONS are not, so a flat form would invite a pair the network rejects. That bucket held NINE until the pass before this one, and `google ad.ad` is the one that left it; the withdrawn bucket held THREE and the free-form bucket FIVE until this one, and `meta adset.bid_constraints` and `snapchat adsquad.cap_and_exclusion_config` are the two that left them. For all sixteen the work was help text that states the exact shape to write and names the typed endpoint that builds it where one exists. GOOGLE 1. `asset.image_asset` (DO-NOT-HAND-WRITE): its key set CLOSES, which is the trap for the next reader, since `common/asset_types.proto` gives `ImageAsset` exactly four fields, `data` (whose own proto comment reads "This field is mutate only") plus `file_size`, `mime_type` and `full_size`. It is refused on the other ground: a form here asks a person to paste raw base64, which is the code box with a label on it, when `POST …/ads/media?network=google` does the upload and hands back the resource name every link operation needs. META 8 CODE BOXES, and two of the old reasons for them were WRONG and are corrected here. `campaign.promoted_object` and `adset.promoted_object` (SHAPE): the reference enumerates 29 keys, so COMPLETENESS IS NOT THE BLOCKER; the combination map is. EIGHT of the 29 belong to no named shape anywhere on the page (`value_semantic_type`, `conversion_goal_id`, `pixel_rule`, `pixel_aggregation_rule`, `retention_days`, `offsite_conversion_event_id`, `variation`, `mcme_conversion_id`), and the page never says which keys belong to which objective, so no option set can be closed and a flat 29-key form would invite the mixes Meta rejects, such as `pixel_id` beside `application_id`. THE RULE IS ONE SHAPE RATHER THAN ONE KEY, and the older wording here ("never mix two of these") read as the opposite of what Meta states: SOME of the shapes are a PAIR Meta demands whole, since `pixel_id` without `custom_event_type` and `object_store_url` without `application_id` are both refused, and an advertiser obeying the old sentence collected a refusal from Meta. On the ad set there is a stronger reason still: this repo itself names three different subsets Meta never groups, `commerce-catalog.ts` writing `product_set_id`, `META_MESSAGING_DESTINATIONS` writing `page_id` with `whatsapp_phone_number`, and `meta-manage.ts` typing it as only the two pairs. `adset.targeting` (SHAPE): the reference DOES enumerate its fields, so a missing key set is not the reason; shape and depth are. `geo_locations` is a `TargetingGeoLocation`, its own object with its own reference page; `flexible_spec` is a `list`; `interests`, `behaviors`, `life_events` and `custom_audiences` are lists of id-and-name objects. That puts the one part every ad set must have, its countries, past the two-level stop, and a form key cannot carry a lookup, so the ids could not be picked from inside it either. `ad.tracking_specs` (SHAPE): the old note saying there was no fixed key set WAS WRONG. The conversion-action-query reference enumerates 26 keys. The blocker is shape: every one of the 26 values is an OPEN list of ids or strings, and there is no declaration for an open list, so all 26 would render as code boxes inside a repeating row, which is 26 code boxes where there is one now. Several key names are literal dotted paths (`action.type`, `post.object.wall`, `event.creator`). `creative.degrees_of_freedom_spec` (SHAPE): the old note saying Meta does not publish the key set WAS WRONG, both the outer key and `AdCreativeFeaturesSpec` are published. DEPTH refuses it: every feature value is an `AdCreativeFeatureDetails` object, so `enroll_status` sits at a third level, and an enum at the second level would emit `"OPT_IN"` where Meta wants `{ "enroll_status": "OPT_IN" }`, a wrong wire rather than a smaller win. NEVER QUOTE A COUNT FOR THIS FIELD. The help once said "roughly 80", one read of the live page counted 49 and another counted 51; three numbers for one field, and the list grows with each API version. `creative.omnichannel_link_spec` (FREE-FORM): NO official reference enumerates it. It is not in the AdCreative fields table and its own slug was re-fetched and still returns 404; there is only example JSON on a guide page, which does not close a key set, so the help now says the shape came from those examples rather than presenting it as a field table. `creative.recommender_settings` (FREE-FORM): `AdCreativeRecommenderSettings` is named by the AdCreative table but no page enumerates it and both reference slugs were re-fetched and still 404. It is also catalogue-only, and `catalog_management` was never granted, so nothing here has ever built the object. `creative.interactive_components_spec` (FREE-FORM): free-form by declaration and passed through exactly as given. For the record it would not close anyway: two keys, both lists of component types with no reachable per-type table. TWO META SUB-KEYS ALSO STAY CODE BOXES INSIDE A CONVERTED FIELD, which is worth naming because they sit next to controls. `asset_feed_spec.call_to_action_types` stays raw although `META_CTA_TYPES` sits in the same file claiming to be valid for it: `item_values` would build the picker from OUR list, so any member we are missing would become unpickable. That one is reversible by diffing the two lists. `asset_feed_spec.ad_formats` stays raw for a harder reason: the reference types it `list` and shows NO members at all, and the four names the old help stated as the complete set came from Meta's Asset Feed Options GUIDE rather than the reference, so the help no longer states them as complete. TIKTOK 4. `smart_plus_ad.ad_configuration` (SHAPE): NESTING IS NOT THE OBSTACLE, and this file no longer says it is. `tracking_info` and `phone_info` are level-2 objects and `utm_params` is a level-2 `{ key, value }` list, so a sub-form composes inside the two-level stop and needs no tenth mechanism. Two other things refuse it. THE BUILDER WRITES A KEY NO REFERENCE CARRIES: `tiktok-manage.ts` sends `ad_configuration: { display_name }` on every Smart+ launch, and `display_name` is absent from the create and update models alike, so a form built from the reference deletes the advertiser name on the first edit if the key is real, and asserts an uncited key if it is not. AND ONE REGISTRY ROW CANNOT DESCRIBE TWO DOORS: the registry carries one declaration per field per level serving create and update alike, while TikTok's own generated definitions give create 15 keys against update 14 (`product_display_field_list` gone) and `tracking_info` 4 against 3 (`tracking_message_event_set_id` gone), so a form built from the create side puts two controls in front of an owner editing an existing ad that the update door does not accept, and an unrecognised TikTok field is accepted, dropped and reported as success. THE OLDER PORTAL COUNTS OF 22 AND ELEVEN ARE WITHDRAWN AS UNCHECKABLE: that page is client-rendered and returns only its title to a fetch, so there is one readable first-party source against an earlier transcription nobody can re-read. The help no longer instructs an owner to match a `tracking_pixel_id` the definition does not carry; it names the four documented `tracking_info` keys and marks a pixel id unconfirmed rather than required. `smart_plus_ad.creative_list` (SHAPE): `creative_info` holds NINE keys, not the seven this catalogue claimed for two rounds, and the two nobody had ever named are `aigc_disclosure_type` and `identity_authorized_bc_id`, so a row form built from the seven would have silently deleted an ad's AI-content disclosure and its authorised Business Center. Three of the nine are objects or lists of objects, so a row form would need a row form, which is the third level the leaf type forbids. `smart_plus_ad.landing_page_url_list` (UNREAD): the withdrawal described above, held now because no live `/smart_plus/ad/get/` response has ever been observed here and a row TikTok does not return lands in neither `fields` nor `unread`, which is not a state the panel calls unknown, so neither the amber note nor the fall back to the code box would fire. A test pins it. `ad.utm_params` (DO-NOT-HAND-WRITE): the correct value is empty, because outside catalogue ads TikTok never appends these and only mirrors what the landing page URL already carries. The entry spelling is now citable as `{ key, value }`, which does not reopen it: the refusal was never about unknown spellings, it is that a row form makes an empty field easy to fill in when empty is the right answer. SNAPCHAT 3. `creative.web_view_properties` (UNREAD): the withdrawal described above. The formal attributes table documents TWO keys (`url`, `block_preload`) while the same page's Sponsored Snaps examples send four more back on a read (`allow_snap_javascript_sdk`, `use_immersive_mode`, `deep_link_urls`, `web_browser_type`). Six observed against two documented is the definition of an open key set, and a save emits one `replace` at `/web_view_properties`. What holds it now is the READ rather than the key set: this is a CREATIVE row, and the creative is the one Snapchat level with no documented single-object get, so every creative row comes back as `unread` and a wrapper here would degrade to this same code box on every edit. The help names all five siblings, because "type anything you want kept in here" cannot be followed if nothing says what there is to keep. `adsquad.targeting` (SHAPE), and THE REFUSAL NOW RESTS ON DIFFERENT EVIDENCE THAN IT DID. The Targeting Spec table enumerates exactly NINE keys (`geos` required; `app_install_states`, `demographics`, `devices`, `interests`, `locations`, `regulated_content`, `segments` and `auto_expansion_options` optional), which under this file's own bar is a CLOSED key set, so the old reason given here, that not one of the nine had a row table of its own, argued FOR the sub-form it was refusing. What refuses it is that the same page's own JSON bodies carry two more keys INSIDE `targeting` that the table never lists, `product_audiences` and `enable_targeting_expansion`, and `product_audiences` is writable rather than an echo, with sub-keys `product_set`, `event_type`, `retention_seconds` and `operation`. A table PROVEN to omit one real writable key cannot then promise it omitted only one, so closing the form at ten does not rescue it either. THE FAILURE IT IS REFUSED FOR HAS CHANGED, and it is worth stating precisely rather than repeating the old one: the ad squad IS a level the reader answers for, so a nine-key form would now carry `product_audiences` through rather than deleting it. What such a form could never do is let anybody SET it, because a form offers the keys this catalogue names and no others, so a Dynamic Product Ads advertiser could not write their retargeting at all where the code box takes any shape Snapchat accepts. That is a capability removed rather than a smaller one kept. `adsquad.ad_scheduling_config` (FREE-FORM): the attribute row reads "The schedule for running ads" and nothing else. No sub-table, no example, no day or hour format. A control built on a guessed shape produces a schedule that reads as valid and delivers at the wrong hours, which is worse than a textarea. APPLE 0 ON THE PANEL, which is what that number counts. Two settable json objects are hidden from the panel and stay raw over the API, `campaign.budgetOrders` and `campaign.locInvoiceDetails`, both line-of-credit billing and both `uiHidden`. Two SUB-KEYS inside one of the forms also stay raw, `targetingDimensions.age` and `.daypart`, because their numbers sit three levels down. They still render inside the form, so all nine dimensions remain visible and restatable, which is what the safety rule actually needs. **ALL THREE FREQUENCY CAPS ARE FORMS NOW, AND THE THIRD IS THE NEWEST, which makes them the clearest worked example of the rule above.** `google campaign.frequency_caps` and `meta adset.frequency_control_specs` have been repeating sub-forms for two passes, one row per cap. They were never one control spanning three shapes and are not now: Meta's row is `event`, `interval_days` and `max_frequency`, while Google's is a `cap` number beside a `key` object that stays typed as JSON inside the row, because the window settings sit a level below and composing them would be a form inside a form. `snapchat adsquad.cap_and_exclusion_config` is the third and it is a FOURTH shape rather than a copy of either: a LIST of caps inside a form that also carries two exclusion booleans, which is exactly why it needed the object to be readable before it could be offered at all. All three say in their help that saving REPLACES the whole list, so every cap you mean to keep has to be listed and not only the one being added. **THREE REFUSALS WERE REVERSED ONCE THE REFERENCE WAS READ PROPERLY**, and they are named because each had been argued rather than checked. `google campaign.dynamic_search_ads_setting` was refused on the claim that it might carry a page-feed key beside the three named; it does not, and page feeds live on a separate resource this object cannot hold and therefore cannot detach. `google campaign.shopping_setting` was refused on an unquantified remainder; it is closed at eight. `snapchat adsquad.placement_v2` was refused TWICE on the grounds that its spec table had been caught misprinting its own values, and reading it row by row settled the argument AGAINST the shape being proposed at the time: the section carries FIVE attributes, not the three this catalogue named, so the three-key form that was refused would have silently deleted a content filter set in Ads Manager the first time anyone touched placements. The refusals were correct on the evidence they had. What changed is the evidence, not the bar. **A FOURTH REFUSAL HAS NOW BEEN REVERSED, AND THIS ONE WAS NEVER ABOUT THE NETWORK.** `ad.ad` is the ad itself: the headlines, the descriptions, the display path and the landing page, which makes it the single worst control this product had left for anyone arriving to run Google Search. EVERY FACT THE OLD REFUSAL STATED ABOUT GOOGLE WAS CORRECT AND STILL IS. v25 `resources/ad.proto` puts `final_urls`(41), `final_mobile_urls`(42), `final_app_urls`(35), `tracking_url_template`(43), `final_url_suffix`(44), `url_custom_parameters`(10), `display_url`(45), `device_preference`(20), `url_collections`(26), `name`(47) and `synthetic_content_info`(65) BESIDE the 25-member `ad_data` oneof rather than inside it, so `Ad` IS NOT A PURE UNION. WHAT WAS WRONG WAS ON OUR SIDE: the choice-then-form control emitted the chosen option AND NOTHING ELSE, by design and by its own comment, so a form built on it would have sent an ad type with no `finalUrls`, which is an ad with no landing page, while nesting the URLs inside an option's keys sends `responsiveSearchAd.finalUrls` and Google rejects it as a field that message does not have. The mechanism gained the missing slot, `variants.common`, rather than the field getting a lower bar, and the row then had to clear the SAME completeness test as every other: every key of every option named, and no option missing. TEN OF THE ELEVEN COMMON FIELDS ARE DECLARED AND `name`(47) IS THE EXCEPTION, deliberately. Google marks it IMMUTABLE, and a common key is emitted on EVERY save by definition, so declaring it would attach an immutable key to every edit and Google would refuse the whole mutate. The cost is stated rather than hidden: a Demand Gen ad created through this panel gets no name, where `google-campaigns.ts` sets one on all three Demand Gen formats. Google's own note on that field is that it does not affect the served ad. The other five non-oneof fields are not settable at all: `resource_name`(37) is immutable and is the ad's own address, and `id`(40), `type`(5), `added_by_google_ads`(46) and `system_managed_resource_source`(27) are OUTPUT_ONLY. **NO AD TYPE STOPPED BEING REACHABLE, WHICH IS THE FIRST FEAR TO ANSWER.** Seven ad types are drawn as forms and they are the seven this repo's own launchers build. THE EIGHTH OPTION IS AN ESCAPE: pick "another ad type" and paste that type's object, which is how the remaining EIGHTEEN members of the 25-member union are still reached, hotel ads, travel ads, video ads and local ads among them. The escape is not politeness. This field was a code box, so all 25 members were reachable by hand before, and a seven-option form without an escape would REMOVE a capability, which is the exact failure that withdrew three controls in earlier rounds. Two things keep the other eighteen undrawn rather than one: NO EVIDENCE, since nothing here writes them and a key set for them would be transcription with no builder behind it, and DEPTH, `VideoAdInfo` being the proven case, since it carries a SIX-member union of its own (in_stream, bumper, out_stream, non_skippable, in_feed, audio) whose real settings sit three levels below the field. Exactly ONE ad type may be set either way: an object naming two is refused by Google outright. **SWITCHING AD TYPE CLEARS THAT TYPE'S FIELDS AND KEEPS THE URLS**, and that asymmetry is the design rather than a bug somebody should report. A key of the type just left does not belong to the object at all any more, because an ad holding two ad types is refused, while a common key belongs to the ad whichever type it is. So carrying them across is not leakage: it is the ad keeping its landing page while the advertiser changes what the ad looks like. The common keys do NOT make the choice optional either, because a bare `{ "finalUrls": [...] }` with no ad type is not an ad and Google refuses it. **THIS FORM CARRIES NO REPLACES-WHOLE WARNING, unlike its equivalents on the other four networks, and that is CORRECT rather than missing.** Google MERGES: `googleUpdateMask` walks down to LEAF paths, so a key this form does not send keeps the value it has, and Google is deliberately absent from the replacing set. THE EXCEPTION IS A LIST, and it is the trap worth knowing: the mask stops at repeated fields, so headlines you DO send replace every headline the ad has. Adding a fourth headline means sending all four, not the new one, and the same holds for descriptions and for every image slot. `finalUrlSuffix` is the one common key that can COST MONEY, and the automatic protection the ad group field of the same name carries cannot reach a key sitting INSIDE `ad`: nothing merges our tracking parameters back at this level, and those parameters are what matches sales back to the ad, so a suffix typed here can stop revenue and ROAS being attributed. Its help says so in those terms rather than naming the parameters, because an advertiser who has never heard of `utm_campaign` still needs to know what breaks. **NONE OF THE SIXTEEN IS PENDING.** Each of them keeps its code box for the reason printed beside it rather than for want of a turn, and all sixteen carry help text stating the exact shape to write. The honest end state of this work is a set of decisions a reader can check, not a backlog they have to guess at, and the fields that moved say what it would take to move another. None was reconsidered and none got an exception: the panel grew the thing their refusals had NAMED, a common half for `ad.ad` one pass and the ability to see the object being edited the next, and each field then cleared the same bar as everything else. READ THE PATTERN AS THE RULE: a refusal that names a gap in OUR panel can be answered by closing that gap, while one that names the network's own documentation cannot be answered here at all. If a future field genuinely needs a tenth mechanism, the answer is still to REPORT it and refuse the field rather than invent one: the declaration layer, the wire, both renderers and sixteen locale files would all have to move together, and a partial mechanism is worse than the code box it replaces. `variants.common` was not a tenth mechanism, it was a slot on the ninth, which is exactly why it could be added at all. **THE DASHBOARD IS ALSO NARROWER THAN THE API IN ONE PLACE, ON PURPOSE.** A Google campaign whose `campaign_budget` is shared with other campaigns renders its daily-budget cell READ ONLY, showing the same refusal sentence the API answers, so any claim that the ads dashboard lets an owner edit any campaign's daily budget is false for Google. Give the campaign a budget of its own, or change the shared budget in Google Ads. The API answers `409 CONFLICT` for the same edit, and the tree it reads already carried `budgetExplicitlyShared` and `budgetCampaignCount` on every Google campaign node - `budgetCampaignCount > 1` is what says `dailyBudgetCents` is a number this campaign SHARES rather than one it owns. **APPLE RUNS ON THE APPLE ADS PLATFORM API.** Every Apple call goes to Apple's Platform API (`api.ads.apple.com/v1`), which replaced Campaign Management API v5 before Apple turns v5 off on 2027-01-26. Our own field names did not change. **EIGHT ADS CAPABILITIES ARE STILL API-ONLY AND THEY ARE NAMED HERE RATHER THAN LEFT FOR SOMEBODY TO DISCOVER.** It was NINE until X's reach got a panel; see the reach paragraph below for what changed. Five of the eight landed together in the second pass over X's published reference, and they fail a per-ENDPOINT reading of this claim rather than passing it: each rides a tail whose screen already exists, so the endpoint has a screen and the parameter does not. **The third is X targeting**, and it is the largest hole of the three. X targeting has no screen at all. `…/ads/targeting` is where you read and change who an X line item reaches, and it exists because X is the only one of the six where targeting is a set of OBJECTS rather than a field. On Meta, TikTok, Snapchat and Apple it is one field on the ad set, ad group or ad squad; on Google it is a criterion the objects route already writes. On X every criterion is a row with its own id hanging off a LINE ITEM that carries no trace of it, so `…/ads/objects` had nothing to read or write and the resource catalogue has no `targeting_criterion` row for a panel to render from either. Until this landed, a campaign launched on X through this product wrote its locations once, at create, and could not afterwards be narrowed, widened or even READ without opening X Ads Manager. Two things on it are worth knowing before the first call: an EXCLUSION is `operator: "NE"` on the ordinary positive type rather than a `NEGATIVE_` type name, and inclusions and exclusions arrive in the same list under the same type, so a read that ignores `operator` reconstructs the opposite audience; and an empty criterion list is not an empty audience, it is a line item reaching everyone its placements can reach. **THREE MORE X FAMILIES RIDE THAT SAME SCREENLESS TAIL** and are API-only with it, kept in three id spaces rather than one merged list because a criterion id, a curated category id and an association id all wear the same short base36 shape, and one merged list is how a category id ends up handed to a criterion delete. `?resource=suggestions` is X's expansion of seeds you supply (`&type=KEYWORD` or `USER_ID`), read-only and the mildest of the four, because a person can do the same work by hand. `?resource=curated-categories` is X's pre-roll INVENTORY: a bundle of publisher accounts X assembles and sells per MARKET, which decides whose videos a pre-roll ad plays before rather than who sees it, and it refuses to answer without `&countries=`, because there is no global catalogue and defaulting to US would offer an advertiser in Brazil inventory they cannot buy, which they would discover at line item create. `?resource=line-item-categories` is which bundle an ad group is BUYING, with its own create, update and delete: the line item carries no trace of the purchase, so this list is the only place it is visible at all. **The second is X tracking tags.** X tracking tags have no screen: the family cannot ride the generic resource panel either, because that panel dispatches through RESOURCE_NETWORKS and the tracking_tag row has no adapter there, so the panel would 501 rather than render, which is the same gap wearing a table. Until the adapter is wired, a partner impression pixel or click tracker on an X line item can only be listed, added, moved or removed through this API. The LIST is the half a dashboard user has no substitute for: nothing on the line item shows that a tag exists at all, and X accepts two tags of the same type on one line item, which fires a measurement partner's pixel twice per impression. **The first is the catalog WRITES.** `POST …/ads/catalogs` (create a TikTok or Snapchat product catalog, or link a Google Merchant Center account), `DELETE …/ads/catalogs` and answering a Merchant Center link invitation have no dashboard control at all. The READ half is on screen - the campaign wizard lists catalogues and product sets through `…/ads/lookups` and writes the chosen id onto an ad group - and when the list comes back empty the wizard tells the owner, in the product, to create one from this API. That is a deliberate stopping point rather than a gap waiting to be filled: a catalog is a container for a product FEED, and nothing in Affiliateo uploads, validates or reads a feed. On Google that is the Merchant API, a separate product with its own OAuth scope and no connection here. A dashboard button that made an empty catalog nobody could then fill would be a worse answer than the sentence. **THE REMAINING SIX ARE X CAPABILITIES BEHIND A PARAMETER, AND TWO OF THEM DECIDE WHETHER AN AD RUNS AT ALL.** `POST …/ads/creatives?network=x` with `format: "media_creative"` is what a MEDIA line item serves, because X's pre-roll and TAP display objectives use no promoted post and no card at all, so the video is joined to the ad group as a media creative. `format: "promoted_account"` is what a FOLLOWERS line item serves. **X accepts either line item with no child row, reports zero on every metric, raises nothing and never serves**, so the absence has no symptom anywhere: it is a campaign that silently does nothing, for ever. `GET …/ads/creatives?network=x&resource=media_creatives` (or `promoted_accounts`) is the only way to see that the row is there, and DELETE on the same path is the only off switch either object has, because X publishes no PUT on either family and neither carries a status or a pause. **The edit and remove half of that tail landed late, and it is the largest of these additions.** PATCH `…/ads/creatives?network=x&resource=cards` changes ANY card X issued, taking { cardId, values }. Its absence used to mean a mistyped headline was a REBUILD: the card had to be built again and everything holding the old id re-pointed. Values are forwarded as X spells them, because this product does not know which fields each of X’s thirteen card types accepts and a map would drift against a surface X changes without announcing it, so an unpublished field comes back as X’s error naming it rather than ours. The change lands IN PLACE, so every post already carrying that card shows the new text. Five more PATCH resources: `conversation_cards` (needs `kind`, because X keeps image and video conversation cards in separate collections), `preroll_ctas`, `media_library`, and `drafts` and `scheduled`, which **replace** the post content rather than merging into it: X’s update takes the same parameter table as its create, so a field left out is CLEARED rather than kept. On a scheduled post `scheduledAt` is optional, so a typo fix cannot move the publish time by accident. **DELETE answers ten resources rather than two, and three deserve reading before they are called.** `?resource=scheduled` is the ONLY way to stop a scheduled post, which otherwise publishes itself at its minute with nobody watching; this product could create one and could not call it back. `?resource=scheduled_promoted` cancels the SPENDING and lets the post publish unpaid, which is the opposite of what it sounds like. `?resource=account_media` leaves any media creative pointing at nothing, with no error on X’s side and a line item that reports zero for ever. The other five are ordinary removes: `poll_cards` and `conversation_cards` (both HARD deletes, unretrievable afterwards even with `with_deleted`), `preroll_ctas`, `media_library` and `drafts`. **Two asset rungs, not one spelt twice.** GET `?resource=media_library` is what the ACCOUNT has NAMED, one row per media key carrying the title, description and poster a card renders from, and it is the only thing in this product that shows what an account already holds. GET `?resource=account_media` is a PLACED asset whose id is what a media creative takes. The same bytes carry a different id at each rung, which is the most expensive confusion in this family. POST `{ format: "media_library" }` is X’s SECOND upload call: bytes go to X’s media host and mint a key, and until that key is ADDED to the account’s library no card can hold it, which is the shape of an upload that appeared to work and left nothing behind. POST `{ format: "scheduled_promoted_post" }` is X’s only way to put MONEY behind a post at a chosen minute, and it mints a THIRD object, so cancelling the promotion and cancelling the post are different acts. **`…/ads/billing?network=x` is X’s account settings rather than a balance.** X has no spend-to-date anywhere: a funding instrument carries a credit limit and a funded amount, and any balance derived from those two is the wrong subtraction. What it does answer is `resource=tax_settings`, the identity X RAISES INVOICES AGAINST (tax id, category, bill-to party, invoice jurisdiction, postal address, plus the ten `client_address_*` fields X says to set when an agency owns the account), and `resource=user_settings`, where X sends notifications for a seat. Without `userId` that is the AUTHENTICATED seat, meaning whoever’s token connected the account. PATCH adds `resource=account`, which renames the ad account in ads.x.com itself rather than labelling it locally; on tax settings a field you omit is left ALONE rather than cleared. **The other four are reads.** `…/ads/conversions?network=x&surface=mobile` lists X's app event tags: which in-app events X tracks for a promoted app, the two attribution windows X will actually credit over, and `lastTrackedAt`, which is the only way to see that a measurement integration stopped without raising anything anywhere. The conversions SCREEN shows the WEB verdict only, and a healthy web row is exactly what an owner reads when the conversions that are missing are the app ones. **The POST beside it is refused rather than unbuilt**: X assigns mobile `conversion_event` to an approved mobile measurement partner, and behind that it hashes the device identifier with an HMAC key it issues to those partners and does not publish, so no value produced here would match. There is nothing to enable and nothing to retry. `…/ads/apps?network=x` is X's account app INVENTORY rather than TikTok's registry: nothing is added or removed, `appStoreIdentifier` is the value a card takes while `id` addresses that row and nothing else, and `conversionTrackingEnabled: false` means X is recording no installs and no in-app events for that app, so an APP_INSTALLS line item pointing at it is optimising against nothing. `…/ads/delivery-estimate?network=x&resource=bid-rules` is what X will accept as a cost-per-engagement bid in the account's currency, the one pre-launch check of the six networks published as a rule rather than delivered as a parameter error mid-launch. And `GET …/ads?network=x&reach=campaign` (or `reach=funding_instrument`) is X's de-duplicated headcount: X publishes no reach metric in any stats group and answers it from two separate endpoints, so it is a live call behind a flag rather than a stored column. **THIS ONE IS NO LONGER API-ONLY**, and it is why the count above reads eight rather than nine: a campaign-scoped X dashboard now fetches this exact call for the window on screen and renders it in the same reach panel the other networks use. It is still never STORED, and that is not an oversight: X's window is an INPUT, so a thirty-day range has ONE real de-duplicated answer while thirty stored daily rows would carry thirty figures nothing may add. The panel asks once per view rather than once per row, asks at CAMPAIGN level because that is a level X answers, and shows nothing at all on an unscoped page rather than a total, because an account's reach is not the sum of its campaigns'. X is also the one network of the six that answers a whole range directly, capped at 20 entity ids per call. **Nothing in that block may be summed:** two campaigns overlap by an amount nobody records, so the account-wide answer is a funding-instrument call rather than a total, and an id X did not answer for lands in `unanswered` rather than as a zero. The other splits are not ads reads at all and they are deliberate too: funding an app and ending one stay dashboard actions, and the OAuth consent an ad network demands can only ever be a hosted link. ### Is the conversion reporting actually working `GET /api/v1/businesses/{slug}/ads/conversions` answers the one question no other endpoint here asks. Everything else reports on campaigns; this reports on whether the sales this product records are reaching the ad networks it reports them to. All five server-side networks answer (Meta, TikTok, Snapchat, Google and X), or name one with `?network=`. **X's arm reports a failure none of the other four can have, and it is the reason X was worth adding here rather than left out.** X's conversion endpoint requires an `event_id` naming the advertiser's own PURCHASE web event tag, which is configuration on the connection rather than anything derived from a sale. A business with a pixel and no event tag reports NOTHING to X, every sale answers `no_event_tag`, and every other indicator on the page reads healthy. X can also CONFIRM its destination exists on the read itself, because it publishes a `web_event_tags` list, so the pixel a sale would be reported to is checked rather than assumed. TikTok cannot, and Google does it only through the `POST` check below. What X has no equivalent of is a TEST EVENT: `POST` with `network: "x"` answers `ok: false` carrying X's own reason instead of pretending to send one. **A WEBSITE'S OWN PIXEL STAYS, AND EACH NETWORK GETS PURCHASES FROM ONE SENDER.** Every network recommends its browser pixel (Meta Pixel, TikTok Pixel, Snap Pixel, X Pixel, Google's tag) together with a server connection, because the server still reports sales that ad blockers and browsers hide. So a business keeps its pixel for page views, add to cart and checkout started. The purchase is different: Affiliateo sends each website sale from the server (Meta, TikTok, Snapchat and X at the moment of sale; Google through the Data Manager sweep), with the payment provider's id as the event id (Stripe's PaymentIntent or invoice id, the other providers' transaction id), and a network merges two reports of one sale only when they carry the same event id. A pixel that also fires Purchase on the thank-you page uses its own id, so with both on the network counts every sale twice. Pick ONE sender per network, and tell the owner which: - RECOMMENDED, Affiliateo. Turn the pixel's Purchase event off (Meta's Events Manager, TikTok's and Snap's pixel settings, or the site's own code) AND turn on Sales with no click id (`PATCH …/ads/conversions { network, matchWithoutClickId: true }`, on Meta, TikTok, Snapchat and X). By default Affiliateo sends a network only the sales from buyers who came straight from its ad click, so with the pixel's Purchase off and this still off, the network never hears about buyers who saw an ad without clicking or switched devices. With it on, every tracked sale that carries the buyer's email goes too, hashed. - Or the pixel. Keep its Purchase event and switch Affiliateo's reporting to that network off: `PATCH …/ads/pixel?network=meta|tiktok|snapchat|x { "enabled": false }` (Google's is the same call on ?network=google), or Pixel in the ads settings. The pixel itself stays; only our reports stop, and turning them back on resumes from that moment (sales made while off are never sent). Do the same when the store already reports purchases through its own app or plugin (Shopify's Facebook & Instagram, TikTok or Snapchat app, a WooCommerce plugin): that app is the pixel here. On Google, keep exactly one purchase goal counting as primary: the one Affiliateo set up ("Affiliateo purchases") or the site tag's, never both. Every read of …/ads/pixel answers `uploads_enabled`. **APP SALES: THE MOBILE SURFACE ON META, TIKTOK AND SNAPCHAT.** A sale inside a phone app reaches the ad networks too, as an APP event: each app names a destination per network (the Meta dataset linked to the app, the TikTok App ID, the Snap App ID) and its FIRST payments go there (a subscription's first charge, a free trial's first real charge included on every payment provider, or a one-time purchase; renewals and refunds are not sent, because the networks optimise on the first payment and none of them takes an app sale back). SALES, TRIAL STARTS OR BOTH: each destination carries `send_events`, `purchases` (the default: first payments, as Purchase), `trials` (only the start of each free trial the payment provider confirms, as the network's own trial event: `StartTrial` on Meta and TikTok, `START_TRIAL` on Snapchat; never a Purchase, value 0, the plan's price as `predicted_ltv` on Meta and Snapchat, TikTok's events take none; event id the store's transaction id plus `:trial`, so it never collides with the purchase that follows) or `both` (two separate events; the campaign's goal on the network picks one). Pick `purchases` for most apps, so the campaign learns who pays, and `trials` for an app with a free trial and only a few sales a week, because trial starts come days sooner and more often. A trial start needs the payment provider connected: the paywall call is never taken for one. Two ways in, one event per payment, keyed by the store's transaction id: the payment provider connected to the app (RevenueCat, Apple, Google Play, Adapty) reports it on its own within two minutes, and the app can also report it from its paywall through `POST /api/v1/mobile/purchase`, which records no sale and moves no money. Every SDK has the call: `Affiliateo.purchase` in Swift, Kotlin and Flutter (4.9.0) and in the m.js script, `purchase()` from `useAffiliateRef()` in React Native (4.10.0), each taking the store's transaction id (RevenueCat's `transactionIdentifier`), the product id, the price in normal units and the currency. ON IPHONE THE APP NEEDS NO TRACKING PROMPT. A payment from someone who did not tap Allow (declined, or never shown the prompt) still goes, the way the measurement partners (AppsFlyer, Singular, Branch, Kochava) send such events: marked as not allowed to track (Meta's and Snapchat's `advertiser_tracking_enabled: 0`, TikTok's `att_status` DENIED or NOT_DETERMINED) and WITHOUT Apple's ids: no IDFA, no IDFV and no install id built on the IDFV, because Apple forbids combining the IDFV with another company's data without Allow. The network then uses it only as its rules for such people allow (Meta treats it as opted out and measures it through Aggregated Event Measurement). After Allow the advertising id and the IDFV go too, which matches best. On Android, Affiliateo's own install id (built on the Android ID) is never sent next to the advertising id, which Google Play forbids. WHY THIS RATHER THAN EACH NETWORK'S OWN SDK: the store confirms the payment before anything is sent (a paywall report the store never confirms is closed as `unconfirmed`), each sale goes out once, a first payment counts even when it happens while the app is closed (a free trial turning paid days later), one setup covers Meta, TikTok and Snapchat, and a network is switched on or off without an app update; a network's own SDK is added once per network and mostly sees what happens while the app is open. The advertising ids go with it, only as far as the person allowed: Swift and Kotlin read them, React Native reads them from expo-tracking-transparency, expo-application and react-native-fbsdk-next when the app has them, and Flutter and the script take them through `setAdIdentifiers` (the tracking answer, the advertising id, the IDFV on the script). MATCHING A PAYMENT THE PROVIDER REPORTS ALONE: it carries no phone details, so it is tied to the phone the SDK saw (the visitor, through the App Store's appAccountToken, the app's own paywall call for the same transaction, or the trial it grew out of) and, when it has no address of its own, that phone's last network address and user agent from the SDK, kept up to 35 days, only while the app sends app sales to some network, and sent only with that phone's own payments; the paywall call still matches best. `?network=meta&surface=mobile` (or tiktok, snapchat) answers each app's destination, its `send_events`, and the newest payments and trial starts (`kind` subscribe | purchase | trial) with what the network said; `PATCH { network, surface: "mobile", appId, destinationId, send_events? }` sets one (null removes it; `{ appId, send_events }` alone changes what it sends, also accepted as `sendEvents`, and the answer carries `send_events`); `POST { network, surface: "mobile", appId, testEventCode, event? }` sends one test app event to the network's test feed (`event: "trial"` tests the trial start; without it the app's own choice decides). PAYMENTS ONLY, NOT INSTALLS: a network counts an app's installs, which app campaigns optimise for, through its own SDK in the app or a measurement partner (AppsFlyer, Adjust, Branch, Singular, Kochava). So an app that runs app campaigns on Meta, TikTok or Snapchat adds that network's SDK (or a partner) for installs and keeps this destination on for payments. SEND EACH NETWORK THE APP'S SALES ONE WAY ONLY: keep that SDK's installs but turn its purchase reporting off, or leave this destination off, or the network counts every sale twice. The network matches two reports of one sale only on the same event id, and its own SDK doesn't send the store's transaction id that Affiliateo uses (Affiliateo's own two ways are matched on it and go out once). How, per SDK. Meta: in the app on Meta for Developers, Settings > Basic, set the switch that logs in-app purchases automatically to No on the iOS and Android cards, and leave the SDK's automatic logging itself on (FacebookAutoLogAppEventsEnabled in Info.plist, com.facebook.sdk.AutoLogAppEventsEnabled in the Android manifest), because turning that off stops installs and launches too. TikTok: on iPhone `config.disablePaymentTracking()` on its TikTokConfig; on Android its SDK reports purchases only after `enableAutoIapTrack()`, `trackGooglePlayPurchase()` or a Purchase event the app tracks itself, so do none of those. Snapchat: send no purchase from its SDK. A measurement partner that forwards purchases to the network counts the same way: stop forwarding them, or leave this destination off for that network. On iPhone, Meta measures the people who do not tap Allow best through the Meta SDK inside the app (Meta documents its Aggregated Event Measurement for apps through that SDK): Affiliateo's SDK (Swift, Kotlin, React Native) finds the Meta SDK's anonymous id and sends it with each payment, so Meta ties the payment to the install its SDK saw and each sale reaches Meta once. TikTok takes app events from a server only for ad accounts it has allowlisted; Snapchat's attribution reports expect a measurement partner. Google has no such door and answers 501: its app conversions come from Google Play (link the Play account to Google Ads and Android first payments count with no code) or Firebase. **X HAS A SECOND CONVERSION SURFACE AND IT IS A PARAMETER HERE RATHER THAN A ROUTE OF ITS OWN.** The half above is the WEB pixel. The MOBILE half is X's app event tags, on a different endpoint with a different caller, and `?network=x&surface=mobile` answers about it. They are two endpoints and ONE question: are the sales this product records reaching X. An owner whose APP conversions are missing does not know in advance which half the answer is in, which is exactly the person a second route would strand: they would read the healthy web verdict and stop looking. One row per tracked in-app event per app. `lastTrackedAt` is the diagnostic, because a stale value is a measurement integration that stopped with nothing raised anywhere; `postEngagementAttributionWindow` and `postViewAttributionWindow` are what X will actually credit over, which decides whether a sale recorded on day 10 could ever have been counted; and `appStoreIdentifier` is the join key back to our own mobile apps, which is why it can be filtered on here: X publishes no server-side filter for it, so that narrowing happens on our side. `&appEventTagId=` reads one, deleted included. **THE WRITE ON THAT SURFACE IS REFUSED RATHER THAN UNBUILT, AND THE REASON IS X'S.** X assigns `POST conversion_event` to an approved mobile measurement partner, never to an advertiser, and there is a second blocker behind that one: X hashes the device identifier with an HMAC key it issues to those partners and does not publish anywhere, so no value produced here would match even with approval. `{ network: "x", surface: "mobile" }` on the POST answers 501 with that sentence, and no request leaves this server. Do not read it as a gap to fill or a call to retry. **CHOOSE THE TRACKING SETUP BY WHAT IS ADVERTISED.** The same short table is on /docs/apps/ads#tracking-setup, so an owner and their assistant read one answer: - A WEBSITE on Meta, TikTok, Snapchat or X: the network's own pixel stays for page views, add to cart and checkout, and purchases get ONE sender per network, as above: Affiliateo (recommended, because the server also catches the sales ad blockers hide; the pixel's Purchase off and Sales with no click id on) or the pixel (Affiliateo's sending to that network off). A WEBSITE on Google: the Google tag for visits, Affiliateo sends the purchases, and one purchase goal counts as primary. - A PHONE APP running app-install ads on Meta, TikTok or Snapchat: the network's own SDK in the app (or a measurement partner) is REQUIRED, because Affiliateo sends payments, never installs. Its purchases go ONE way per network: (a) the network's SDK logs them, the simplest, with Affiliateo's Send app sales left off for that network; or (b) Affiliateo's Send app sales, which sends a payment only once the store confirms it and still counts a free trial that turns paid while the app is closed, with the SDK's own purchase logging turned off (how, per SDK, is above). Send app sales sends Sales, Trial starts or Both per app per network: Trial starts (as the network's trial event, never a Purchase) suits an app with a free trial and only a few sales a week; Sales suits the rest. TikTok takes app sales from a server only after the advertiser's TikTok rep allows it, so TikTok's SDK reports the purchases until then. - IPHONE APP ADS ON META NEED ONE MORE STEP IN META, OR META'S REPORTS SHOW INSTALLS ONLY. An iPhone app campaign on Meta is measured through Apple's SKAdNetwork (Affiliateo's launcher creates it that way, because Meta otherwise limits it to iOS 14.4 and older), and Apple reports only the events listed in the dataset's SKAdNetwork setup. In Meta Events Manager: the app's dataset > Settings > App > Apple's SKAdNetwork > Configure events, choose the Facebook SDK option, add Purchase first and Start trial second, then Apply. An event shows in that list only after Meta has received it once. Until it is set up, trials and purchases that Meta's SDK logs in the app never show on those campaigns. Do it before the ads start: Meta pauses that app's running ads for 72 hours when these events change. Apple reports them a day or more late and leaves some out when a campaign is small. - GOOGLE APP CAMPAIGNS: Android needs no code (link Google Play to Google Ads); iPhone needs Google's Firebase SDK (Google Analytics for Firebase) linked to Google Ads. Affiliateo cannot send app sales to Google. - AFFILIATEO'S DEVICE LINK (the referral link that sends iPhones to the App Store and Android phones to Google Play) is for creators and affiliates to share, NEVER an ad's destination: Google disapproves ads whose link redirects to another domain, and Meta and TikTok app ads link to the store listing directly. - None of this needs the iPhone "Allow tracking?" prompt, and one purchase never goes to one network two ways: it would count twice. **Read `reporting` and `evidence` as different claims, because they are.** `reporting: "on"` means the setup looks healthy on our side - a pixel is configured, a credential exists, nothing is blocked. It is NOT a statement that events land. `evidence: "network_reported"` is the only field carrying an answer from the network itself. On Meta it covers every source firing that pixel rather than only ours; on Google it is Google's answer to the sales we sent. Treating the first as the second is the unfalsifiable green tick this endpoint exists to remove. Also on every row: `connected`, `destination`, `blocked_reason`, `last_event_at`, `match_without_click_id` and `notes`. **`POST` fires one real test event, which is how a human proves it rather than trusting it.** Meta and TikTok both have a test stream keyed by a code from their own dashboard: `{ network, testEventCode, url? }` sends an event carrying that code, it appears in their live feed within seconds, and it is NOT counted as a conversion - so the round trip is watchable against a production pixel without inventing a sale. `network: "snapchat"` has no such stream but has something better for this question, an endpoint that validates the credential and ingests nothing, which is also the one call that settles whether Snapchat accepts the token at all. **Google's is a check that records nothing**: `network: "google"` needs no code, and Google's Data Manager API validates a made-up sale for the business's conversion action (`validateOnly`), so nothing is counted and nothing appears in Google Ads. `ok: true` means the permission, the account and the conversion action line up. It cannot prove a real click will match, because Google reads the gclid only when it processes a real sale. That answer is on the GET: Google's row reads `reporting: "on"` once tracking is set up and the permission is granted (`blocked`, with the permission message in `blocked_reason`, while it is not), its `evidence` is `network_reported` with `last_event_at` set to when the newest sale Google counted was sent, and its `notes` carry the last 30 days' counts and Google's newest complaint. **`PATCH` carries two settings, both per-network and both off by default.** `matchWithoutClickId` reports sales that carry no click id but do carry a hashed buyer email; it stays off until switched on, because sending a network a purchase it never touched is a decision about customer data and belongs to the owner, and it is refused for Google, because Affiliateo sends Google only sales that carry a Google click id (gclid), and never a buyer's email. `capiToken` is Snapchat-only: the long-lived token an Organization Admin mints by hand, which a multi-tenant OAuth flow can never obtain, and supplying it also clears any standing auth block. Both need a read & write key. ### The ads platform fee Campaigns **created OR MANAGED through Affiliateo** (dashboard, API, or an AI agent) carry a 1% platform fee on their spend, metered from the business wallet as spend syncs. MANAGED means any successful write on the campaign or on anything under it - budgets, bids, targeting, creative, and **a pause or a resume too**. There is no exempt edit: a paused campaign spends nothing and 1% of nothing is nothing, so the only thing an exemption would buy is an argument about which of ~390 editable fields across five networks counts as real management. A write starts that campaign's meter **from that day forward and never retroactively** - a campaign already metered keeps its original, earlier start date. CREATING a child object counts the same way: adding an ad set, ad group, ad, keyword or criterion inside a campaign built in the network's own manager meters **that campaign**, from that day. The child is never metered separately, because its spend already rolls up. An account inside its **partner-link fee trial** pays nothing here either, for the first 7 days after signup. The trial is applied per spend DAY rather than at the moment the meter runs, so spend from a day inside the window is written free and stays free even though ad fees settle about two days behind it. See "The partner-link fee trial" above. Connecting an ad account and only READING it is **free**: stats, campaign trees, audiences and every other GET cost nothing, and a campaign nobody has ever created or written to through Affiliateo is never metered and never touched. Unpaid fees pause the ads endpoints with `PAYMENT_REQUIRED` past a grace allowance. Past the account's campaign-pause limit (starts at $50, rises to $1,000 with clean payment history) the metered campaigns are paused on the networks until the balance is back to zero. The answer to a 402 is `POST /api/v1/me/topup-link`. While any billed fee is unpaid, two writes are refused with `PAYMENT_REQUIRED` however small the balance: switching a metered campaign back to ACTIVE, and CREATING a campaign that starts ACTIVE. Creating one **paused** is never blocked - it spends nothing, so it owes nothing - and it can be switched on the moment the balance reaches zero. ### What is gated Connecting a network is an OAuth consent and **cannot be an API call**. Mint a hosted link with `POST /ads/connect-link` and hand it to the business owner. Funding an app and ending it are likewise dashboard-only. ### The ads settings, on the API Everything behind the gear icon of an ads app is on the API for the owner's key, run by the same functions the screen runs: - **Which ad accounts are tracked.** `GET …/ads/accounts?network=` lists the accounts the connection reaches, with `enabled`; `PATCH` with `{ enabled: [externalAccountId, …] }` is the WHOLE choice (the rest are switched off). Tracked accounts are what the sync pulls, what `…/ads` shows and what the 1% fee counts on. - **Track your sales.** `…/ads/sites` adds a website (`{ kind: "web", website_url, provider }`) or a mobile app (`{ kind: "mobile", name, provider }`) whose sales count toward ad revenue, with no affiliate program. The answer names the next two steps: `connect` is the call that connects its payment provider (`POST …/apps/{site.id}/connections/{provider}`, which takes a tracked site's id), and a website installs `snippet` on every page while a mobile app uses the SDK with the site id as its app id. `PATCH …/ads/sites/{siteId}` with `{ paused: true }` turns one off and `{ paused: false }` back on (`DELETE` turns it off too). Off is a PAUSE: the same row keeps its id, payment connection and history (still in Revenue and ROAS, marked paused), counts no new sales (refunds of recorded sales still come off) and frees its slot under the 10. Adding the same website host or a phone app of the same name again turns the paused row back on (`reopened: true`). A site or app one of the business's affiliate apps already covers is refused 409 `already_tracked_as_affiliate_app`, naming that app. - **Tracking tags for hand-built campaigns.** `GET …/ads/tracking-params` answers the string to paste on a campaign built in the network's own console, the field it goes in and where that is. Campaigns launched here are tagged already. - **The pixel.** `POST …/ads/pixel?network=tiktok` with `{ setUp: true }` and a bare `POST …/ads/pixel?network=snapchat` do what the Pixel row's Set up button does (adopt the account's pixel, TikTok creating one if there is none, and report website sales to it); `PATCH …/ads/pixel { enabled }` switches that reporting on or off on any of the five. - **Disconnect.** `POST …/ads/disconnect?network=` is as soft as the button: campaigns keep running and stats stay; reconnecting is a connect link. ### Devices, age and gender on every network One shape on all six networks: `devices` (any of `computer`, `iphone`, `android`; empty or all three means every device, and iPads count as iphone), `ageMin`, `ageMax`, `gender` (`all`, `men`, `women`) and `minOsVersion`, the oldest phone software the ad reaches (`{ "iphone": "26.5" }` or `{ "android": "10.0" }`; `{}` or null for every version). - **At launch** (`POST …/ads/campaigns`): Meta `adset.devices`, TikTok `adgroup.devices` and `adgroup.ageMin`/`ageMax`, and Snapchat, Google and X at the top level. Apple keeps its own `adGroup.targeting.deviceClasses` (iPhone or iPad). - **What each network can do.** TikTok and Snapchat run on phones, so `computer` is refused. Google Search, Performance Max and Shopping can pick computers or phones but not one kind of phone; Display and Demand Gen can (an operating-system criterion). Google cannot mix computers with only one kind of phone. Google App campaigns and Meta Advantage+ take no devices, age or gender. An app-promotion launch is fixed to its app's store. - **Ages in groups.** TikTok and Google sell ages in groups, so a typed range is widened to every group it touches (Google's are written as exclusions, leaving its unknown-age group in); X takes one group per line item, the one that covers the range while keeping the youngest age as close as X allows (18-24 runs as 18-34, never reaching 13-year-olds). - **After launch.** `GET …/ads/basic-targeting?network=&id=` answers `{ network, id, level, targeting, support, mixed?, notes? }`. id is the Meta ad set, Snapchat ad squad, TikTok ad group (manual or Smart+), X line item, Apple ad group (add `&campaignId=`) or Google campaign (devices live on the campaign; age and gender reach every ad group, and `mixed` says when they differ). `PATCH` the same URL with any of the five keys changes only those, merged into the network's own targeting, which Meta, Snapchat, Apple and manual TikTok otherwise replace whole on every write. Refusals are 400 `VALIDATION_ERROR` before anything is sent. `support` carries `minOsVersionPhones` (the phones a version can be set for here, empty for none) and `minOsVersionNote`. - **The oldest phone software.** `minOsVersion` limits an ad to phones on that version and newer, so an app that needs iOS 26.5 stops paying for older iPhones that cannot install it. Versions are "major.minor" strings ("26" reads as 26.0, "26.5.1" is refused; send strings, since the number 26.10 arrives as 26.1). ONE kind of phone at a time: the version's phone must be the only phone the ad reaches (iPhone only or Android only in `devices`, computers riding along where the network allows, or an app ad's store phone when devices are not set), else it is refused in plain words. Moving devices to the other phone drops the old version. On PATCH it is replaced whole. At launch: Meta `adset.minOsVersion` (manual product only, every goal including app installs; refused on Advantage+; written as user_os `iOS_ver_26.0_and_above`), TikTok `adgroup.minOsVersion` (every objective; min_ios_version / min_android_version, and on Smart+ it switches the ad group to MANUAL targeting, the only mode where TikTok honours it), Snapchat `minOsVersion` (os_version_min on the phone's device spec), X `minOsVersion` (one PLATFORM_VERSION row) and Google `minOsVersion` on Display and Demand Gen only (an operating_system_version criterion, 630555 = iOS 26.5 and above, in place of the every-version one). Apple ads and Google App campaigns have no version setting. Changing it sends the ad back to review on networks that review targeting changes (Meta, Snapchat). - **Which versions a network offers.** `GET …/ads/os-versions?network=meta|google|tiktok|snapchat|x&phone=iphone|android[&account=]` answers `{ network, phone, versions: [{ version: "26.0", value, label: "iOS 26.0 and newer" }], anyVersion?, note? }`, newest first, read live from the network and kept six hours. `version` is what `minOsVersion` takes; `value` is the network's own spelling, never needed. Apple answers 400. READ IT FIRST: a version the network does not offer is a 400 naming the nearest it has on each side ("Meta has no “iOS 26.5 and newer”. The nearest it offers: iOS 26.0 and newer, or iOS 27.0 and newer. iOS 26.0 also reaches phones that are older than 26.5."), and nothing is created or changed. On 2026-10-22 Meta offered iOS 26.0 but refused 26.5 while Google had 26.5. ### Affiliates running ads to their own link An affiliate can advertise their affiliate link of another business from THEIR OWN business in Affiliateo, with their own connected Meta, TikTok, Snapchat or Google ad account, using the affiliate link as the ad's link (campaigns launched here are tagged; a hand-built one needs the string from `…/ads/tracking-params`, so each click carries the campaign id). - **What they see.** A sale from that ad is credited to the campaign in their own Ads dashboard with the COMMISSION THEY EARNED as its revenue, so ROAS is commission over spend. `GET …/ads` puts `affiliateSales` on that campaign row: `merchants` (by name), `commissionMicros` and `lifetimeCommissionMicros` (already inside `revenueMicros` and `lifetimeRevenueMicros`), `saleValueMicros` and `lifetimeSaleValueMicros` (what the buyers paid, context only) and `sales`. It is absent on every other row. Only the affiliate's own sales are read, so nothing else of the merchant's shows. - **The merchant's switch.** `share_ad_sales_with_affiliates` on each Affiliate app (`GET/PATCH …/apps/{appId}`, MCP update_app), off by default, is the app wizard's "Let affiliates send the sales they bring to their own ad accounts", under the commission; `share_ad_sales_with_affiliates_since` says when it was last turned on. When on, a sale an affiliate's OWN ad brought through that app (a first payment credited to their link, carrying a campaign id that a business they own runs on that network, and that network's click id) is also sent to their own pixel or Google conversion action, as a website purchase valued at their commission in US dollars, with their own event id (`aff_` + the sale id, so nothing counts twice on either side) and only the click id and the browser's user agent to match on, never the buyer's email. An app sale goes the same way, tied to the ad click the install was matched to; a phone that refused ad tracking is not sent, nor is a sale made while the switch was off. The affiliate's own switches still apply (website sales off, no pixel, Google's permission). - **The affiliate's status.** `GET …/ads/affiliate-sales?network=` (MCP get_affiliate_ad_sales, owner key): `applies`, `programs` (each business they promote and whether it shares), per network `last_30_days` (`delivered`, `waiting`, `not_sent`, `problems`) with `latest_problem`, and the newest sends. - **Links.** Meta, TikTok and Snapchat take an affiliate link on a website campaign. Google may reject an ad whose link jumps to another domain, so on Google link to the merchant's own page with `?ref=` and the affiliate code. App install campaigns link to the store listing and cannot carry an affiliate link. Your own platform fee (1 means 1%, 0 during a fee trial) is `GET /api/v1/me/platform-fee`: price a campaign from it rather than assuming 1%. ### TikTok audiences, catalogs, promoted apps, rules and custom conversions Five TikTok capabilities beyond campaign management. Each rides a TikTok permission, and TikTok has now **granted** every one of them - verified against a live account on 2026-08-02, where audiences, saved audiences, rules and apps all answered with real (empty) lists rather than refusals. Custom conversions never needed a new permission: they ride Pixel Management, granted 2026-07-15. Nothing is switched off at our end and there is no flag to set. **If one of these still refuses you**, the account is fine and the TOKEN is stale: OAuth permissions are fixed into an access token at consent, so a business that connected TikTok BEFORE the approval must reconnect once before those calls succeed. The refusal comes back as `UPSTREAM_ERROR` carrying TikTok's own message with the permission named in it, which is the signal to tell the owner to reconnect rather than to retry with different arguments. - **Audiences** (permission: Audience Management). Reach for this to retarget people a signal source already saw, or to expand from them. Two objects, not one: a CUSTOM audience is a set of people (rule-based, built from your own pixel, app, engagement, lead-gen, shop or offline signals, or a lookalike seeded from another audience), while a SAVED audience is a whole reusable targeting set (locations, ages, interests, plus which custom audiences to include and exclude) and is what an ad group's `saved_audience_id` points at. Saved audiences ride a `?type=saved` discriminator on every verb and answer under their own key, because the two id spaces are indistinguishable and a delete aimed at the wrong one is destructive. Customer-list uploads of hashed emails and phone numbers are deliberately not offered here, exactly as on Meta: rule-based audiences do the same jobs without buyer PII flowing through us. The one field pair to get right is retention: `lookbackDays` decides who is IN the audience, `expireInDays` decides when the audience itself dies, and swapping them succeeds upstream while building a different audience. - **Product catalogs** (permission: DPA Catalog Management). Reach for this when the ad should show products rather than one creative. A catalog holds products, a product set is a rule-defined slice of one, and those supply the `catalog_id`, `product_set_id` and `product_ids` a Smart+ catalogue ad sends (plus a manual ad's `sku_ids` and `item_group_ids`). Catalogs are **Business Center scoped, not ad-account scoped**: they take `?bcId=` and the `?account=` selector every sibling route honours is refused rather than ignored. Products arrive by giving TikTok a feed URL it fetches itself, so a successful upload means queued, not imported, and the upload log holds the per-row verdicts. Two TikTok asymmetries: a catalog's currency and region can never be changed after creation, and product sets cannot be created through the API at all (make them in Business Center, then read the id back). A catalogue is not just an inventory here - it is what TikTok's `product_sales` objective launches out of, so this is the read that unblocks a catalogue campaign. **The same path serves two other networks on two other scopes**, which is the thing to know before reaching for `?bcId=`: `?network=snapchat` lists and creates catalogues on the ORGANIZATION (which comes from the connection, so there is no scope parameter at all, and `currency`/`regionCode` are refused by name because a Snapchat catalogue has neither - currency belongs to each product feed); `?network=google` is not a catalogue but the Merchant Center **LINK**, which hangs off the ad ACCOUNT, so `?account=` is the right selector there, and `&resource=invitations` is where a link started from the Merchant Center side sits waiting to be accepted. Meta answers 501: `catalog_management` was not granted. PRODUCT SETS EXIST ON TIKTOK ONLY - Snapchat publishes no endpoint that lists one anywhere in its Marketing API, which is exactly why it can list catalogues and still not launch a product-sales campaign. - **Promoted apps** (permission: App Management). Reach for this to build an app-install or app-retargeting campaign: it is the only source of the `app_id` field, and a second read returns the optimisation events one app may legally bid on for one goal, which is what an ad group's `optimization_event` takes. Read-only on purpose, because TikTok's app API has no delete and a registration's tracking URLs are third-party measurement postbacks. Note the word collision: a promoted app is a mobile app on TikTok, NOT an Affiliateo app (an affiliate program), and they live under different paths. - **Automated rules** (permission: Automated Rules). Reach for this to leave standing automation behind, since a rule runs on TikTok's schedule long after the agent that made it is gone. Same idea as Meta's rules, different object: conditions, actions, apply objects, notification and schedule are all required. Three things bite. Money thresholds come in a cents spelling and a dollars spelling and sending both is refused rather than guessed. An apply-objects entry with no ids means EVERY object at that level in the account, so it needs an explicit confirmation flag. And TikTok's update is a FULL REPLACE while Meta's is a partial, on the same verb, so a Meta-shaped patch aimed at TikTok would strip the rule and return success; read, merge, then send the whole rule. TikTok publishes no rule delete and no enable/disable at all, so narrowing the apply-objects list is how a rule is pulled back. A results feed is available to audit what the rules actually did. - **Custom conversions** (permission: Pixel Management, ALREADY GRANTED, so this one works today. TikTok's portal also lists a "Custom Conversion Management" permission; it guards none of these endpoints). Reach for this to teach TikTok to count something specific, then optimise toward it. **The word names a different object on each network**: on Meta it is an account-level object watching pixel traffic for a URL match, while what this endpoint manages on TikTok is an event rule living ON a pixel, so every TikTok call takes a pixel id and deleting one changes that pixel. Corrected 2026-08-05 after a live call: this used to say TikTok has no custom conversion object at all, and it does - a separate first-class family at `/custom_conversion/` keyed by custom_conversion_id and scoped by an event source that may be an APP or a PIXEL. This endpoint does not wrap that family; a pixel event rule is a real object but a different one. That family is READABLE through the managed-resource surface instead (`GET …/ads/resources?resource=custom_conversion&network=tiktok` with `eventSourceId` and `eventSourceType=PIXEL|APP`), and the same ids answer as an id LOOKUP at `GET …/ads/lookups?network=tiktok&type=custom_conversion&eventSourceId=…`, which is what fills the Smart+ ad group's `custom_conversion_id`. Its writes are wrapped nowhere on purpose: the endpoints exist, no request body for them has ever been observed, and TikTok answers an unrecognised field with silence rather than an error. TikTok also runs two event vocabularies and only one of them works here: the optimisation vocabulary (SHOPPING) rather than the Events API vocabulary (Purchase). An unrecognised name is not an error upstream, it is filed as a custom event and returned as success, leaving a conversion no ad group can bid on, so it is refused before the call. A firing-stats read answers whether the conversion ever actually fires, which is otherwise indistinguishable from working until the campaign underdelivers. The same operations appear under the pixel path as a sub-resource, since that is where they physically live on TikTok's side. One TikTok write nearby is NOT gated: renaming a pixel rides Pixel Management, which TikTok granted already, so it works today. ## The API Base URL `https://affiliateo.com`. Documentation at https://affiliateo.com/docs/api, OpenAPI 3.1 at https://affiliateo.com/openapi.json, machine-readable index at https://affiliateo.com/api/v1. ### Authentication `Authorization: Bearer afk_…` Generate keys in the dashboard: any business dashboard → API tab. Keys are account-level and cover every business you own. A read_write key can be limited to the AREAS it may change (businesses and apps, products, content: courses, events, the calendar, FAQs, files and posts, community: the chat, bans, members, support tickets, the support settings and Live Chat settings, affiliates, leads and invoices, ads, webhooks): a change outside them is 403 FORBIDDEN naming the area, and reads are never limited. MONEY MOVES ONLY THROUGH A KEY WHOSE PAYOUTS SWITCH IS ON, with a daily limit the owner sets: it can approve clips (POST …/submissions/{id}/approve), approve requests (POST …/requests/{id}/approve) and pay affiliates (POST …/payouts) and a web traffic app’s clicks (POST …/apps/{appId}/click-payouts), up to that amount in any 24 hours; past it nothing moves and the answer is 403 PAYOUT_LIMIT_EXCEEDED. Refunds, paying team members, and funding or ending an app stay in the dashboard. TEAM KEYS: a co-founder, manager or moderator can make a key on their own account and use it where their role reaches in the dashboard, the owner’s switches included: events, the calendar, FAQs and posts (manageContent, manager and up), reading the chat and pinning (pinMessages), bans (banMembers, never of the owner or of staff) and support tickets (answerSupport), plus ads (manageAds, co-founder). Everything else is the owner’s; GET /api/v1/businesses lists the businesses a key’s holder works in under team_businesses, with the role and permissions. Keys come in read-only and read-write levels; every write endpoint says so in its description. ### Rate limits 600 requests / minute by default (per-key overrides available for large integrations) Expensive endpoints have tighter additional budgets on top: campaign launch 10/min, uploads 10/min, sync 4/min, writes 30/min, app and product creates 10/min, app and product updates 30/min. 429 responses carry Retry-After. ### Caching links.qr is immutable. A short code never changes, so the same URL is the same square for the life of that affiliate; it ships Cache-Control: public, max-age=31536000, immutable. Leave it to the browser: do not proxy it through your own server and do not add a cache-busting parameter, since both discard the only free win here. Never cache an affiliate read itself. Clicks, conversions and earnings move, so a cached response shows numbers that are simply wrong. Use stale-while-revalidate in your interface instead: hold the last successful payload, paint it on the first frame, refetch in the background, and let only a cold cache show a spinner. The links ride the same payload as the numbers, so a return visit renders the QR immediately with no extra call while a new sale still lands a moment later. Key that cache by the signed-in user. A cache held outside your component tree outlives a sign-out in the same tab, and showing one person’s referral links and balance to whoever signs in next is a leak, not a stale render. Refresh on tab focus (visibilitychange), never on a timer. The rate limit is per KEY and shared across every one of your users, so a poll multiplies by your whole user base, while a focus listener costs one request from the person actually looking at the page. For server-side freshness prefer webhooks over polling entirely. ### What stays in the dashboard, on purpose Everything an owner does in the business dashboard is on this API and the MCP server except these, each left to the dashboard on purpose. Anything else missing is a gap, not a choice. - Deleting a business: it takes down its products, apps, affiliate links and members’ access at once and stops every subscription, and a retried call would do it twice. - Refunding a payment: a key moves money only to pay creators and affiliates, behind its Payouts switch and daily limit; money going back out of the business stays with a person. - Paying a team member: money out of the business, the same rule. - Funding an app and ending one: funding moves wallet money into the app’s budget, and ending an app refunds what is left of it. - Reporting a collab request the creator did not fulfil: it takes back the budget reserved for them, with a screenshot as proof. - Answering a dispute: Stripe takes one answer per dispute, with documents. GET …/payments/{paymentId} reads its state, its deadline and the dashboard link where it is answered. - Making, changing and deleting API keys: a key that could manage keys could widen its own areas or raise its own payout limit. - Seeing a webhook’s signing secret again: the API answers it once, when the webhook is made, as Stripe does; a key that could read it later could sign events of its own. - Connecting Adapty: its setup shows a webhook secret that is enough to report sales. - Sending and deleting chat messages: a message is a person speaking, so a key reads, searches and pins the chat and bans people but never speaks for anyone. - Connecting and disconnecting Google Calendar: Google needs the owner in a signed-in browser, and a key never takes away the calendar booked calls are written to. Not dashboard-only, but needing a person: the consent screens of the ad networks, Stripe, Polar, RevenueCat, Shopify and WooCommerce, and adding money to the wallet. The API answers a link the owner opens and approves: POST …/ads/connect-link, POST …/apps/{appId}/connections/{provider}, POST /api/v1/me/topup-link. Your own account outside any business: the API has your earnings, conversions, wallet, platform fee and payout links (/api/v1/me/…). Your direct messages, notifications, follows, profile and purchases are not on it. ### Errors Envelope: `{ "error": { "code", "message" } }` Codes: `UNAUTHORIZED`, `FORBIDDEN`, `ACCOUNT_INELIGIBLE`, `BANNED_FROM_BUSINESS`, `NOT_FOUND`, `VALIDATION_ERROR`, `CONFLICT`, `NOT_CONNECTED`, `PAYMENT_REQUIRED`, `PAYOUT_LIMIT_EXCEEDED`, `RATE_LIMIT_EXCEEDED`, `UPSTREAM_ERROR`, `NOT_IMPLEMENTED`, `INTERNAL_ERROR` ### What changed On 2026-09-28 three values changed meaning; no field was renamed or removed. `payouts.paid_cents` keeps a commission that was paid before its sale was refunded in full (the refund waits, negative, in `payable_cents` until a later payout nets it; it used to drop out of `paid_cents`). A storefront affiliate's `stats.commission_cents` is net of partial refunds and of what an open dispute holds, which is `stats.on_hold_cents`. On `GET /api/v1/me/wallet`, `held_cents` is each recent credit less what a refund or a dispute already took back of it (it counted the whole credit), and `disputed_cents` is what open disputes hold right now (it was always 0). Every `payouts` object also carries `on_hold_cents`: the unpaid commission of sales a dispute holds, which no payout pays until the bank decides and which joins pending or payable again if the seller wins. A commission paid before the dispute stays in `paid_cents`. On 2026-09-30 conversion rows and webhook events gained `correction`, and webhook events gained `payout_status` and, on dispute events, `data.dispute` (see Webhooks). On 2026-10-01 a dispute event's `payout_status` began counting what the sale's refunds and restores moved (it read the sale row alone), and a sale refunded in full while its dispute was open stopped sending `conversion.dispute_released`. ### Endpoints #### Products What the business’s storefront sells: up to four plans per product and a sales page built from elements. Same validation as the dashboard editor. Matched first, and excluding /ads/, because an ad catalogue keeps products of its own under /ads/catalogs and those are the ad network’s, not the storefront’s. - `GET /api/v1/businesses/{slug}/products` Every product the business sells (active and archived, never deleted), in storefront order, and main_product_id (the product an affiliate’s main link opens right now: the owner’s star while it is on show, else the oldest on show; null when nothing is): id, short id (prod_…), URL slug + public URL, name, headline, image, pricing type, every plan (price, interval, setup fee, name, bullets, button label, accent, affiliate commission, stock cap) with subscribers, sales and units sold per plan - units are COUNTED from succeeded payments, a refund returns the unit - plus the product’s subscribers, sales, checkout views and conversion rate, and app_slugs (the products tab’s Apps column). The id/slug source for the product calls. Owner’s key only. - `POST /api/v1/businesses/{slug}/products` Create a product - the same validation as the dashboard editor (max 4 plans, no two at one price and period, percent commission ≤90, whole-unit stock caps, FAQ limits, every page element checked, every text element sanitized). Pricing IS the plan list: send pricing_options, never a product-level price; an empty list or pricing_type "free" is a free product; always USD. banner_url (public https image, fetched server-side) is required - it is the hero, the thumbnail and the share card; video_url (an H.264 MP4, fetched by this server, so 64MB is the ceiling) optional; a longer video, up to 500MB, goes on in the dashboard for now. name is unique per business across products and apps and slug is unique on the /{business}/{slug} surface: a clash is 409 CONFLICT naming it, a reserved word 400. page_settings.blocks builds the page from elements (text, image, media, embed, carousel, checklist, plans, cta, button, sticky, countdown, form, booking, reviews, quote, stats, compare, faq, cards, divider, spacer, row) with per-element style (align, width, paddingY, paddingX, fullWidth, textScale, minHeight, solid/gradient background + textColor; paddingX is EXTRA side room added to the gutter the page already keeps, so 0 is the normal edge distance rather than flush against the screen; fullWidth runs the element edge to edge AND leaves its content there, where a background runs the COLOUR edge to edge and puts the words back in the centred reading column); omit it for the default page. A countdown takes `layout`: boxes (each number in a filled pill, the default and what every existing page has), plain (the digits on whatever is behind them, for a countdown inside a coloured section) or inline (one line, colons between, no labels). A carousel is a strip of pictures that scrolls on its own: give each item a public https image URL (fetched server-side, like banner_url) plus direction (horizontal|vertical), lanes 1-5 (stacked strips, alternating), speed 0-100 and size, which is 0-100 too (or sm|md|lg, which is what pages stored before the dial). Size sets the FIXED side of each picture (height when the strip runs across, width when it runs down) and the other side follows the picture, so 16:9, 9:16 and 1:1 share one strip uncropped. TWO ELEMENTS COLLECT LEADS, and neither needs the visitor to have an account: `form` (items: the boxes to ask for, each { kind: name|email|phone|country|zip|short|long|select|consent, label?, required?, options? }; email is always there and always required, and is added if left out; plus title, buttonLabel, successMessage, redirectUrl, color) and `booking` (the same, plus slotMinutes 15|30|45|60|90, bufferMinutes 0|5|10|15|30, minNoticeHours 0|1|2|4|12|24|48, daysAhead 7|14|30|60|90, timezone as an IANA zone, hours [{ day 0-6 with 0 = Sunday, from, to as 24 hour HH:MM }], meetingType google_meet|link|phone|in_person saying how the call happens (phone: the owner calls the visitor on the number the form collects, and a required phone field is added), locationLabel shown on the page, and meetingLink (the room link, or the address for in_person) that is NEVER sent to a page and reaches the visitor only in their emails). What they catch is read at GET …/leads. Saving a page that holds either adds the Leads app to the business if it has none. app_slugs is the products tab’s Apps column (app slugs, at most 50; left out, the product lists no apps, where the dashboard’s form ticks them all; who an app lets in is still its own gate). Owner must have passed identity verification (403 ACCOUNT_INELIGIBLE). Requires a read_write key. - `GET /api/v1/businesses/{slug}/products/{productId}` One product’s complete owner settings for a read-modify-write, with page_settings.blocks RESOLVED (a product with no built page still reads back as the elements it renders) and the same numbers as the list. {productId} = UUID, short id (prod_…) or URL slug. Stripe identifiers are never included. - `PATCH /api/v1/businesses/{slug}/products/{productId}` Edit a product - send only the fields to change: name (moves a machine-derived URL along, leaves a chosen one alone), slug (the URL; a clash is 409, the old URL keeps redirecting), pricing_options (REPLACES the whole plan list - send every plan to keep, with ids), faqs (replaces), page_settings (MERGED key by key; blocks inside it replaces the element list), button_text, is_visible, status (active | archived), internal_name, sort_order, banner_url, video_url, remove_video. DESTRUCTIVE on a live plan: re-pricing, re-intervalling or removing a subscription plan stops the renewals of every active subscriber on it (each keeps access until their paid time runs out, is told, and can subscribe again at the new price; Apple-billed ones keep their Apple price) - refused with 409 CONFLICT naming the count until confirm_subscriber_cancellation: true. app_slugs replaces the Apps column ([] clears it). Read-only fields (currency, Stripe ids, counts) answer an explicit VALIDATION_ERROR. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/products/{productId}` Delete a product with the dashboard’s steps (UUID, prod_ short id or slug): the page goes, its sales stay in Payments. Every subscription stops renewing and keeps its paid time (Apple-billed ones, which nothing here can stop, are told to turn it off in their iPhone settings), one-time and free buyers lose access, and each is told; with active subscribers it is 409 CONFLICT naming the count until ?confirm_subscriber_cancellation=true (or that field in a JSON body). Its members go inactive and it leaves the app gates (an app no product gates any more is switched to public) at once when nobody has paid time on it, else once the last subscriber’s time runs out. Answers { deleted: true, id, subscribers_ending, apple_subscribers, access_ended, deactivated_members, apps_updated, apps_made_public, finishes_later }. Archiving (PATCH status archived) stops sales and keeps subscribers instead. Owner read_write key (Products area). - `POST /api/v1/businesses/{slug}/main-product` Star the business’s MAIN product: the one an affiliate’s main link (/r/{short_code}) opens. Body { product } is a product UUID, short id (prod_…) or URL slug; { product: null } clears the star, and links then open the oldest product on show. Only a product that is for sale AND on show (active, is_visible) can hold it: anything else is 400 VALIDATION_ERROR, because a hidden product is never where a stranger is sent. A star on a product later hidden, archived or deleted is simply passed over. Answers { main_product_id }; GET /products reports the one links open right now as main_product_id. Requires a read_write key. #### Revenue The Revenue app, RevenueCat style: the six cards with their 28-day lines, every transaction, downloads, trials and first payments with the conversion rates between them, and each customer as one person across the phones and browsers they signed in on, with the owner’s note. Owner only. - `GET /api/v1/businesses/{slug}/apps/{appId}/revenuecat-entitlements` The app’s RevenueCat entitlements ({ id, lookup_key, display_name }) and selected, the one free access grants on a RevenueCat app (apps without RevenueCat name a plan, product_id, instead); with none chosen yet it picks the first, as the dashboard does. 400 when RevenueCat is not connected, 409 needs_reconnect when the connection predates the free-access permission. Owner key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/revenuecat-entitlements` Choose the entitlement free access grants on a RevenueCat app, automatic free access included: { entitlement_id } (an id, or null to clear). Access already granted stays on its old entitlement until switched off and on again. Requires a read_write key. - `GET /api/v1/businesses/{slug}/revenue` The Revenue app’s Overview, RevenueCat style: apps (the paying apps), overview { days, active_trials, active_subscriptions, mrr_cents, revenue_cents, new_customers, active_customers }, each { value, series } with one point per UTC day for 28 days, and the first 50 transactions with next_cursor. revenue_cents is every sale and renewal in US cents before store fees, refunds off; mrr counts a yearly plan as a twelfth; new and active customers count PEOPLE (a phone and a laptop signed in as the same app user are one), and a phone is a new customer once, whoever signs in on it later. ?app= all | an app id | several ids separated by commas, ?source= all | affiliate | ad | organic (the three add up to all). Owner key only. - `GET /api/v1/businesses/{slug}/revenue/transactions` The Revenue transactions, newest first, 50 a page: sales, renewals, trials, refunds, chargebacks and a subscription’s moments (cancel, expiry, billing issue, resume, pause, plan change). Each: key, at, app_id, customer_id (Affiliateo’s id for the person when customer_id_kind is affiliateo), country, store, product, purchased_at, expires_at, lifetime, revenue_cents (US, null when no money moved) or foreign { cents, currency }, type, source { kind: organic | affiliate (name) | ad (network, label) }, apple_ads (the Apple Ads tap behind the sale, null when none: { campaign_id, ad_group_id, keyword_id, keyword, country, ad_id, install_type: download | redownload, claim_type: click | impression }). ?app=, ?source=, ?before= (next_cursor). Owner key only. - `GET /api/v1/businesses/{slug}/revenue/charts/{chart}` One Revenue chart, RevenueCat’s definitions on Affiliateo’s records, period by period: arr (ARR at each period’s end, cents), paid_subscriptions (new paid subscriptions: trial_conversions, direct, resubscriptions, product_changes), subscriptions_movement (new_actives + resubscription_actives - churned_actives = movement), churn (churned actives / actives at the period’s start), trial_funnel (each period’s new customers, started_trials and each trial’s outcome: converted, set_to_convert, set_to_cancel, inactive, abandoned; start_rate, conversion_rate) and conversion_to_paying (new customers who paid within ?timeframe= 0 | 3 | 7 | 14 | 30 | ever days, 7 by default), the six Overview cards as charts by the cards’ own rules (active_trials, active_subscriptions, mrr, revenue, new_customers, active_customers), and the Conversions page’s steps: downloads (first opens on a phone: downloads with ad_downloads, affiliate_downloads, organic_downloads, and unknown_source_downloads for people first seen by RevenueCat in an app without the SDK), download_to_trial, trial_to_paid (trials started in each period that turned paid, over those that are over; still_in_trial apart), download_to_paid and trial_to_cancel (with canceled, expired, refunded), whose summary also carries the range of the same length before as previous_ and the change as _change (percent for downloads, percentage points for a rate); the three download charts also answer downloads_source and downloads_measured (false: every download value is null, never 0). ?app=, ?source= all | affiliate | ad | organic, ?from= ?to= (YYYY-MM-DD, the last 28 days by default; from=all starts at the first customer), ?resolution= day | week | month | quarter | year (at most 731 periods). Answers { chart, resolution, from, to, series [{ key, unit, kind }], periods [{ start, incomplete, values }], summary }; a period still running, or a cohort too young for its time frame, is incomplete. Owner key only. - `GET /api/v1/businesses/{slug}/revenue/conversions` The Revenue app’s Conversions page: downloads (first opens on a phone, one per install, counted by the Affiliateo SDK; phones the 90-day analytics prune deleted still count; an app without the SDK that takes payments through RevenueCat counts the people RevenueCat first saw, not under a source, network or campaign filter; any other app is unknown and left out: downloads_source sdk | revenuecat | mixed | null, downloads_measured false = show a dash, not 0, download_apps [{ app_id, source, own_source }]), trials (free trials started, free grants left out), new_paying (people whose FIRST payment fell in the period: paid_after_trial + paid_direct; a plain renewal never counts, nor a payment refunded in full, such as a test sale), download_to_trial (an install cohort: of the period’s downloads, the share that started a free trial within 7 days of first open, trialed_within_7_days), trial_to_paid (of the trials started in the period that are over, the share that turned paid; trials_pending are still running), download_to_paid (of the period’s downloads, the share whose person paid for the first time within 30 days of first open, paid_within_30_days; still_counting_trial and still_counting_paid are the downloads still inside their 7 or 30 days, and the previous period is read as of the same time after its own end) and trial_to_cancel (trials whose person turned renewal off before the first charge / trials started; with trials_canceled (trials_canceled_still_in_trial of them still in their free days), trials_expired, trials_refunded), percent with 2 decimals, for the period (current) and the period of the same length just before (previous, previous_from, previous_to), with change { downloads_percent, trials_percent, new_paying_percent, download_to_trial_points, trial_to_paid_points, download_to_paid_points, trial_to_cancel_points }. ?breakdown= plan | store | country | source | campaign adds rows { key, label, current, previous, change } (source keys: organic, affiliate or the ad network; campaign keys "network:campaign id"). `more`: arpu_cents and arppu_cents (net revenue per active / paying person, US cents, with the previous period’s), refund_rate (refunds and chargebacks / payments), month_two_retention and year_two_retention { eligible, renewed, rate }, median_hours_to_trial, median_hours_to_paid (from first open; for an app without the SDK, from when RevenueCat or Adapty first saw the person), ltv_cohorts (the last 12 months of new people, by the month first seen: customers, paying, revenue_cents so far, per_customer_cents, per_paying_cents). ?app=, ?from= ?to= (YYYY-MM-DD, the last 28 days by default, at most 731 days), ?source= all | affiliate | ad | organic, ?network= meta | google | tiktok | apple_search_ads | snapchat | x, ?campaign= (a campaign id on that network), ?plan= yearly | monthly | weekly | one_time | other (downloads have no plan, so the rates still divide by every download), ?store= app_store | play_store | web | other, ?country= (two letters). `more` follows app and source only. Owner key only. - `GET /api/v1/businesses/{slug}/revenue/customers` The Revenue app’s Customers list, RevenueCat style: summary { customers, trialing, paid, revenue_cents } and customers, newest seen first, 50 a page: { id, app_id, user_id, country, first_seen, last_seen, subscription_status (the latest subscription; null if never subscribed), will_renew, spent_cents, latest_purchase { product, at } }. ?app=, ?audience= all | active | non_subscription | expired, ?before= (next_cursor). WITH ?q= it FINDS customers instead, by any id they are known by, exact match: Affiliateo’s customer id, the app’s own user id, a RevenueCat app user id, or a Stripe or store customer, subscription or purchase id; up to 20 { id, app_id, user_id, last_seen }. Owner key only. - `GET /api/v1/businesses/{slug}/revenue/customers/{customerId}` One customer: id, app_id, app_name, user_id (null while anonymous), first_seen, last_seen, notes, country, source, total_spent_cents (US), purchases, first_purchase_at, last_purchase_at, events, attribution { source, ref_code, campaign, ad_group, keyword, keyword_id, ad_id, ad_country, install_type (download | redownload), claim_type (click | impression), utm_source, utm_medium, utm_campaign, referrer, install_referrer; the Apple Ads fields are null unless an Apple Ads tap brought them, and keyword is the keyword’s words when known }, aliases [{ kind: merged | revenuecat | provider_customer | subscription, value, provider }], devices [{ visitor_id, kind: phone | browser, name, os, app_version, country, city, language, first_seen, last_seen, current }], subscriptions [{ product, store, status, will_renew, started_at, ends_at }], plus history (their transactions, newest first) and next_cursor; ?before= answers the next page of history only. HOW PEOPLE ARE COUNTED: every device starts as an anonymous customer; the app’s identify adopts its user id or folds the device into the person the app already has under it; somebody else signing in on the device switches it from then on; logout starts it over as anonymous; nothing recorded moves on a switch or a logout. A folded id answers as its survivor. Owner key only. - `PATCH /api/v1/businesses/{slug}/revenue/customers/{customerId}` Set the owner’s private note on a customer ({ notes }, 5,000 characters at most; null or "" clears it). Returns { customer }. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/revenue/customers/{customerId}` Erase a customer for good, as RevenueCat’s Delete Customer does: their app opens, screens, page views and goals, the profile and note, which devices are theirs, and the app’s user id on those devices. THEIR SALES STAY (money records are never deleted), without the link to the person; a device that opens the app again comes back as a new anonymous customer. Returns { deleted, id, events_deleted }. Cannot be undone. Requires a read_write key. - `GET /api/v1/businesses/{slug}/revenue/customers/{customerId}/events/{eventKey}` One line of a customer’s history in full (the dashboard’s View details): line (as the history shows it), sale { id, created_at, conversion_type, amount_cents, currency, usd_cents, store, product, billing_interval, provider_transaction_id, subscription_id, provider_customer_id, country, ad_source, ad_campaign, apple_ads (as on a transaction, null when none), commission_cents, trial_ends_at }, moment { id, type, occurred_at, source, data } for a subscription moment (null for a sale), and sent_to [{ destination, status, at, detail }]: where Affiliateo sent the sale (ad networks, Google’s Data Manager, an affiliate’s own ads). eventKey is the history line’s key (c: or e:). Owner key only. #### Leads What visitors send through a product page’s form and booking elements: contact details and booked calls, each with the affiliate who sent them. Owner only, read and erase; a lead is made on a page, never through the API. Matched before the ad group and excluding /ads/, because TikTok lead ads live at /ads/leads and those are the ad network’s forms, not the page builder’s. - `GET /api/v1/businesses/{slug}/leads` The form entries and booked calls the business’s pages have collected through their `form` and `booking` elements: id, type (form | booking), created_at, email, name, phone, country, zip, consent, answers [{ label, value }] (the owner’s own questions, with the wording they had when asked), page { product_id, product_name, block_id }, affiliate { ref_code } when an affiliate link sent the visitor, visitor_country, status (new = a form entry | scheduled | completed | no_show | cancelled, worked out when read), and for a booked call booking { starts_at, ends_at, timezone, location, cancelled_at, cancelled_by, rescheduled_at, rescheduled_by, previous_starts_at, no_show_at }. TWO QUESTIONS, TWO DEFAULTS: "who wrote in?" is the plain call (everything, newest first); "what is on the diary?" is ?status=upcoming, which also orders by the NEXT call first. ?status=past is calls that took place, ?status=no_show is the ones marked as missed, ?status=cancelled is calls called off (a cancelled call is in none of the others). THE DAILY BRIEFING: "who do I have today" is ?starts_from=today&starts_to=tomorrow&timezone={the owner’s IANA zone}, "who cancelled today" is the same with cancelled_from / cancelled_to, and "who moved their call" with rescheduled_from / rescheduled_to; without ?timezone= today means UTC’s today. ?type=form|booking, ?q= (a piece of the email, name or phone, any case, as the dashboard’s search box), ?email= (one person, exact address), ?created_from= ?created_to= (when the lead was made), ?starts_from= ?starts_to= (when a call starts), ?cancelled_from= ?cancelled_to=, ?rescheduled_from= ?rescheduled_to=, ?timezone=, ?sort=created_desc|starts_asc, ?limit= 1-500 (default 100), ?starting_after={lead id}; has_more says whether there is a next page. Dates are YYYY-MM-DD, today, tomorrow or yesterday (the start of that day in ?timezone=, UTC by default) or ISO 8601; from is inclusive, to exclusive. A contradiction (type=form with status=upcoming) is a 400, never an empty list. OWNER ONLY: these are contact details of people with no account. There is NO POST: a lead is made by a visitor on a page, behind the rate limits and spam checks that live there. The visitor can move or cancel their own call from the link in their confirmation email until it starts. THE AFFILIATE ON A LEAD: The lead itself pays nothing. It is how a LATER SALE finds its affiliate when nothing else can: if the buyer’s browser and account remember no affiliate, checkout matches the buyer’s verified account email to a lead an affiliate sent in the last 60 days (newest wins), and that affiliate earns the normal commission. A link always beats the email match, a deleted lead counts for nothing, and the payment says it was credited through a lead. - `GET /api/v1/businesses/{slug}/leads/slots?product=…` The open times a `booking` element can still offer, as ISO 8601 instants, soonest first - what the page shows a visitor, for an integration or an agent answering "when is she free?". ?product= (UUID, prod_ short id or URL slug) is required; ?block= is the element’s id and is optional when the page has exactly one (with several, the 400 lists their ids); ?from= ?to= default to now for 31 days, at most 45 days per call, and ?timezone= is the zone bare dates are read in. TO MOVE A CALL pass ?lead={lead id} instead of product: the answer is the times THAT call could move to (its own time is not counted as busy, the minimum notice is waived), which is what POST …/reschedule accepts. The element’s days off and daily limit are already applied. Also returns block_id, title, minutes (call length), timezone (the OWNER’s zone, which the opening hours are written in; the slots themselves are instants) and the location label. ONE BUSINESS IS ONE DIARY: a time taken through any of the business’s pages is absent, and a taken time is simply not listed. Read only: a call is booked by the visitor on the page. - `GET /api/v1/businesses/{slug}/leads/{leadId}` One lead, in the same shape as the list. - `POST /api/v1/businesses/{slug}/leads/{leadId}/cancel` Cancel a booked call exactly as the Leads app’s button does: the time is free at once, THE VISITOR IS EMAILED that it was cancelled (their own time zone, with a link back to the page), and booking.cancelled goes to the owner’s webhooks. The lead stays in the list. Returns { lead, changed }; repeating it on a cancelled call answers 200 with changed: false and sends nothing; a form entry is a 400 and a call that has already started is a 409 (nobody is told the call they just had was cancelled). Requires a read_write key. - `POST /api/v1/businesses/{slug}/leads/{leadId}/reschedule` Move a booked call to another time ({ starts_at }) exactly as the Leads app’s Reschedule button does. IT STAYS THE SAME LEAD: same id, same affiliate, same link in the visitor’s hand; booking.previous_starts_at keeps the time it left. THE VISITOR IS EMAILED the new time beside the old one, with fresh calendar links and a button to pick another time or cancel, and booking.rescheduled goes to the owner’s webhooks. starts_at must be one of GET …/leads/slots?lead={leadId}: the element’s hours, days off, gap, daily limit and "how far ahead" apply, its minimum notice does not. 409 when the time is not available, the call was cancelled or has started, it already has that time, or its page no longer has the booking element. Returns { lead }. Requires a read_write key. - `POST /api/v1/businesses/{slug}/leads/{leadId}/no-show` Mark a booked call as one nobody turned up to ({ no_show?: boolean }, default true; false takes the mark back). The lead’s status reads no_show afterwards. NOBODY IS TOLD: no email, no webhook. Only a call that stands and has started can be marked (409 otherwise). Returns { lead }. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/leads/{leadId}` Erase one lead for good - how an integration honours "remove my details". A standing booked call goes with it, which frees its time; the visitor is NOT emailed (use …/cancel when they should be told). Requires a read_write key. - `GET /api/v1/businesses/{slug}/calendar-connection` Whether the business’s Google Calendar is connected for booked calls (owner key): available (connecting is offered to this account), connected, provider, the Google account’s email, and needs_reconnect (Google stopped accepting it; the owner connects again in the dashboard). Read only: connecting needs the owner in a signed-in browser and disconnecting stays a dashboard button. Never a token. #### Invoices The bills a business owner sends one person by email, paid through a link that needs no account. Owner only. Creating is sending; a paid bill is a sale like any other, with the seller credit, the hold and the affiliate’s commission. Excluding /ads/, because an ad network’s billing invoices live under /ads/billing. - `GET /api/v1/businesses/{slug}/invoices` The bills the owner has sent people by email, newest first: id, number (INV-0007), pay_url (the pay page, which needs no account and is the only credential the recipient holds), status (open | paid | void) and overdue, created_at, due_date, recipient { name, email }, product { id, name } (a product the payer gets access to; a custom product has a name and a null id; a plain amount has nulls), amount_cents (USD, charged when the bill is paid), pricing_type (one_time | subscription), recurring { amount_cents, interval, status, next_charge_at, ended_at } for a subscription bill (null on a one-time one; status is null until paid, then active | past_due | cancelling | ended), description, affiliate { ref_code } when the bill carries the affiliate who sent the person, lead_id, sent_at, last_sent_at, send_count, viewed_at, paid_at, voided_at, and payment { id, short_id, status } once paid, and pdf_url (the bill as a PDF, as private as pay_url). counts gives the four buckets. ?status= (open | overdue | paid | void), ?q= (name, address or number), ?limit= (1 to 500), ?starting_after= (an invoice id). Owner keys only. - `POST /api/v1/businesses/{slug}/invoices` Make a bill for one person and EMAIL IT AT ONCE (there is no draft): { recipient_name, recipient_email, amount_cents (USD cents, 50 to 10000000), description?, due_in_days? (0 to 365, default 7) | due_date? (YYYY-MM-DD), product_id? (what the payer gets access to) | product_name? (a custom product, up to 120 characters, with nothing behind it; omit both for a plain amount), lead_id? (the bill then carries that lead’s affiliate, so the affiliate who booked the call is paid), pricing_type? (one_time, the default, or subscription), recurring_amount_cents? and recurring_interval? (7d | monthly | 3m | 6m | yearly, default monthly; a subscription bill charges amount_cents once when paid, then the recurring amount every interval from the payer’s saved method, starting one interval after the payment, until the owner or the payer stops it) }. The person pays through the link by card, Link or US bank account with no account needed; paying makes them a member, credits the seller like any sale (1% platform fee, the seller bears the Stripe fee) and pays the affiliate, on the first payment and on every renewal. Refusals name the reason in parentheses (invalid_name, invalid_email, invalid_amount, invalid_due_date, invalid_pricing, cannot_invoice_self, invoice_already_open when that address already has an open bill from this business; 404 product_not_found, lead_not_found). A business may send 30 bills an hour and 200 a day (429 past that). The owner must be verified and not suspended from selling. Fires invoice.created. Requires a read_write key. - `GET /api/v1/businesses/{slug}/invoices/{invoiceId}` One invoice, by its id or its inv_ short id, in the same shape as the list. - `POST /api/v1/businesses/{slug}/invoices/{invoiceId}/void` Cancel an open bill: the pay link stops working and the number stays. Nobody is emailed. 409 when it is already paid or void, or a payment for it is in flight (refund that from the payment instead). Requires a read_write key. - `POST /api/v1/businesses/{slug}/invoices/{invoiceId}/resend` Email an open bill again. Three times an hour per invoice, shared with the dashboard’s button (429 past that); 409 for a paid or void bill. Requires a read_write key. - `POST /api/v1/businesses/{slug}/invoices/{invoiceId}/stop` Stop the subscription a paid subscription bill started: it runs to the end of the period already paid for, then ends; nothing is refunded. Answers { invoice, outcome: stopping | already_stopped }; 409 when the bill has no subscription (one-time, or not paid yet). The payer can do the same from their pay page. Requires a read_write key. #### Courses The Courses app, for the owner’s key (writes need the Content area): courses, chapters and lessons (text, a video, a PDF, attachments, drip timing), quizzes with their answers, and what students did, from the dashboard’s Analytics table to one student’s lesson-by-lesson progress and every graded quiz attempt. A lesson’s files only arrive as uploads (see Uploads) and a linked video is YouTube or Vimeo, so nothing a key sends can point a lesson at another server. An uploaded video, the PDF and the attachments come back as signed links that work for about six hours (read again for fresh ones, never store them). Deleting a course, a chapter or a lesson, or replacing a file, removes the files from storage too. - `GET /api/v1/businesses/{slug}/courses` The business’s courses (owner key): every copy of the Courses app, or one with ?instance=N, hidden ones included, each with id, instance, name, slug, description, cover_url, is_hidden, sort_order, chapter_count, lesson_count. `instances` lists the live copies of the app. - `POST /api/v1/businesses/{slug}/courses` Create a course: { name, description?, is_hidden?, instance? (the copy of the Courses app; default the first), cover_url? | cover_upload_key? }. A cover is a PNG, JPEG, WebP or GIF up to 25 MB; a refused cover takes the new course back. 409 when the business has no Courses app (add one with POST …/app-instances { app_slug: "courses" }). Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/courses/{courseId}` One course whole, as its owner edits it: chapters in order, each with its lessons in order (id, title, lesson_type multimedia | pdf | quiz, content HTML, video_url and video_type youtube | vimeo | upload, pdf_url, attachments [{ name, url, size_bytes, content_type }], drip_enabled, drip_days, quiz_pass_score, quiz_pass_type percent | count, quiz_max_attempts). No drip masking: the owner sees everything. An uploaded video, the PDF and the attachments are signed links that work for about six hours: read the course again for fresh ones, never store them (pictures in the content HTML keep their public address). - `PATCH /api/v1/businesses/{slug}/courses/{courseId}` Edit a course, sending only what changes: name (the slug follows), description, is_hidden, sort_order, and the cover (cover_url | cover_upload_key, or remove_cover: true). The new cover is stored first and the old one removed once the course points at it. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/courses/{courseId}` Delete a course with its chapters, lessons, quizzes, every student’s progress and its files in storage. No undo. Requires a read_write key with the Content area. - `POST /api/v1/businesses/{slug}/courses/{courseId}/chapters` Add a chapter at the end of the course: { title } (up to 200 characters). Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/courses/{courseId}/chapters/{chapterId}` Rename a chapter: { title }. Order chapters with PATCH …/reorder. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/courses/{courseId}/chapters/{chapterId}` Delete a chapter with its lessons, their quizzes and progress, and the lessons’ files in storage; answers lessons_deleted. No undo. Requires a read_write key with the Content area. - `POST /api/v1/businesses/{slug}/courses/{courseId}/lessons` Add a lesson at the end of a chapter: { chapter_id, title, lesson_type? } (multimedia, the default: text with a video and attachments; pdf; quiz). Fill it in with PATCH. Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}` Edit a lesson, sending only what changes: title; content (HTML, cleaned as the editor cleans it, up to 50,000 characters; null clears it); the video (video_upload_key from POST /api/v1/uploads, or video_url, a YouTube or Vimeo address, or video_url: null to remove it); the PDF (pdf_upload_key, or pdf_url: null); attachments (add_attachments [{ upload_key, name }], remove_attachment_urls [url]; 10 at most); drip_enabled, drip_days; chapter_id (move it within the course); quiz_pass_score, quiz_pass_type (percent | count), quiz_max_attempts. A lesson’s files only arrive as uploads, never as links to another server. A file the edit replaces or removes is deleted from storage once it saves. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}` Delete a lesson with its quiz, progress and files. No undo. Requires a read_write key with the Content area. - `POST /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}/images` Store a picture for a lesson’s text and answer { url }: { upload_key } (an image from POST /api/v1/uploads) or { image_url } (a public PNG, JPEG, WebP or GIF, fetched server-side), up to 25 MB. Put the URL in the lesson’s content () with PATCH. Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}/questions` A quiz lesson’s questions in order, with the right answers (the owner’s view): id, question_text, question_type, options [{ text, is_correct }], sort_order. - `POST /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}/questions` Add a quiz question: { question_text, question_type (multiple_choice | true_false | select_multiple | short_answer), options [{ text, is_correct }] (up to 20; for short_answer the correct entry is the expected answer, matched without case), sort_order? }. Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}/questions/{questionId}` Edit a quiz question: question_text, question_type, options, sort_order. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/courses/{courseId}/lessons/{lessonId}/questions/{questionId}` Delete a quiz question; attempts already made keep their graded answers. Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/courses/{courseId}/reorder` Put chapters and lessons in order in one go: { chapters?: [{ id, sort_order }], lessons?: [{ id, sort_order, chapter_id? }] } (chapter_id moves a lesson to another chapter of the course). All of it lands or none of it does. Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/courses/{courseId}/students` The course’s students and lessons, exactly the dashboard’s Analytics: one row per student (anyone who started a lesson; there is no separate enrollment) with user_id, display_name, username, avatar_url, completion %, completed_count, start_date and last_active, most complete first, and one row per lesson with total_completions and dropoff_rate (the share who reached it and did not finish it). - `GET /api/v1/businesses/{slug}/courses/{courseId}/students/{userId}` One student’s way through the course: every lesson in reading order with completed and completed_at, their completion %, and their quiz attempts on the course (answers graded, score, passed), newest first. 404 for anyone who never started the course. - `GET /api/v1/businesses/{slug}/courses/{courseId}/quiz-attempts` The course’s graded quiz attempts, newest first: id, lesson_id, lesson_title, user_id, answers [{ question_id, answer, is_correct }], score, total, passed, created_at. ?lesson_id= and ?user_id= narrow it; ?limit= 1 to 500 (default 100). #### Uploads One file straight to storage, for every field that takes an upload key: POST /api/v1/uploads answers a signed upload_url and an upload_key; PUT the bytes to the URL with the headers given, within the hour, then send the key to the field. Videos (H.264 MP4) up to 500 MB, pictures up to 25 MB, PDFs and other files up to 50 MB. The file is checked where it is used, from its bytes, and deleted if it fails; one never used is deleted after a day. Any read_write key may ask: the file changes nothing until an endpoint uses it. - `POST /api/v1/uploads` A signed link to upload one file straight to storage, for every field that takes an upload key (a lesson’s video_upload_key, pdf_upload_key and attachments, a course’s cover_upload_key, a lesson picture). Body { kind, byte_size, content_type?, filename? }: video = an H.264 MP4 up to 500 MB; image = PNG, JPEG, WebP or GIF (content_type required) up to 25 MB; pdf up to 50 MB; file = any type the upload policy allows (content_type and filename required) up to 50 MB. Answers 201 { upload_key, upload_url, method: "PUT", headers, expires_in_seconds, max_bytes, kind }: PUT the bytes to upload_url with exactly those headers within the hour, then send upload_key to the field. The file is checked there (its real type from its bytes, its size, H.264 for a video) and deleted if it fails; one never used is deleted after a day. Any read_write key: the file changes nothing until an endpoint uses it, and that endpoint checks the key’s areas. #### Events The Events app, for the owner’s key (writes need the Content area): events with their time and time zone, repeat, place (a place, a link, Zoom or Google Meet), host, RSVP settings, capacity and cover; upcoming or past, active or cancelled, with RSVP counts, and who said they are going (saved since RSVPs began, shown in no screen). Cancelling takes an event off the members’ list and keeps its RSVPs. Members who want Events notifications hear about a new event and a moved time, as from the dashboard, unless notify_members is false. A refused cover makes no event; a delete takes the RSVPs and the cover too. - `GET /api/v1/businesses/{slug}/events` The business’s events (owner key, or a manager’s own key), every copy of the Events app or one with ?instance=N: id, instance, name, description, cover_url, start_at, end_at, timezone, repeat_type (none | daily | weekly | biweekly | monthly), location_type (place | link | zoom | google_meet), location_value, host_type (self | other), host_name, allow_rsvp, capacity, status (active | cancelled), rsvp_count. ?when=upcoming (default: starting now or later, soonest first) | past | all (latest first); ?status=active (default) | cancelled | all. Paging: ?limit= 1 to 100 (default 50); while has_more is true, pass next_cursor back as ?cursor=. - `POST /api/v1/businesses/{slug}/events` Create an event: { name (up to 100), start_at, end_at (ISO 8601 with an offset), description? (500), timezone? (IANA, default America/New_York), repeat_type?, location_type? (default link), location_value? (a web address for link, zoom and google_meet; any text for a place), host_type?, host_name?, allow_rsvp?, capacity? (1 to 100,000, or null for no limit), instance?, cover_url? | cover_upload_key?, notify_members? }. Members who want Events notifications are told, as from the dashboard, unless notify_members is false. A refused cover makes no event. 409 when the business has no Events app (add one with POST …/app-instances { app_slug: "events" }). Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/events/{eventId}` One event with its rsvp_count, any status. - `PATCH /api/v1/businesses/{slug}/events/{eventId}` Edit an event, sending only what changes: every field of the create, status ("cancelled" takes it off the members’ list and keeps its RSVPs; "active" brings it back), and the cover (cover_url | cover_upload_key, or remove_cover: true). A moved start or end tells the members unless notify_members is false. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/events/{eventId}` Delete an event with its RSVPs and its cover. No undo. Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/events/{eventId}/rsvps` Who said they are going, first to answer first: user_id, username, display_name, avatar_url, rsvped_at, plus rsvp_count. Paging: ?limit= 1 to 200 (default 100) and ?cursor=. The dashboard shows only the count. #### Calendar The Calendar app, for the owner’s key (writes need the Content area): a board of dated entries members see, with a title, times, all-day, a place and a colour, up to 1,000 in each copy of the app. It holds no personal data and has no Google sync; calls booked through a page belong to Leads. - `GET /api/v1/businesses/{slug}/calendar` The Calendar app’s entries (owner key, or a manager’s own key), every copy or one with ?instance=N, earliest start first: id, instance, title, description, start_at, end_at, all_day, timezone, location, color, created_by. ?from= and ?to= (ISO 8601) keep the entries that touch that window. A copy holds at most 1,000 entries, so there is no paging. - `POST /api/v1/businesses/{slug}/calendar` Add a calendar entry: { title (up to 200), start_at, end_at, description? (2,000), all_day?, timezone?, location? (300), color? (#rrggbb), instance? }. 409 at 1,000 entries in a copy, or when the business has no Calendar app (add one with POST …/app-instances { app_slug: "calendar" }). Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/calendar/{entryId}` Edit a calendar entry, sending only what changes: title, description, start_at, end_at, all_day, timezone, location, color (#rrggbb, or null). Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/calendar/{entryId}` Delete a calendar entry. Requires a read_write key with the Content area. #### FAQs The FAQs app, for the owner’s key (writes need the Content area): questions and answers in plain text, up to 500 characters each and 50 in each copy of the app, in the order the owner sets with one reorder call. - `GET /api/v1/businesses/{slug}/faqs` The FAQs (owner key, or a manager’s own key), every copy of the FAQs app or one with ?instance=N, each copy in its order: id, instance, question, answer, sort_order. - `POST /api/v1/businesses/{slug}/faqs` Add a FAQ at the end of its copy: { question, answer, instance? } (plain text, up to 500 characters each; 50 FAQs a copy). 409 when the copy is full or the business has no FAQs app (add one with POST …/app-instances { app_slug: "faqs" }). Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/faqs` Reorder one copy’s FAQs: { order: [faqId, …], instance? }, naming every FAQ of the copy exactly once; answers the copy in its new order. Requires a read_write key with the Content area. - `PATCH /api/v1/businesses/{slug}/faqs/{faqId}` Edit a FAQ: question and/or answer (up to 500 characters each). Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/faqs/{faqId}` Delete a FAQ. Requires a read_write key with the Content area. #### Files The Files app, for the owner’s key (writes need the Content area): files members open or download, up to 50 MB each and 50 in each copy of the app, with a name, a thumbnail and the allow-downloads switch. A file arrives as an upload (see Uploads), never as a link to another server, and the dashboard’s blocked types are refused. file_url is where the bytes are read from: a signed link that works for about six hours, so read the file again for a fresh one. A delete takes the bytes and the thumbnails too. - `GET /api/v1/businesses/{slug}/files` The Files app’s files (owner key), every copy or one with ?instance=N, newest first: id, instance, name, file_url, thumbnail_url, content_type, size_bytes, allow_downloads, uploader_id. file_url is where the bytes are read from: treat it as temporary and read the file again for a fresh one, never store it. - `POST /api/v1/businesses/{slug}/files` Add a file: { upload_key (from POST /api/v1/uploads), name (up to 200), allow_downloads? (default false), instance? }. Up to 50 MB and 50 files a copy; the dashboard’s blocked types are refused. 409 when the copy is full or the business has no Files app (add one with POST …/app-instances { app_slug: "files" }). Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/files/{fileId}` One file, with a fresh file_url. - `PATCH /api/v1/businesses/{slug}/files/{fileId}` Edit a file, sending only what changes: name, allow_downloads, and the thumbnail (thumbnail_upload_key | thumbnail_url, a PNG, JPEG, WebP or GIF up to 5 MB, or remove_thumbnail: true). The old thumbnail leaves storage once the file points at the new one. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/files/{fileId}` Delete a file with its bytes and thumbnails. No undo. Requires a read_write key with the Content area. #### Chat moderation and bans Looking after the Chat app with the owner’s key (writes need the Community area): the recent messages, to find the one to pin; pinning and unpinning, one pinned message per chat copy; each copy’s rules (who can post or react, banned words, links, media, slowmode); and bans by username. A ban is the dashboard’s whole ban, far more than the chat: every chat message the person sent here is deleted with its media, their membership and affiliate rows are banned, a staff role ends, free access, app invites and pending requests are taken back, their subscriptions to the business are CANCELLED, and the owner blocks them. Lifting it restores only the membership and affiliate rows. Sending and deleting single messages stay in the apps. - `GET /api/v1/businesses/{slug}/community/messages` The chat’s messages, newest first (owner key, or a moderator’s own key): every copy of the Chat app or one with ?instance=N, each with its sender (user_id, username, display_name), content, media, reply_to_id and pinned_at. ?pinned=true keeps each copy’s pinned message. Paging: ?limit= 1 to 100 (default 50) and ?cursor=. SEARCH like the chat’s own search: ?q= (words, * as a wildcard), ?from= (part of a display name, a username or a user id), ?after= and ?before= (YYYY-MM-DD, both included); a search counts against 60 a minute. Sending and deleting chat messages stay in the apps. - `POST /api/v1/businesses/{slug}/community/messages/{messageId}/pin` Pin a chat message. Each copy of the chat keeps one pinned message, so the copy’s current pin comes down first; pinning a pinned message changes nothing. Requires a read_write key with the Community area. - `DELETE /api/v1/businesses/{slug}/community/messages/{messageId}/pin` Unpin a chat message (nothing changes when it is not pinned). Requires a read_write key with the Community area. - `GET /api/v1/businesses/{slug}/community/settings` Each chat copy’s rules (owner key): who_can_post (everyone | admins), who_can_react (everyone | no_one), banned_words, block_urls, block_media, cooldown_seconds (slowmode; 0 is off). ?instance=N for one copy. - `PATCH /api/v1/businesses/{slug}/community/settings` Change one chat copy’s rules, sending only what changes: { instance?, who_can_post?, who_can_react?, banned_words? (up to 200, 50 characters each), block_urls?, block_media?, cooldown_seconds? (0, 5, 10, 30, 60, 300, 600, 1800, 2700, 3600, 7200, 10800, 14400 or 18000) }. Requires a read_write key with the Community area. - `GET /api/v1/businesses/{slug}/bans` The people banned from the business, newest first: user_id, username, display_name, avatar_url, banned_at, banned_by. - `POST /api/v1/businesses/{slug}/bans` Ban a person: { username } (with or without the @) or { user_id }. Exactly the dashboard’s Ban: it deletes every chat message they sent in this business and its media, marks their membership banned and ends any staff role and support access, bans them as an affiliate of the business and its apps, takes back free access, app invites and pending app requests, CANCELS their active subscriptions to the business, and blocks them from coming back. Banning a banned person changes nothing (already_banned: true). Requires a read_write key with the Community area. - `DELETE /api/v1/businesses/{slug}/bans/{user}` Lift a ban; {user} is the person’s username (or user id). Their membership and affiliate rows come back and the block is removed; what the ban deleted or ended does not. 404 when they are not banned. Requires a read_write key with the Community area. #### Posts The business’s feed with the owner’s key (writes need the Content area): text up to 500 characters, up to 10 pictures and videos that arrive as uploads, a poll of 2 to 6 choices, one pinned post, and the like, view and vote counts. Every upload is checked before anything moves; a delete removes the row first and the files after. - `GET /api/v1/businesses/{slug}/posts` The business’s feed posts, newest first (owner key, or a manager’s own key): author, content, media [{ url, type image | video, thumbnail_url }], is_pinned, like_count, view_count, and the poll with each choice’s votes. ?pinned=true keeps the pinned post. Paging: ?limit= 1 to 50 (default 20) and ?cursor=. - `POST /api/v1/businesses/{slug}/posts` Make a post: { content? (up to 500), media?: [{ upload_key, thumbnail_upload_key? }] (up to 10: PNG, JPEG or WebP pictures up to 20 MB, H.264 MP4 videos up to 500 MB, each with an optional cover picture up to 5 MB, all from POST /api/v1/uploads), poll_options? (2 to 6 choices), pinned? }. It needs text, media or a poll. Every upload is checked before anything moves. Requires a read_write key with the Content area. - `GET /api/v1/businesses/{slug}/posts/{postId}` One post with its poll. - `PATCH /api/v1/businesses/{slug}/posts/{postId}` Edit a post: { content?, pinned? }. Pinning takes the business’s other pin down in the same statement. Media and polls do not change after posting, as in the apps. Requires a read_write key with the Content area. - `DELETE /api/v1/businesses/{slug}/posts/{postId}` Delete a post with its likes, views and poll, then its pictures and videos in storage. No undo. Requires a read_write key with the Content area. #### Reviews Every review of the business with its reviewer and stars, and the totals (count, average, how many of each star). Read only: an owner cannot answer or hide a review, in the dashboard either. - `GET /api/v1/businesses/{slug}/reviews` The business’s reviews, newest first (owner key): reviewer (user_id, username, display_name, avatar_url), rating 1 to 5, text and dates, with summary { count, average, by_rating }. ?rating=N keeps one star count. Paging: ?limit= 1 to 100 (default 50) and ?cursor=. Read only: an owner cannot answer or hide a review. #### Members, support and the team The people of the business. Members, for the owner’s key: email, role, status, when they joined and last read the chat, and what each paid, was refunded and where their card was billed, which the dashboard does not show; banning is under Chat moderation. Support tickets, for the owner or staff who answer support: the list, one thread, replies sent exactly as the inbox sends them (the member sees them live and is notified), closing and reopening. The team, for the owner: co-founders, managers and moderators with what each may do, and giving or taking a role with permissions switched off. Paying a team member stays in the dashboard. TEAM KEYS: a team member’s own key reaches what their role reaches in the dashboard (content and the review queue for managers; the chat, bans and support for moderators; ads for co-founders), and GET /api/v1/businesses lists those businesses as team_businesses. - `GET /api/v1/businesses/{slug}/members` The business’s members, newest join first (owner key): user_id, username, display_name, avatar_url, email, role (owner | co-founder | manager | moderator | member), status, joined_at, chat_last_read_at, and what the dashboard leaves blank: paid_cents (every charge that went through), refunded_cents, payments_count, last_paid_at and country (where their card was billed). ?status=active (default) | paused | pending | inactive | left | banned | all; ?role= co-founder | manager | moderator | member; ?q= part of a username or name. Paging: ?limit= 1 to 200 (default 50) and ?cursor=. Banning is …/bans. - `GET /api/v1/businesses/{slug}/members/{user}` One member by username (or user id), with the list’s fields. 404 for somebody who never joined. - `GET /api/v1/businesses/{slug}/support-tickets` The support tickets members opened, newest first (owner key, or the own key of staff who answer support): status (open | closed), subject, the requester (user_id, username, display_name) and the latest message. ?status=open | closed; paging: ?limit= 1 to 100 (default 50) and ?cursor=. - `GET /api/v1/businesses/{slug}/support-tickets/{ticketId}` One ticket and its thread, newest message first, each with its sender. Paging: ?limit= and ?cursor=. - `PATCH /api/v1/businesses/{slug}/support-tickets/{ticketId}` Close or reopen a ticket: { status: "open" | "closed" }. A member writing into a closed ticket reopens it, as in the apps. Requires a read_write key with the Community area. - `POST /api/v1/businesses/{slug}/support-tickets/{ticketId}/replies` Answer a ticket as the key’s holder: { content? (up to 500 characters; links allowed, as in the owner’s inbox), reply_to_id?, media?: { upload_key, thumbnail_upload_key? } }, content, media or both. media takes an upload_key from POST /api/v1/uploads: a JPEG or PNG up to 10MB or an H.264 MP4 up to 25MB, with an optional cover. Sent exactly as the inbox sends it: the member sees it live and is notified. Answers 201 { message }. Requires a read_write key with the Community area. - `DELETE /api/v1/businesses/{slug}/support-tickets/{ticketId}/replies/{replyId}` Take back a reply the key’s holder sent in this ticket, with its picture or video: each person deletes only the replies they sent, as in the inbox, and the customer’s own messages never. No undo. Requires a read_write key with the Community area. - `GET /api/v1/businesses/{slug}/team` The team (owner key): every active co-founder, manager and moderator, oldest first, with email, role, permissions (what each may do: the role’s ceiling less what the owner switched off), switched_off and live_chat_apps (the apps whose Live Chat they answer; null is every app). - `PATCH /api/v1/businesses/{slug}/team/{user}` Give an active member a team role by username (or user id): { role: "co-founder" | "manager" | "moderator" | "member", switched_off?: [pinMessages | deleteMessages | banMembers | answerSupport | answerLiveChat | approveSubmissions | manageContent | manageAds], live_chat_apps?: null | [app id, ...] }. "member" takes them off the team; switched_off lowers what the role allows (left out, the role’s full set); live_chat_apps narrows Answer Live Chat to some apps (null for every app; left out, unchanged). Paying a team member stays in the dashboard. Requires a read_write key with the Businesses and apps area. #### Payments The business’s Payments tab, for the owner’s key, read-only: every sale with its buyer, method, fees, refunds and affiliate commission, filtered and paged, and one receipt with its disputes (answer_state, evidence_due_by and the dashboard link where it is answered). Answering a dispute stays in the dashboard: Stripe takes one answer per dispute, with documents. - `GET /api/v1/businesses/{slug}/payments` The Payments tab, read-only: { payments: [{ id, short_id, status, amount_cents, currency, description, product, plan, reason, subscription_short_id, buyer, payment_method: { type, brand, last4, wallet }, billing_country, refunded_cents, stripe_fee_cents, platform_fee_cents, ach_markup_fee_cents, chargeback_fee_cents, rdr_fee_cents, apple_commission_cents, google_play_commission_cents, affiliate_commission_cents, created_at, paid_at }], total, total_exact, has_more, next_offset, limit, offset }. Filters: status (comma-separated pending, succeeded, failed, refunded, partially_refunded, refunding, disputed), method (card brands), reason (one_time, subscription, renewal, balance_payment, invoice, invoice_initial_payment), from and to (YYYY-MM-DD), search; limit 1 to 250 (default 25), offset. Owner key only. - `GET /api/v1/businesses/{slug}/payments/{paymentId}` One payment’s receipt (pay_… or its id): the list’s fields plus the buyer’s account email, billing_address, refunds with who made them, every fee line, the affiliate commission, available_on, and disputes newest first, each with status, reason, amount_cents, answer_state (answerable, compliance, no_response, deadline_passed, under_review, won, lost, closed), evidence_due_by, answer_by_date, held and returned cents, and the dashboard_url where it is answered. Answering a dispute stays in the dashboard: Stripe takes one answer per dispute. Owner key only. #### Business settings The owner’s settings pages, for the owner’s key, run by the same code as the dashboard: which events notify the owner (notification-settings), the legal links, VAT and contact shown to buyers (legal-settings), and the support inbox’s bell and automatic messages (support-settings: the welcome or goodbye message sent when someone joins or leaves, or becomes an affiliate, with an optional picture or video and a test email), and Live Chat per app (live-chat/settings: on or off, the greeting, offline message and placeholder text, also per language in translations, merged by language, the bubble’s look, where it shows and who answers; live-chat/availability: your own Online / Offline switch; live-chat/access-requests: the requests to answer a Live Chat, approved or denied). Each PATCH changes only what it is sent. - `GET /api/v1/businesses/{slug}/notification-settings` Which events notify the business owner, the dashboard’s Notifications settings page: { settings: { disputes, joins, leads, payments, support_all, support_mentions, withdrawals } }, each true or false. With nothing saved yet every switch is on except support_mentions. Owner key only. - `PATCH /api/v1/businesses/{slug}/notification-settings` Switch owner notifications on or off: send only the switches to change, each true or false. Answers every switch after the change. An unknown switch, a non-boolean value or an empty body is a 400. Owner key only. - `GET /api/v1/businesses/{slug}/legal-settings` The dashboard’s Legal settings page: terms_url, privacy_url, return_url, eula_url, vat_id, tax_type, contact_name, contact_email, contact_address, require_terms, collect_vat. The terms and privacy links and the contact name and email are shown to buyers. Owner key only. - `PATCH /api/v1/businesses/{slug}/legal-settings` Change any legal setting; only the fields sent change. Links must start with https://, an empty string clears a text, texts are at most 500 characters; an unknown field or a wrong type is a 400. Answers every field after the change. Owner key only. - `GET /api/v1/businesses/{slug}/support-settings` The support inbox’s settings: notification_pref (which support messages notify the owner: all, mentions or none) and every saved automatic message by trigger_type (user_joins, user_leaves, affiliate_joins) with enabled, message_template, send_email, send_as_user_id and media_url. A trigger not listed was never saved and is off. Owner key only. - `PATCH /api/v1/businesses/{slug}/support-settings` Set the support bell: { notification_pref: "all" | "mentions" | "none" }. Owner key only; the Community area. - `GET /api/v1/businesses/{slug}/live-chat/settings` Live Chat settings per app, the gear in the dashboard’s Live Chat (?app_id= for one): enabled, greeting, greeting_badge (the greeting as a red 1 on the bubble), away_message (the offline message), message_placeholder (the placeholder text), translations (those three per language: { es: { greeting, away_message, message_placeholder } }), position, bubble_size, bubble_wiggle_seconds, bubble_style, bubble_color, icon_color, send_color, page_mode, page_rules, and who answers: live_chat_added, who_answers (owner | team | picked), picked_with_team (team plus the people picked), picked (each with user_id, name, username and kind team or affiliate), affiliates_answer_own_visitors, request_access (Let people request access, true only under picked, or team with picked_with_team; the requests are GET …/live-chat/access-requests). Values: position bottom-right, bottom-left, top-right, top-left; bubble_size auto, small, medium, large (auto is small on phones and medium on bigger screens); bubble_wiggle_seconds 0, 10, 20, 30, 40, 50, 60 (a number: the seconds between two wiggles of the bubble, 0 is off, a new app has 30); bubble_style standard (shown as Solid) or glass (see-through, tinted with bubble_color); bubble_color, icon_color and send_color #rrggbb; greeting and away_message up to 300 characters, message_placeholder up to 60 (the same limits per language in translations); page_mode all, only, except (all: everywhere; only: just the places in page_rules; except: everywhere but them); page_rules is a list of website paths and app screen names: * matches anything, /blog/* also matches /blog, case and a trailing slash are ignored, and an app screen is the name the app passes to Affiliateo.page(); at most 50 rules of up to 200 characters each (more is a 400, nothing is cut), and only with no rules shows the bubble nowhere. Owner key only. - `PATCH /api/v1/businesses/{slug}/live-chat/settings` Change one app’s Live Chat settings: { app_id, ...fields }, only the fields sent change and it shows in the dashboard and on every website and app at once. position bottom-right, bottom-left, top-right, top-left; bubble_size auto, small, medium, large (auto is small on phones and medium on bigger screens); bubble_wiggle_seconds 0, 10, 20, 30, 40, 50, 60 (a number: the seconds between two wiggles of the bubble, 0 is off, a new app has 30); bubble_style standard (shown as Solid) or glass (see-through, tinted with bubble_color); bubble_color, icon_color and send_color #rrggbb; greeting and away_message up to 300 characters, message_placeholder up to 60 (the same limits per language in translations); page_mode all, only, except (all: everywhere; only: just the places in page_rules; except: everywhere but them); page_rules is a list of website paths and app screen names: * matches anything, /blog/* also matches /blog, case and a trailing slash are ignored, and an app screen is the name the app passes to Affiliateo.page(); at most 50 rules of up to 200 characters each (more is a 400, nothing is cut), and only with no rules shows the bubble nowhere. The pages and screens people visited, to pick page_rules from, are GET …/apps/{appId}/funnel/candidates (pages and screens: the list the dashboard’s Where it shows checklist uses, over its last 30 days). translations merge by language: each language sent replaces that language’s words, null takes a language out, languages not sent are kept (en, es, fr, pt, de, ja, it, nl, ko, zh, ru, ar, hi, pl, tr, vi). Who answers: who_answers owner (only the owner) | team (every team member allowed to answer Live Chat) | picked (the owner and the people in picked_user_ids), picked_with_team (with who_answers team only: the whole team answers, and so do the affiliates in picked_user_ids, restricted: no visitor emails or ids, no links), picked_user_ids (the whole list, up to 200: team members by user_id from GET …/team and the app’s affiliates by user_id from GET …/apps/{appId}/affiliates; anyone else comes back in ignored_user_ids), affiliates_answer_own_visitors (each active affiliate answers only the visitors their own link brought), request_access (Let people request access: with picked the team members and the app’s affiliates who cannot open it may ask to answer, with team and picked_with_team the app’s affiliates; true under owner is a 400, choosing owner turns it off, and turning it off or choosing owner cancels the waiting requests). Answers { app }. Owner key only; the Community area. - `GET /api/v1/businesses/{slug}/live-chat/access-requests` The requests to answer the business’s Live Chats that wait for the owner, oldest first (?app_id= for one app’s; an app_id that is not one of the business’s Live Chat apps is 404): { requests: [{ id, app_id, user_id, created_at, name, username, avatar_url, kind }] }, kind team (on the team) or affiliate (an affiliate of the app). They come from Let people request access (request_access in …/live-chat/settings), the Requests on a Live Chat’s Edit visibility page in the dashboard. Someone who left the team, was banned or stopped being an affiliate of the app drops out of the list. Owner key only. - `POST /api/v1/businesses/{slug}/live-chat/access-requests/{requestId}/approve` Approve one waiting request, as Approve on the Live Chat’s Edit visibility page does: the person joins the people picked to answer that app (the list picked_user_ids sets; an affiliate answers restricted: no visitor emails or ids, no links) and is notified; under who_answers team it also turns on picked_with_team. Answers { request: { id, app_id, user_id, status }, person }. 404 for a request that is not this business’s; 409 when it was answered already, the Live Chat no longer takes requests, or the person is no longer on the team or an affiliate of the app (those two close it). Owner key only; the Community area. - `POST /api/v1/businesses/{slug}/live-chat/access-requests/{requestId}/deny` Deny one waiting request, as Deny on the Live Chat’s Edit visibility page does. Nobody is told, and the person may ask again an hour after the deny. Answers { request: { id, app_id, user_id, status }, person }. 404 for a request that is not this business’s; 409 when it was answered already. Owner key only; the Community area. - `GET /api/v1/businesses/{slug}/live-chat/availability` The key owner’s Available / Away switch for each app whose Live Chat they answer, the switch in the header of each Live Chat in the dashboard: { business_id, apps: [{ app_id, name, away }] }. Everyone starts Away (away true) until they switch to Available. Available is not online by itself: the bubble counts the owner as online only while the switch says Available AND they have Affiliateo open (a dashboard tab or the app); with nobody online it shows the offline message. Away still gets the chats and the notifications. Owner key only. - `PUT /api/v1/businesses/{slug}/live-chat/availability` Set the key owner’s Available / Away switch for one app: { app_id, away } (true is Away, false is Available), as the switch in that Live Chat’s header does. It only sets Away or Available: being online also needs Affiliateo open (a dashboard tab or the app). app_id is one of the apps the GET lists (an app with a Live Chat added); any other is 404. Answers { app: { app_id, name, away } }. Owner key only; the Community area. - `PATCH /api/v1/businesses/{slug}/support-settings/automations` Save one automatic message: { trigger_type, enabled?, message_template?, send_email?, send_as_user_id? }, at least one besides trigger_type; only what is sent changes, and a trigger never saved starts off, empty and from the owner. message_template is up to 500 characters with {name}, {business} and {link}; send_as_user_id is the owner (null) or a teammate who answers support. Answers { automation }. Owner key only; the Community area. - `POST /api/v1/businesses/{slug}/support-settings/media` Put a photo or video on one saved automatic message: { trigger_type, upload_key } (upload_key from POST /api/v1/uploads; JPEG or PNG up to 10MB, H.264 MP4 up to 25MB, checked from the bytes). Replaces any earlier one. Answers { trigger_type, media_url }. Owner key only. - `DELETE /api/v1/businesses/{slug}/support-settings/media?trigger_type=user_joins` Take the photo or video off one automatic message. Answers { deleted: true, trigger_type }. Owner key only. - `POST /api/v1/businesses/{slug}/support-settings/test` Email the owner a test of one automatic message: { trigger_type, message_template? } (message_template tries words ahead of the last save). Nothing else happens. Five an hour (429 with Retry-After). Answers { sent: true, email }. Owner key only. #### App analytics and funnels The numbers on the dashboard’s Funnels page and the business overview, for the owner’s key: an app’s reports, its visitors and their paths, its funnel (read, save, clear, evaluate, the values that occurred, an order from real behaviour), and the business’s revenue, MRR and growth. The recorded events are read, never edited. Matched before the apps group, which every /apps/{appId}/ path would otherwise fall into. - `GET /api/v1/businesses/{slug}/stats` The dashboard’s business overview: revenue (gross, net, Stripe fees, affiliate commission, refunded, disputed; US cents), payments (total, successful, per status), subscriptions (active, mrr_cents and arr_cents RIGHT NOW whatever the window, the storefront half and the connected-app half apart, trialing, paused, not renewing, churn within the window), members (new in the window, total, online_now), disputes opened, and series: the same figures day by day (hour by hour for a single day). ?from=&to= are YYYY-MM-DD, to inclusive, both or neither (neither is all time; a series then has points only for days with a payment). Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/analytics?report=…` The dashboard’s Funnels page numbers, one report per call. report: overview (visitors, conversions, revenue_cents and session_avg_seconds for the window under current AND the same length of time before it under previous, plus online_now, trial_cancel { current, previous: { trials, canceled, canceled_still_in_trial, rate, by_plan [{ plan, trials, canceled, rate }] }, change_points }: the trials started whose person turned renewal off before the first charge, overall and per plan, with the change in points, and conversions { current, previous: { downloads, trials, trials_converted, trials_pending, new_paying, download_to_trial, trial_to_paid, download_to_paid, trial_to_cancel }, change: { *_points } }: the Revenue app’s conversion numbers for the same window; a conversion is a purchase, a subscription or a free trial turning paid, never a trial start alone), timeseries (per hour, day or week; &bucket=hour|day|week, chosen by length when absent), countries, pages (median and mean seconds per web page and app screen, up to 200, each stay capped at max_dwell_seconds), time_to_convert (p50/p75/p90/p95/mean seconds from a buyer’s first visit to paying, a free trial included), ghost_conversions (sales whose buyer left no visit in the window) and platforms (ALL-TIME clicks and store sales by ios, android, desktop; takes no window). ?from=&to= take YYYY-MM-DD (to inclusive) or an ISO 8601 time (to exclusive); default the last 30 days, longest 731 days (older events are deleted). Money is US dollars, the Revenue page’s rule (a sale’s dollar value, trials left out, refunds taken off); platforms still sums each sale’s own figure. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/visitors` The people who used the app in the window, most recently seen first (the Funnels page’s Visitors tab): visitor_id, country, city, device, browser, os, source, referrer, referrer_name, ad_source, last_seen, spent_cents. ?limit= 1 to 100 (default 25); while has_more, pass next_cursor back as ?cursor=. Window as for …/analytics. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/visitors/{visitorId}` One visitor’s path through the app in order: step (page path, screen name, goal name, or the event for session_start, session_end, purchased, subscribed, trial, converted, renewed), event_type, entered_at, dwell_seconds (at most 600), is_instant. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/funnel` The app’s one funnel: steps in order and conversion_window_seconds (60 days unless changed). A step is { type, value, label? }: page ("/pricing"), screen (a mobile screen name), custom (a goal the app fires with track(name)) or event (purchased, subscribed, trial, converted = a free trial turning paid, renewed). exists is false until saved. affiliate_app, web_traffic and tracking-only (ads, Track your sales) apps only (400 otherwise). Owner key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/funnel` Save the funnel: { steps?, conversion_window_seconds? }, at least one. steps is the WHOLE list in order (1 to 50) and replaces the saved one, so to add, remove, rename or reorder one step, GET, change the list, send it back; a funnel with no steps yet needs them. conversion_window_seconds is 60 to 7776000 (90 days), left out it stays. The recorded events never change. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/apps/{appId}/funnel` Clear every step of the funnel (the dashboard’s reset). The events are untouched, so it can be rebuilt any time. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/funnel/results` The funnel chart: per saved step, visitors who reached it IN ORDER within the conversion window and the median seconds they took; no_data for a step nothing matched in the window (dead + last_seen_at say whether it ever matched). ?source=meta|tiktok|google|apple_search_ads|snapchat|x|organic narrows to one network’s visitors (an unknown value is a 400, never "all traffic"). Window as for …/analytics. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/funnel/candidates` Every value that occurred in the window and could become a step, with its count: pages, screens, and goals (custom goals type custom; purchased, subscribed, trial, converted, renewed type event). The 100 most frequent of each. Window as for …/analytics. pages and screens are also the places Live Chat’s page_rules name (PATCH …/live-chat/settings): the same list the dashboard’s Where it shows checklist offers. Owner key. - `POST /api/v1/businesses/{slug}/apps/{appId}/funnel/suggest-order` The order people really reach these steps in ({ steps?, lookback_days? }; steps default to the saved funnel’s, lookback 1 to 365 days, default 30): each step’s median time from a person’s first event, unreached steps last. Arithmetic over recorded events, no AI. SAVES NOTHING (PATCH …/funnel to keep it), so a read key may call it. #### App payment connections Where an app’s sales come from, for the owner’s key: every connection at a glance, connecting Stripe, Paddle, Whop, Polar, Shopify, WooCommerce, RevenueCat, Apple and Google Play with the dashboard’s own steps (the OAuth providers answer a link the owner approves in a signed-in browser), disconnecting any of them, the App Store and Google Play key checks (run again, the App Store Connect key, the keys the owner’s other apps hold), Apple’s test notification, Google Play’s optional Pub/Sub notifications, the product catalogs per-product rates are set against, and the RevenueCat entitlement free access grants. No secret is ever returned. Matched before the apps group, which every /apps/{appId}/ path would otherwise fall into. - `GET /api/v1/businesses/{slug}/apps/{appId}/connections` Every payment connection of the app, read from the app alone: stripe, paddle, whop, polar, shopify, woocommerce, revenuecat ("pending_project" when approved but no project picked), apple, google_play and adapty, each with connected and what the dashboard shows (account ids, a key’s last four, webhook ids, store names, the store webhook URL to paste; shopify and woocommerce say pending while an approval waits), plus web_provider, web_providers (every web provider connected), mobile_provider, can_connect_mobile and health_issue. No provider is called, with two exceptions: while RevenueCat is pending_project it lists the projects to pick from (projects [{ id, name }], or null with projects_error), and ?include=stripe_status asks Stripe once, when connected, for details_submitted, charges_enabled, payouts_enabled and business_name (status_error when Stripe does not answer). apple and google_play also carry checks, the last credential checklist (CheckReport, or null), and apple carries asc_key ({ key_id_last4, added_at } of the App Store Connect key, or null). google_play status may be "pending" (connected false, pending true, pending_since, pending_until): Google accepts the key but Play access is not active yet, and it is checked again every 10 minutes for 72 hours. google_play notifications is { topic, subscription, managed } once real-time notifications are set up (managed: Affiliateo made the push subscription), else null. google_play also carries project_id and private_key_id_last4 of the stored key (read from it on the server; never the key), or null when none is stored. No secret is ever in it. Owner key. - `POST /api/v1/businesses/{slug}/apps/{appId}/connections/{provider}` Connect a payment provider with the dashboard’s own steps. stripe, polar, revenuecat: {} answers connect_url, which the OWNER opens in a browser signed in to Affiliateo and approves (15 minutes; RevenueCat then asks for the project there, or send { project_id } here). shopify { shop, replace? } and woocommerce { shop_url, replace? }: a connect_url approved in the store admin; replace: true is required when already connected to that provider, because starting removes the current webhooks at once. paddle, whop: { api_key }, connected at once. apple { issuer_id, key_id, p8, bundle_id, app_apple_id, environment }, or reuse_from_app_id (a source_app_id from …/saved-store-keys) in place of issuer_id, key_id and p8, plus the optional App Store Connect API key that imports products (asc_key_id + asc_p8, or asc_reuse_from_app_id; role App Manager or above). google_play { service_account_json (or reuse_from_app_id), package_name, pubsub_topic?, environment? (stored, changes nothing) }. The store keys are checked read only and the answer carries checks (CheckReport: checked_at, ok, waiting, items [{ id, state pass | fail | waiting | skipped, required, code, params, detail }]) beside webhook_url and setup_url; apple also answers asc_key. apple takes send_test: false (no test notification on connect; absent sends one after the save, the old behaviour): paste webhook_url in App Store Connect, then POST …/connections/apple/test-notification. google_play takes accept_pending: true and then answers connected, or pending: true (connected false, pending_until) when Google accepts the key but Play access is not active yet (a new key can take up to 36 hours): the key is stored encrypted, checked again every 10 minutes for 72 hours, and the app goes live once the checks pass; without accept_pending such a key is not kept (400 play_access_pending with checks); a reconnect keeps the stored pubsub_topic when none is sent; a pending key never replaces one that is connected and working (400). A failed required check is a 400 whose message ends with the check code in brackets, with checks beside the error; 409 CONFLICT (already_connected) when another Affiliateo app holds the bundle ID (per environment) or package name, with other_app { id, name } when the same owner holds it; 500 connect_not_saved when nothing could be saved. When RevenueCat already handles that app, leave the store pointed at RevenueCat (Apple takes one Server URL per app and Play Console one topic): Apple’s webhook_url goes in RevenueCat’s Apple Server Notification Forwarding URL, and Google’s is a push subscription added to RevenueCat’s own Pub/Sub topic. adapty is refused (403): its setup shows a webhook secret that is enough to report sales, so it is dashboard only. The web providers connect beside each other, and so do the store providers, so an app can move from one to another without a gap. apple and google_play find a sale’s buyer by the tag the app passes with the purchase (StoreKit appAccountToken, Play Billing obfuscatedAccountId): the tag the mobile SDK hands out, or the app’s own account id when the app passes that exact same id to identify right after sign-in, before the person can buy (Apple takes only a UUID; Google’s is matched to the identify id exactly, only a UUID’s letter case ignored, and must be at least 8 characters and not a plain number); the SDK’s own tag wins when both could match. Moves no money. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/apps/{appId}/connections/{provider}` Disconnect a payment provider the way the dashboard does: webhooks removed at the provider where it can, discount codes switched off first (Stripe, Shopify, WooCommerce), keys purged, and the app paused only when nothing else still sells. The app’s affiliates are told. google_play also ends a pending key, and deletes the Pub/Sub push subscription Affiliateo made first (best effort, never anyone else’s). 400 when that provider is not connected. Moves no money. Requires a read_write key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/connections/apple` The optional App Store Connect API key of an app connected to Apple, which imports its products and prices (an In-App Purchase key cannot): { asc_key_id, asc_p8 } (role App Manager or above), { asc_reuse_from_app_id } (a source_app_id from …/saved-store-keys apple_asc) or { asc_remove: true }. A new key is saved only once Apple lets it read the app; a refused one changes nothing (400 with checks). Answers { provider, asc_key: { key_id_last4, added_at } | null, checks }. Apple only (another provider is a 404). Moves no money. Requires a read_write key. - `POST /api/v1/businesses/{slug}/apps/{appId}/connections/{provider}/check` The dashboard’s "Check again" for apple or google_play: every credential check run again with the stored keys, read only at Apple and Google, and the report stored. Answers { provider, status, checks }. An app the store had refused (status error) is connected again when the checks pass (Apple: the purchases check), and a pending Google key whose checks pass goes live exactly like a connect. Check rows, in order: apple_key_file, apple_purchases, apple_app_match, apple_catalog; google_key_file, google_key_active, google_purchases, google_products, google_subscriptions, google_notifications. Moves no money. Requires a read_write key. - `POST /api/v1/businesses/{slug}/apps/{appId}/connections/apple/test-notification` Ask Apple to send a TEST notification to the Server URL pasted in App Store Connect for this app. Answers { provider, test_notification_token, requested_at }; read where it landed with the GET below. 502 when Apple does not answer. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/connections/apple/test-notification?token=…&since=…` Where Apple’s test notification got to: token is test_notification_token and since its requested_at. Answers { provider, state, reason }: received (this app heard it at or after since), sent_elsewhere (Apple delivered it, but not to Affiliateo: another URL is pasted in App Store Connect), failed (reason is Apple’s sendAttemptResult: TIMED_OUT, TLS_ISSUE, ...) or waiting. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/connections/google_play/notifications` Google Play real-time notifications, read with the stored service account: { provider, can_manage, problem (a checklist row, or null), topics: [{ name, full_name }] (the Cloud Pub/Sub topics of the service account’s project), current: { topic, subscription } | null, suggested_topic_id: "play-store-notifications" }. can_manage false with problem when the key cannot set notifications up yet. Owner key. - `POST /api/v1/businesses/{slug}/apps/{appId}/connections/google_play/notifications` Optional (without them, Google Play sales still arrive within about 15 minutes; with them, within seconds). Set Google Play real-time notifications up with the stored service account: { topic: "projects/P/topics/T" } (an existing topic, e.g. the one RevenueCat made, so both hear it) or { create_topic: "id" }. The topic is created if asked, Google Play is allowed to publish to it (google-play-developer-notifications@system.gserviceaccount.com gets roles/pubsub.publisher), and Affiliateo’s own push subscription affiliateo- to the app’s webhook is created or updated, signed as the service account. Answers { provider, topic, subscription, play_console_steps_url }. Then the owner pastes the topic in Play Console > Monetize with Play > Monetization setup, picks "Subscriptions, voided purchases, and all one-time products", saves and clicks "Send test notification". 400 with problem: pubsub_role_missing (needs Pub/Sub Admin), actas_missing (needs Service Account User on itself), api_disabled (problem.params.url turns the API on), org_policy (Domain Restricted Sharing), topic_not_found. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/apps/{appId}/connections/google_play/notifications` Stop Google Play notifications reaching Affiliateo: Affiliateo’s own push subscription is deleted (best effort; never anyone else’s, and the topic stays) and the topic forgotten. Answers { provider, removed: true }; removed is false when nothing was set up, and Google Play not connected at all is a 400. The Google Play connection itself stays. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/saved-store-keys` The App Store and Google Play keys the key holder’s OTHER apps already hold (only this business’s when the API key is pinned to one business), one entry per key and never any key material: { apple_iap: [{ source_app_id, key_id, issuer_id_last4, used_by: [{ app_id, name }] }], apple_asc: [same], google: [{ source_app_id, client_email, project_id, used_by }] }. Reuse one on connect with reuse_from_app_id (or asc_reuse_from_app_id) = source_app_id. Owner key. - `GET /api/v1/businesses/{slug}/saved-store-keys` The same saved keys before any app exists (a create flow with no app yet): every App Store and Google Play key the key holder’s apps hold (only this business’s when the API key is pinned to one business), one entry per key, none left out, never any key material. Same shape as …/apps/{appId}/saved-store-keys; reuse one on connect with reuse_from_app_id (or asc_reuse_from_app_id) = source_app_id, which checks again that the same owner holds it. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/provider-products` The product catalogs of the app’s connected providers, for per-product commission rates: provider (or "mixed" for a web and a store catalog), account, products (id, name, price where listed or filled from real sales, source web | mobile, provider, account, max_percent: the highest rate that rail allows), catalogs, manualOnly (an Apple key that cannot list products). Every catalog or none: one unreachable provider is a 502. 400 when none with a catalog is connected. Set the rates with PATCH …/apps/{appId} (affiliate_product_rates). Owner key. #### Invites, requests and submissions Who may see an invite-only app (list, find, invite, take back), the requests to join an app that approves who joins (approved onto its invite list, or denied, with the owner’s key; no money moves), the collab and placement requests creators send, and the business’s review queue of clipping submissions. Denying a creator’s request and rejecting or flagging a submission are here, and so is approving either, which pays a creator and needs a key with its Payouts switch on, within its daily limit. The owner’s key, or a manager’s own (never on their own request or clip). Matched before the apps group. - `GET /api/v1/businesses/{slug}/apps/{appId}/invites` Everyone invited to an invite-only app, newest first: id, user_id, name, username, avatar_url, is_verified, created_at. Owner key. - `POST /api/v1/businesses/{slug}/apps/{appId}/invites` Invite one person: { user_id } (from …/invites/candidates). THE PERSON IS NOTIFIED AND EMAILED and can open and join the app at once; there is no accept step. Inviting somebody already invited answers the invite (already: true) and tells nobody again. 201 for a new invite. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/invites/candidates?q=…` Find the person to invite: q of two characters or more matches a name or username (a leading @ is ignored), up to ten people, never the owner; when nobody matches and q is a complete email address it finds the account that holds it, ten such lookups a minute. Each: id (the user_id to invite), display_name, username, avatar_url. Owner key. - `DELETE /api/v1/businesses/{slug}/apps/{appId}/invites/{userId}` Take an invite back. The person is not told, and somebody who already joined stays. Answers { revoked, user_id }: revoked is false when the person held no invite, and nothing changes, so it is safe to repeat. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/join-requests` The people asking to join an app that approves who joins (require_application on an affiliate program, a web_traffic or a clipping app), oldest first: { app_id, requests: [{ id, app_id, user_id, created_at, name, username, avatar_url }] }. The same list as Requests on the app’s Visibility page in the dashboard. Someone banned, or already in (invited, or an affiliate already), drops out of it; an app that does not approve who joins has none. {appId} = app UUID or slug. Owner key only. - `POST /api/v1/businesses/{slug}/apps/{appId}/join-requests/{requestId}/approve` Approve one waiting request, as Approve on the app’s Visibility page does: the person goes on the app’s invite list (GET …/invites) and is notified, and on an affiliate program or a web_traffic app is made an affiliate in the same step, as any new affiliate (automatic free access included). Answers { request: { id, app_id, user_id, status }, person, joined }: joined is true when they are an affiliate now; when that step cannot finish (no username yet, say) they stay approved and press Join themselves. On a clipping app the invite is what lets them submit. 404 for a request that is not this app’s; 409 when it was answered already, or the person can no longer join (banned), which closes it. Owner key only; requires a read_write key. - `POST /api/v1/businesses/{slug}/apps/{appId}/join-requests/{requestId}/deny` Deny one waiting request, as Deny on the app’s Visibility page does. Nobody is told, and the person may ask again an hour after the deny. Answers { request: { id, app_id, user_id, status }, person, joined: false }. 404 for a request that is not this app’s; 409 when it was answered already. Owner key only; requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/requests` The collab and placement requests creators sent the app, newest first: every column of the request (status pending | approved | denied | completed, requested_payout_cents, payout_cents, platform, analytics_screenshot_url, review_note, approved_at, expires_at…) with the creator’s name, username, avatar and social accounts. Reading settles nothing. Owner key, or a manager’s own key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/requests/{requestId}` Deny a pending request: { status: "denied", review_note } (required, up to 500 characters; THE CREATOR IS TOLD IT). Nothing was reserved for a pending request, so nothing moves. Approve with POST …/requests/{requestId}/approve (a key whose Payouts switch is on); reporting stays in the dashboard. Requires a read_write key: the owner’s, or a manager’s own (never on their own request). - `POST /api/v1/businesses/{slug}/apps/{appId}/requests/{requestId}/approve` Approve a pending collab or placement request: { payout_cents?, review_note? } (payout_cents left out approves what the creator asked for). The payout plus Affiliateo’s fee is RESERVED out of the app’s budget now and paid to the creator when the placement period ends; a reservation the budget cannot cover is 400 insufficientFunds. The creator is told. Answers payout_cents, platform_fee_cents, total_from_budget_cents, expires_at. NEEDS A KEY WITH ITS PAYOUTS SWITCH ON and counts against that key’s daily limit: past it nothing is reserved, 403 PAYOUT_LIMIT_EXCEEDED, and the request waits in the dashboard. The owner’s key, or a manager’s own key (never on their own request). - `GET /api/v1/businesses/{slug}/submissions` The review queue: clipping submissions and collab requests of every app, newest first, as the Submissions page shows them: type (submission | request), app, creator, content_url, platform, views_count, status, filter_status (pending | active | denied | completed), payout_cents, review_note, submitted_at, reviewed_at. ?filter_status=, ?type= and ?app_id= narrow it. Owner key, or a manager’s own key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/submissions/{submissionId}` Reject or flag a pending clipping submission: { status: "rejected" | "flagged", review_note? }. flagged means reported: the creator is told no payout will be made. THE CREATOR IS NOTIFIED. The app must still be running. Approving pays the creator: POST …/submissions/{submissionId}/approve, with a key whose Payouts switch is on. Requires a read_write key: the owner’s, or a manager’s own (never on their own clip). - `POST /api/v1/businesses/{slug}/apps/{appId}/submissions/{submissionId}/approve` Approve a pending clipping submission and PAY the creator: { views_count?, review_note? }. The payout is views_count (left out: the views the submission recorded) times the app’s rate per 1,000 views, the platform’s own rate when set, within its minimum and maximum; it and Affiliateo’s fee come out of the app’s budget, and a payout the budget cannot cover is 400, never part-paid. The creator is told. Answers payout_cents, fee_cents, total_from_budget_cents, remaining_cents, campaign_ended. NEEDS A KEY WITH ITS PAYOUTS SWITCH ON and counts against that key’s daily limit (payout plus fee): past it nothing is paid, 403 PAYOUT_LIMIT_EXCEEDED, and the clip waits in the dashboard. The owner’s key, or a manager’s own key (never on their own clip). #### Businesses and apps Make a business, edit its name and branding, then create and edit the apps on it, their store screenshots, and the App Store apps in its sidebar, with who may open each (visibility, the people picked and their requests to be added). Deleting a business is deliberately not on the API: it takes down products, apps, affiliate links and members’ access at once. - `GET /api/v1/businesses` Businesses this key can act on, with ad-network connection status and every app’s id/slug/type/status (source of the {appId} below), each with role: owner; and team_businesses, the ones the key’s holder works in on somebody else’s team, with their role and permissions (what a team key reaches there). - `POST /api/v1/businesses` Create a business: the container products, apps and affiliate programs live in. Same validation as the dashboard’s create dialog: { name, business_model, description? }, the name becomes the globally unique URL slug (a clash is 409 CONFLICT, a reserved word or an impersonation of the platform, an authority role or a payment brand a 400), and business_model must be one of the six labels the refusal names. AT MOST THREE PER ACCOUNT (409 CONFLICT past that; deleting one frees a slot). Needs an ACCOUNT-WIDE read_write key: a key pinned to one business is refused, because a business it would create is by definition outside what it was pinned to. Repeatable safely: a retry with the same name and category replays its first answer rather than spending another slot. Add the logo, cover and description with the PATCH below. - `GET /api/v1/businesses/{slug}` One business: name, URL slug and public URL, description, category, logo, cover, private flag, custom domain, member count, rating, when the name last moved, created/updated. The read half of a read-modify-write against the PATCH below. - `PATCH /api/v1/businesses/{slug}` Edit a business. Send only what changes: name, description, business_model, is_private, domain, logo_url, cover_url. Pictures are public https URLs fetched server-side (SSRF-guarded, magic-byte validated, 25MB, jpeg/png/webp/gif, never SVG), or multipart logo / cover file parts. RENAMING MOVES THE URL: the old slug is released the moment the new one is claimed, so every saved link 404s, and a rename is therefore capped at one every 14 days (429 with the days left; sending the name it already has is a no-op and costs nothing). The response always echoes slug, because after a rename the old one no longer answers. Deleting a business is NOT on the API at all and stays a dashboard action: it takes down products, apps, affiliate links and members’ access at once, and a retry would do it twice. Requires a read_write key. - `GET /api/v1/businesses/{slug}/app-instances` The App Store apps in the business’s sidebar (community = Chat, faqs, courses, events, files, calendar, funnels, tracking, leads, revenue, and the ad network apps), NOT the affiliate programmes under …/apps: id, app_slug, ordinal, key, name, custom_name, path, visibility, picked and request_access (the people you pick and their requests), people (user_id, name, username, kind team or member), gated_product_ids, hidden, icon_url, ad_account_id (ads apps), live_chat_app_id (live_chat: the app it is for), position in the order and removing_deletes_content; app_order, category_order and category_names are the order itself (app_order as stored, campaign: entries being business apps); and `available`, the catalog with max_copies and how many are added. Owner key. - `PATCH /api/v1/businesses/{slug}/app-instances` Set the sidebar’s order: { app_order?, category_order?, category_names? }. app_order is the WHOLE order and must keep every stored entry (rearranged; new entries are keys of copies in the sidebar or campaign:); [] or null puts back the default. category_order takes community and home; category_names renames them, null or "" clearing one. Answers the three as saved. Owner key only. - `PATCH /api/v1/businesses/{slug}/app-instances/{instanceId}` Change one sidebar app, merged into the stored settings: { name?, visibility?, gated_product_ids?, hidden?, icon?, ad_account_id?, app_id?, picked?, request_access?, people_user_ids? }. The six choices every app shares: public, private (Private + team), private + picked (Private + team + people you pick), private_only + picked (Private + people you pick), private_only (Private), product_gated. picked needs private or private_only (private_only alone for Leads and the ad apps, whose list holds only the team), request_access (Let people request access) needs picked, and neither is for live_chat (its own is …/live-chat/settings); a visibility without a list turns both off and cancels the requests waiting. people_user_ids is the whole list, up to 500: members by user_id (GET …/members), team members for Leads and the ad apps; anyone else comes back in ignored_user_ids, and the list is kept while another choice is set. name null, "" or the default name goes back to the default, and a name another app uses is a 400. visibility is public, private, private_only or product_gated (with at least one of this business’s products); an ads app or Leads takes only private or private_only, refused rather than clamped. icon is { upload_key } from POST /api/v1/uploads, { url }, or null to remove (PNG, JPEG or WebP up to 25MB). ad_account_id is for ads apps only, "" to unbind. app_id is for a copy of Live Chat with no app (live_chat_app_id null, or its app was removed or ended), as the dashboard’s app picker on that Live Chat does: an affiliate, web traffic or ads app from GET …/apps (400 otherwise) that no other Live Chat covers (409), and its chat bubble is switched on; a copy that already covers a live app keeps it (409: add another copy for another app). Answers { app } shaped like a list entry. Owner key only. - `POST /api/v1/businesses/{slug}/app-instances` Add a copy of an App Store app to the sidebar ({ app_slug, app_id? }), as the dashboard’s App Store does: a further copy gets the next number ("Chat 2" at /chat-2); funnels, tracking, leads and revenue have one copy, and adding one back restores it as it was. live_chat is added once per app: app_id (from GET …/apps, an affiliate, web traffic or ads app) is required, and its chat bubble is switched on; 409 when that app already has a Live Chat. 409 at the limit. Requires a read_write key. - `GET /api/v1/businesses/{slug}/app-instances/{instanceId}/access-requests` The people asking to be added to one App Store app’s people list (Let people request access, request_access on the app), oldest first: { instance_id, key, requests: [{ id, instance_id, user_id, created_at, name, username, avatar_url, kind }] }, kind team or member. The same list as Requests on the app’s Edit visibility page in the dashboard. Someone who left, was banned or can no longer be on the list drops out of it. A Live Chat’s are GET …/live-chat/access-requests (404 here). Owner key only. - `POST /api/v1/businesses/{slug}/app-instances/{instanceId}/access-requests/{requestId}/approve` Approve one waiting request, as Approve on the app’s Edit visibility page does: the person joins its people list (people on GET …/app-instances) and is notified. Answers { request: { id, instance_id, user_id, status }, person }. 404 for a request that is not this copy’s; 409 when it was answered already, or the person can no longer be on the list (no longer a member, or on the team for Leads and the ad apps), which closes it. Owner key only; requires a read_write key. - `POST /api/v1/businesses/{slug}/app-instances/{instanceId}/access-requests/{requestId}/deny` Deny one waiting request, as Deny on the app’s Edit visibility page does. Nobody is told, and the person may ask again an hour after the deny. Answers { request: { id, instance_id, user_id, status }, person }. 404 for a request that is not this copy’s; 409 when it was answered already. Owner key only; requires a read_write key. - `DELETE /api/v1/businesses/{slug}/app-instances/{instanceId}` Take one copy out of the sidebar. For an app that holds content (Chat, FAQs, Courses, Events, Files, Calendar) THAT CONTENT IS DELETED FOR GOOD SEVEN DAYS LATER (content_deleted_after_days says so); Funnels, Tracking, Leads and the ad apps lose nothing. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps` Every app on the business (every type, any status): id, slug, name, type, status, visibility. Types: affiliate_app (commission on sales), clipping, web_traffic, collab. The id/slug source for create/edit flows. A thin index only: it carries no money fields, so read the single-app endpoint below for a budget app’s budget_cents/spent_cents/payable_capacity_cents. - `POST /api/v1/businesses/{slug}/apps` Create an app - same validation and clamps as the dashboard wizard (percent commission ≤90, ≤70 store-mediated mobile, flat ≤$50, 1% floor; the name becomes the globally unique URL slug). JSON body with the wizard’s field names, or multipart with thumbnail / collab_media_0..4 file parts; JSON callers pass media as public https URLs (thumbnail_url, media_urls - fetched server-side, SSRF-guarded, magic-byte validated; placement collabs require ≥1 creative). clipping/web_traffic/collab are born pending_budget (owner funds in the dashboard, $100 min; funding is free, because a budget app’s 1% platform fee is charged per payout out of the same budget instead - a $100 payout costs the budget $101, so size a budget as intended payouts times 1.05); affiliate apps (provider stripe, paddle, polar, whop, shopify or woocommerce on the web rail, the wizard’s six; a shopify or woocommerce app reads back web_provider stripe and status pending_stripe until its store is connected, as the wizard’s draft does) are born pending the provider connection - connect it with POST …/apps/{appId}/connections/{provider} (the OAuth providers answer a link the owner approves in a signed-in browser) or in the dashboard; the response’s next_step carries the dashboard URL to finish either. content_type for an affiliate program is "affiliate_app" (one name, sent and read back), and you set its rails with provider + website_url (web) and/or mobile_provider + a store URL (mobile); either can be added later, and sending neither is a 400. One app, both rails, one device-routed referral link - there is no separate “mobile affiliate” and “web affiliate” to create. coupon_codes_enabled + coupon_discount_percent are settable here too but only land once the STRIPE web rail is CONNECTED, which this endpoint does not do: create the app, connect Stripe with POST …/apps/{appId}/connections/stripe (a link the owner approves in a signed-in browser) or in the dashboard via next_step, then PATCH the switch on. phones_to_website and web_auto_bounce (see the PATCH below) are accepted here too, and so are free_access_auto + free_access_auto_product_id (automatic free access, see the PATCH below): stored on a new app, so the first affiliates to join get it. The closer commission (closer_bonus_type off | percent | flat with closer_bonus_rate, what whoever answers a customer in Live Chat earns when they buy: see the PATCH below) is accepted here too. Mobile apps return their webhook secret once. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}` App info for the embedded-signup pitch screen: commission rate/type (with per-product rates, prices, ≈commission-per-sale estimates and the side each sells on, rail web or mobile, for the app’s visible products), affiliate count, total paid out, status, and require_application (whether the app approves who joins: people request to join and the owner approves them, GET …/apps/{appId}/join-requests). For web_traffic apps commission is null and a click_payout object carries the per-click rate (cpc_cents), budget, and remaining budget instead (exactly one of commission / click_payout is non-null). Also carries a full owner-facing settings object (the key holder is the owner) for read-modify-write edit flows, the closer commission included (settings.closer_bonus_type and settings.closer_bonus_rate, null when off; what closers earned is closer_commission_cents on GET …/apps/{appId}/summary). On budget apps (clipping, web_traffic, collab) that settings object carries payable_capacity_cents next to budget_cents/spent_cents: funding is free and the 1% platform fee is charged per payout out of the same budget, so budget_cents is GROSS and remaining budget alone overstates what a creator can be offered. payable_capacity_cents is the largest single payout the remainder still covers including its fee, and a payout the remainder cannot cover with its fee is refused outright rather than part-paid. Quote that number, not budget minus spent. - `PATCH /api/v1/businesses/{slug}/apps/{appId}` Edit an app’s settings - same fields and clamps as the dashboard edit dialog: name (re-derives the slug), description, category, requirements, faqs, visibility (public, private: Private + team, invite_only: Private + team + people you pick, the people invited, private_only: Private) with invite_excludes_team (true with invite_only is Private + people you pick: the team out; a visibility other than invite_only sent without it turns it off), require_application (Approve who joins, on an affiliate program, a web_traffic or a clipping app while it is public or invite_only: people ask to join and you approve them at …/apps/{appId}/join-requests, and an invite_only app shows, locked, to people signed in so they can ask; turning it off, or a private visibility, cancels the waiting requests; collab apps always work by request), commission rate/type (notifies affiliates; new customers only), per-product rates, the closer commission (closer_bonus_type off | percent | flat, closer_bonus_rate 1-25 percent or $0.01-50: whoever has the customer’s chat when they buy (the first person to reply, unless the customer waited 10 minutes for them and someone else took over, or the chat was taken from them (off Live Chat, or that 10-minute handover), when whoever answers next does; for 60 days after their last reply or the last sale credited to them, like an affiliate link) earns it on the sale and its renewals, never the owner; a chat is the customer’s by the visitor or phone it came from, or by your app’s user id only when an identify tied that id to the chat’s visitor or phone before the chat began; a percent closer commission plus a percent rate stays within 90, or 70 on a store-only app), affiliate discount codes (coupon_codes_enabled + coupon_discount_percent - every affiliate gets a Stripe code made from their username, so a buyer who types it at checkout is credited to them with no link click; needs the Stripe web rail already connected AND allow_promotion_codes: true on the merchant’s own Checkout session, which we can neither set nor detect - without it the codes exist and no buyer can type one; turning it OFF hides codes from affiliates without deactivating them in Stripe, so a code already said on a podcast keeps working), web_auto_bounce (you confirm your landing page forwards mobile visitors to your store listing; while it is false, an app that HAS a store URL stops offering links.direct to its affiliates, because on your own domain only you can send an iPhone to the App Store, and the /r/ forms do that for you), phones_to_website (send phones that open an affiliate link, the /r/ links and their QR codes, to website_url?ref= like computers instead of to the store listing; needs the web rail, and turning it on for an app that does not sell on its website is refused with a 400; the click is still recorded, so an app install that follows can still be matched; it also offers links.direct and outranks web_auto_bounce), share_ad_sales_with_affiliates (true | false, off by default: a sale an affiliate’s OWN ad brought through this app is also sent, through the ad network, to that affiliate’s own pixel or Google conversion action, valued at their commission, with the ad’s click id and never the buyer’s email; sales made while it is off are never sent; the app answers share_ad_sales_with_affiliates_since), automatic free access (free_access_auto: 1w | 1m | 3m | 1y | forever, or "off" / null to switch it off, anything else is a 400; every affiliate who joins - on Affiliateo, in the Affiliateo iPhone app, through POST …/affiliates from your own app, by a link, a rejoin or an unban - gets your paid app free for that long, by the same rules as POST …/affiliates/free-access; switching it on also gives it to every active affiliate already there without it; rows it gave FOLLOW it: a new length moves each end, counted from when each got it, a new free_access_auto_product_id moves their plan, off takes it back; a row the owner changed by hand is theirs and the setting leaves it alone; free_access_auto_product_id is the plan on apps without RevenueCat, null = full access, while RevenueCat apps give the entitlement chosen at …/revenuecat-entitlements; it needs a mobile payment provider connected to give anything, and both are read back on GET; what a change does runs just after the response), URLs, platforms, rewards, submission window, retention, placements, plus media (thumbnail_url / remove_thumbnail / media_urls replace-all, or multipart file parts). Locked with explicit errors: content_type, status, budget. provider (web) and mobile_provider can be ADDED to an app that lacks that rail - a website-only app growing a mobile rail (mobile_provider + a store URL), or the reverse (provider + website_url) - but not switched or cleared: disconnect in the dashboard first. Funding and ending stay dashboard actions; a provider connects with POST …/apps/{appId}/connections/{provider}. {appId} = app UUID or slug. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/screens` The app’s store screenshots and preview videos (the Screens tab; apps with a mobile rail only): id, section, image_url, media_type, sort_order, created_at, by section then position. sections gives each section’s size: app_ios_mobile, app_ios_tablet, app_android_mobile, app_android_tablet hold 10, onboarding holds 50. Owner key. - `POST /api/v1/businesses/{slug}/apps/{appId}/screens` Add one screen from a public https URL ({ section, url }): an image (JPEG, PNG, WebP, GIF, up to 10 MB) or a video (MP4 or MOV, H.264, up to 50 MB, one per section, stored as MP4), at the end of its section. 409 when the section is full or already has its video. Requires a read_write key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/screens` Reorder one section ({ section, order: [screenId, ...] }) naming every screen of that section exactly once. Requires a read_write key. - `DELETE /api/v1/businesses/{slug}/apps/{appId}/screens/{screenId}` Remove one screen, file and all. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/transactions` The app’s Transactions tab, by the dashboard’s own query: every conversion newest first, organic sales, paid-network sales and the owner’s own link included (the affiliate feed …/affiliates/conversions leaves those out). Each row: id, created_at, display_type, conversion_type, amount_cents, amount_cents_usd, currency, provider, commission_cents, status, standing_status, payout_status, display_status (unpaid | paid | refunded | na | on_hold), source (the tab’s label), source_type (organic | affiliate | a network key), affiliate_id, ref_code, owner_link, original_conversion_id, trial_conversion_id, payable_at, paid_at. No customer details. ?limit= 1 to 500 (default 100), ?offset=; answers { transactions, has_more, limit, offset }. Owner key. - `GET /api/v1/businesses/{slug}/apps/{appId}/summary` The app’s affiliate program at a glance: affiliate counts, lifetime totals (clicks, conversions, renewals, revenue, commission) and payout buckets (pending/payable/paid/refunded) summed across every affiliate; for web_traffic apps these are per-click earnings (their conversion money stays zero). ?from=&to= (YYYY-MM-DD, UTC days, inclusive) adds the same numbers for that window (net money, Stripe convention); &include=daily adds a per-day series for charting (window ≤366 days). Owner tracking links and organic sales excluded, so it reconciles with the affiliates list. totals.closer_commission_cents (and window.closer_commission_cents with ?from=&to=) is what closers earned, net of take-backs, kept apart so commission_cents still reconciles with the affiliates list; the dashboard’s Earned tile shows the two together. RECURRING: a `recurring` object carries what referrals pay every MONTH - mrr_cents (commission, not the customers’ subscription value), arr_cents, subscribers, trialing (in a free trial right now - outside subscribers and outside mrr_cents, and it FALLS when a trial ends either way), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL, never 0, until five people have ever subscribed - render null as “not enough data”, because below five one leaver moves it 25 points. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR rather than a total. It is a RATE at today’s subscription set, so ?from=/?to= does not and cannot filter it: there is no “MRR for March”. Owner links are dropped from it too, so the roll-up still sums to the roster. #### App affiliates People promoting one app. Embedded signup, their stats and conversions, one affiliate’s personal commission, the hosted links that get them paid-ready, cashed out, or embedded in your own UI, and the Pay tab: what every app affiliate is owed, and the pay run, which needs a key with its Payouts switch on. - `POST /api/v1/businesses/{slug}/apps/{appId}/affiliates` Embedded affiliate signup (the "Become an affiliate" button): { email, name?, username?, app_email?, free_access? } finds-or-creates the Affiliateo account, joins the business, enrolls the affiliate, and returns referral links (short + qr + username + merchant-domain direct for apps with a website, withheld on an app that ALSO has a store listing until its owner confirms that page forwards mobile visitors to the store (web_auto_bounce) or sends phones to the website anyway (phones_to_website), since on the merchant’s own domain only the merchant can send an iPhone to the App Store, plus the affiliate’s COUPON code when the app has Stripe discount codes switched on - that one is a code the buyer types at checkout, not a URL, so it is not QR-able), stats, a verified flag (identity check passed), and a payout readiness object ({ identity_verified, payouts_enabled }, webhook-fresh with no Stripe call: gate your Verify / Cash out buttons on it) in one payload (web_traffic apps also return per-click payout buckets + a click_payout object). Safely repeatable: an existing affiliate returns 200 with current links + stats, and one who previously left the business is reactivated. Users banned from the business are rejected with FORBIDDEN. On an app that approves who joins (require_application), only the people on its invite list (invited, or approved with POST …/join-requests/{requestId}/approve) are enrolled, and anyone else is a 400 VALIDATION_ERROR: they request to join on Affiliateo and the owner approves them. OPTIONAL `username` lets you add a handle field next to the email field: 3-30 chars of a-z 0-9 . _ , it becomes ref_code and therefore the readable half of every link they hand out. Best-effort by design and it NEVER fails the call - taken, malformed or reserved falls back to the random adjective+noun handle, and an email that already has an Affiliateo account keeps its own handle untouched (a merchant does not get to rename someone whose links are already in circulation elsewhere). Read `username_applied` (boolean) and `username_status` (applied | taken | invalid | reserved | account_exists | unavailable), both present only when you sent a username; when it is not "applied", show the handle they actually got and point them at affiliateo.com to change it, which is free the first time. Send no username and you get the random handle, exactly as before. A username that lands with NO `name` alongside it also seeds the display name and the auto-created business name, with dots/underscores read as spaces (jane.doe → "Jane Doe"), so a form that only asks for email + handle no longer leaves the person under a random "Swift Panda" they never chose; `name` always wins when supplied. A TAKEN handle still names them (display names are not unique, so the collision is irrelevant to what they may be called); a MALFORMED one does not. Names are sanitised rather than trusted: one impersonating the platform, staff or a payment brand ("Affiliateo Support", "Stripe", "Admin"), or made of emoji/stacked combining marks, is replaced with a safe one - same rule the profile settings page enforces, and it never fails the call. FREE ACCESS IN THE SAME CALL, for apps that give affiliates the paid app free (most apps then need no other call): `app_email` (string | null) is the email the person is signed in with INSIDE your app, which free access matches on; null = the enroll email, left out = the stored one stays. It is a SYNC, not a decision: send it on every call and it keeps itself current. The same address (or the enroll email again) does nothing; with free access off it is recorded for later; free access that already reached them stays with them and only the address is updated (it follows the person, so a user who changed their email in your app keeps it, and nobody is told); free access still waiting looks again with the new address, quietly. It never takes free access away, never takes the row off the automatic setting, and replaces an address the owner typed in the dashboard. Giving free access to a DIFFERENT person stays deliberate: the dashboard switch, or app_email on POST …/affiliates/free-access, which MOVES it. Must look like an email (400 otherwise); trimmed and lowercased. `free_access` (false | null | { duration: 1w | 1m | 3m | 1y | forever, product_id?: string | null, entitlement_id?: string | null }) is this person’s free access WHEN THE CALL MAKES THEM AN AFFILIATE (new, or a rejoin after leaving): left out or null = the app’s automatic setting (free_access_auto), as with every other way in; false = none; an object = that length, with product_id as the plan on App Store, Google Play, Adapty and Stripe apps (null = full access) or entitlement_id as the access level on RevenueCat apps, as the owner’s own choice for this person (the automatic setting does not move it: turning it off or changing its length leaves it alone). Ignored for someone already an affiliate (later changes: POST …/affiliates/free-access); never for your own link, a banned person, or someone who already has free access. A bad value is 400 VALIDATION_ERROR naming the field (e.g. "free_access.duration must be one of 1w, 1m, 3m, 1y, forever"). Free access is given just after the answer (the call never waits on RevenueCat), so read it from free_access on a later GET; a RevenueCat outage leaves it waiting and the 10-minute job finishes it. Typical use: { email, app_email } every time the user opens your affiliate screen, plus free_access only if your app has its own rules (forever for VIPs, false for staff). MCP: enroll_affiliate. {appId} = app UUID or app slug. Requires a read_write key. - `GET /api/v1/businesses/{slug}/apps/{appId}/affiliates?email=…` One affiliate by ?email= or ?ref_code=: id, user_id (the affiliate’s account id, also on every list row: what Live Chat’s picked_user_ids takes), links (short, qr, username, direct, coupon), lifetime stats (clicks, conversions, renewals, revenue, commission), payout buckets (pending/payable/paid/refunded cents), and the payout readiness object ({ identity_verified, payouts_enabled }) for gating Verify / Cash out buttons (also on every list row). For web_traffic the buckets are per-click (paid = approved clicks × CPC, payable = unpaid qualified clicks × CPC; pending/refunded always 0) and a click_payout object adds the CPC + approved/payable click counts. links.qr is a ready-made image of links.short - a plain public image URL (https://affiliateo.com/qr/{short_code}.svg, or .png where a raster is needed, since email clients strip inline SVG) that needs no key, no session and no SDK, so it drops straight into an , an email, a PDF or a print sheet. It is cacheable forever and CORS-open, so you can also fetch it into a blob to offer a Download button (a cross-origin is ignored by browsers and navigates instead). Optional ?dark=&light= hex params and ?size= for the raster; the pair has to stay dark-on-light with real contrast or it is a 400, because a low-contrast or inverted code does not scan. It encodes the SHORT link (never the readable /r/{app}/{username} form, which stops resolving after a rename - and print cannot be recalled) tagged ?s=qr, so scans separate from link taps automatically. Add &include=breakdown for click sources + countries + clicks_by_source (last 90 days). Two different questions with similar names: `sources` is which SITE referred the click (a poster scan has no referrer and shows as direct), `clicks_by_source` is which of the affiliate’s own channels it was - qr, email, bio, print, social - from the ?s= label on the link. Only TAGGED clicks appear there; the rest are absent rather than bucketed under an invented key, so total minus the sum is honestly "not measured", or &from=YYYY-MM-DD&to=YYYY-MM-DD for windowed click counts. Without email/ref_code: lists the app’s affiliates, cursor-paginated (?limit=, ?starting_after={id}, has_more in the response; &include=payouts for per-row buckets). RECURRING: a `recurring` object carries what referrals pay every MONTH - mrr_cents (commission, not the customers’ subscription value), arr_cents, subscribers, trialing (in a free trial right now - outside subscribers and outside mrr_cents, and it FALLS when a trial ends either way), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL, never 0, until five people have ever subscribed - render null as “not enough data”, because below five one leaver moves it 25 points. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR rather than a total. It is a RATE at today’s subscription set, so ?from=/?to= does not and cannot filter it: there is no “MRR for March”. Single reads always include it; on lists &include=recurring adds it per row (one query for the whole roster, so the cost does not grow with page size). Every row carries personal_commission - the affiliate’s owner-negotiated deal ({ type, rate }) or null when they ride the program rates; deals apply to NEW customers only (already-referred customers keep their stamped rate). Every row also carries free_access: whether the owner gave this affiliate the paid app free ({ enabled, mode: revenuecat | app_check, pending, waiting: customer_not_found | ambiguous_email | null, entitlement_id, product_id, until, app_email, granted_at, expires_at }), null on apps with no way to give it; change it with POST …/affiliates/free-access. - `GET /api/v1/businesses/{slug}/apps/{appId}/affiliates/conversions` Conversion history, cursor-paginated (?limit=, ?starting_after={id}): date, type (subscription, one_time, renewal, trial, converted, refund, chargeback, restore), gross amount, commission, paid/unpaid status, and the earning affiliate’s ref_code per row. A sale a dispute holds reads status disputed (its unpaid commission waits for the bank; one already paid stays paid), a refund of part of a sale carries partial: true, a restore row gives back what an undone refund or chargeback took, and the correction a full refund writes beside itself when the sale had a restore carries correction: true (none of the sale’s money, only commission: sum it like any row, never list it as a refund of its own). ?email= or ?ref_code= scopes to one affiliate; without either it’s the app-wide feed (owner links + organic sales excluded). ?from=&to= (YYYY-MM-DD) narrows either mode to a date window, and ?type= to one or more conversion types, comma-separated (?type=refund,chargeback for reversals only; ?type=subscription,one_time for first sales). Both filter in the query, upstream of the cursor, so a filtered feed pages through matching rows only. That is why a Type filter belongs here and not in your own code: filtering the page you already hold cannot find a refund sitting 300 rows down. Unknown type values are a 400, never a silently empty page. The seventh, converted, is a FILTER rather than a stored type: a trial that turns into a paying customer writes a second row for the first real payment, typed subscription or renewal and otherwise identical to a customer who never trialled. That row carries trial_conversion_id pointing back at its trial, and type=converted selects exactly those. conversion_type on the wire never says converted, deliberately - changing it would reclassify rows for every integration already branching on subscription. Read trial_conversion_id to tell them apart. The storefront rail has no trials, so converted there matches nothing. Refunds/chargebacks are separate negative rows. No customer PII. - `POST /api/v1/businesses/{slug}/apps/{appId}/affiliates/verification-link` Mint a short-lived hosted link that gets an affiliate PAID-READY (the "Verify" button): { email, return_url, name?, username?, lang? } → { url, expires_in, verified }. (`username` behaves exactly as on the enroll endpoint - best-effort opening handle for an account this call creates, never a failure, never a rename.) The affiliate opens url on our domain, first confirms a 6-digit code we email them (proves the link is used by the inbox owner, not the minter; /me self-minted links skip the code), then creates their Stripe payout account and passes identity verification (only whichever step they still need: already-done steps are skipped, already-ready affiliates bounce straight back, and the link can only fill in what Stripe still asks for, never read or rewrite existing details), then is redirected to return_url (an https page, or a mobile deep link like myapp://verified) with ?affiliateo_status=complete appended, ?affiliateo_status=pending when a step can only finish on the Affiliateo dashboard, or ?affiliateo_status=expired when the link had already expired (mint a fresh one and retry). Sensitive data (SSN, ID photos, selfie) is collected ONLY on our domain and goes straight to Stripe/AWS, never through your servers, and we store only pass/fail. Same enrollment gates as the affiliates endpoint (banned → ACCOUNT_INELIGIBLE / BANNED_FROM_BUSINESS). Pair with the affiliate.verified webhook or the verified field on the affiliate endpoints. v1 is individuals only (companies onboard in the dashboard). Requires a read_write key. - `POST /api/v1/businesses/{slug}/apps/{appId}/affiliates/withdrawal-link` Mint a short-lived hosted "cash out" link for an EXISTING affiliate of this app: { email, return_url, lang? } → { url, expires_in }. The affiliate opens url on our domain, first confirms a 6-digit code we email them (proves the inbox owner is using it, not the minter; an active Affiliateo login as that same affiliate skips the code; accounts with 2FA enabled must sign in instead of using a code, so the emailed code alone never moves their money), then adds/picks a bank and withdraws their own wallet balance ($20 minimum; standard payout, or instant within minutes when the account is eligible) to it, then is redirected to return_url with ?affiliateo_status=complete (=pending if they left without withdrawing, =expired if the link had already expired: mint a fresh one and retry). The cashable amount is the affiliate’s account-wide withdrawable wallet balance (one wallet per account), not any single app’s payable; the link shows THIS app’s pending/payable/paid as context only. Never creates or enrolls anyone (the email must already be an affiliate here, else NOT_FOUND), and the affiliate must be paid-ready (identity verified) first. Requires a read_write key. - `POST /api/v1/businesses/{slug}/apps/{appId}/affiliates/free-access` Give an EXISTING affiliate of this app free access to your paid app for a length, or take it back. A CLOSER who is not an affiliate of the app (someone who closed a sale in its Live Chat) is found by email too and gets the same switch; they have no ref_code. Most apps never need this: the enroll call (POST …/affiliates) does it with app_email on every call and free_access when your app has its own rules; use this to change one affiliate later or to give it to a different person: { email | ref_code, enabled?, duration? (1w | 1m | 3m | 1y | forever) | until? (a future date, null = no end), product_id?, entitlement_id?, app_email? } → { enabled, pending?, waiting? }. It ends by itself after the length: the switch turns off, nothing renews and nobody is charged; forever lasts until they leave or are banned. Switching on with no length is forever: switching off clears the stored end, and an end recorded on its own that has passed by the switch-on is a 400 "The end date has passed. Pick a length.". Two modes, read from free_access.mode on any affiliate payload. RevenueCat apps (revenuecat): a promotional entitlement in YOUR OWN RevenueCat project (entitlement_id picks it on apps with more than one), found with RevenueCat’s customer search on $email, so your app must send the email to RevenueCat at sign-in (iOS Purchases.shared.attribution.setEmail, Android Purchases.sharedInstance.setEmail, React Native, Flutter and Cordova Purchases.setEmail, Capacitor Purchases.setEmail({ email })) and needs no other code. Apps selling through the App Store, Google Play, Adapty or Stripe without RevenueCat (app_check): Apple and Google cannot give anyone a subscription, so your app calls the SDK’s identify(userId, { email }) at sign-in (only a SHA-256 of the email is sent, as email_sha256) and freeAccess() (POST /api/v1/mobile/free-access) after sign-in and on every launch, unlocking next to its own purchase check while it answers active and locking again when it does not; product_id names the plan it unlocks (null = full access). free_access is null on apps with neither. email/ref_code identifies WHO; app_email (older name revenuecat_email, still accepted) is a different thing and the one people get wrong: it says WHICH of your app’s users receives it, i.e. the address that person uses INSIDE your app, which is frequently not the address they signed up to Affiliateo with. Matching is BY EMAIL ONLY and never by who referred whom - the people attributed to an affiliate are the customers they REFERRED, so treating one of those as the affiliate would comp a stranger. Guests (no sign-in) cannot be matched; an Apple Hide My Email user is matched once app_email is their relay address (iOS Settings > Apple Account > Sign in with Apple). When nobody carries the address yet the call still succeeds with pending: true, waiting: customer_not_found - the switch is on and it lands by itself: on the app check their sign-in binds it, and a job looks again every 10 minutes in the first hour, hourly in the first day, daily in the first month and weekly after, on both modes. waiting: ambiguous_email (both modes) means two accounts in your app use that email and neither is picked: send an app_email only they use, or remove the extra account. Treat pending as "waiting", not as failure. Sending app_email, entitlement_id, product_id or a length ALONE (no enabled) just records them; changing the address while it is live MOVES it (on RevenueCat a new entitlement or end does too: the old grant is revoked first), unlike app_email on the enroll call, which only keeps the address current. A refusal to switch on is HTTP 400 { enabled: false, reason }: not_revenuecat (no way to give free access on this app: no RevenueCat and no live store, Adapty or Stripe connection), not_connected, needs_reconnect, no_entitlement, rc_error. Other refusals are the VALIDATION_ERROR envelope: your own tracking link, a non-active affiliate, an app that is ending, an end that has passed, a bad field. enabled: false always works, even on a paused, wound-down or disconnected app. The app setting free_access_auto (PATCH …/apps/{appId}) gives the same to every affiliate who joins; a row it gave follows that setting until you change it here (the switch, the length, the plan or the entitlement; a new app_email alone keeps it on the setting), and from then on it is yours and the setting leaves it alone. OWNER ONLY - unlike the /ads endpoints a team member’s key cannot reach this, because it spends the owner’s own revenue. 20 calls a minute. MCP: set_affiliate_free_access. Read the current state from free_access on any affiliate payload (enabled, mode, pending, waiting, entitlement_id, product_id, until, app_email, granted_at, expires_at). Requires a read_write key. - `PATCH /api/v1/businesses/{slug}/apps/{appId}/affiliates/{affiliateId}` One app affiliate’s PERSONAL commission: { commission_rate, commission_type? }; null puts them back on the program rates. percent is 1 to 90 (70 when the app sells only through a store), flat $0.01 to $50 a sale; changing the type needs the rate beside it. Affiliate apps only. New customers only: everyone already referred keeps the rate their sale was made at. The affiliate is notified. {affiliateId} is the id the affiliate payloads carry. Requires a read_write key. - `GET /api/v1/businesses/{slug}/payouts` The dashboard’s Pay tab, READ ONLY: every affiliate of the business’s affiliate apps, the most owed first, with app, ref_code, the personal deal and the app default, and the money in cents: pending (maturing), payable (exactly what a pay run would send), paid, refunded, on_hold (a dispute holds it). A synthetic Affiliateo row (is_platform, id affiliateo_platform) comes first with the platform fees owed on mobile sales, and business_wallet_balance is the owner’s wallet. Closers are listed too (people paid a closer commission for closing a sale in Live Chat), one row per app with is_closer: true, id closer:{appId}:{userId}, and closer_fee_payable_cents, the Affiliateo fee their payout sends with it. A closer row’s status says whether they may have free access like an affiliate (active while they are on the team or an active affiliate of the app and banned nowhere, inactive otherwise); it never holds back what they are owed. ?from=&to= (YYYY-MM-DD, together) add windowed_clicks and windowed_activity per row (closers included); the money stays lifetime. Pay with POST …/payouts below. Owner key. - `POST /api/v1/businesses/{slug}/payouts` Pay app affiliates and closers, as the Pay tab does: { affiliate_ids } (ids from the GET; affiliateo_platform for the platform fees, closer:{appId}:{userId} for a closer) or { all: true } (every row with something payable, closers included). The owner’s wallet pays each exactly their payable amount and each is told; a wallet without enough is 400. Answers paid_count, total_paid_cents, results (one per row, success or the reason; a paid closer’s carries fee_cents, the fee that went with it; every run also collects Affiliateo’s fee on the closers it does not pay, a closer below zero included, as a result with amount_cents 0 and fee_cents, the closer’s commission waiting for them), and stopped_early with remaining when the run ran out of time: run it again, nobody is paid twice. NEEDS A KEY WITH ITS PAYOUTS SWITCH ON; the whole run, closers’ fees included, counts against its daily limit, and past it nobody is paid (403 PAYOUT_LIMIT_EXCEEDED). - `POST /api/v1/businesses/{slug}/apps/{appId}/click-payouts` Pay a web traffic app’s affiliates for their qualified clicks from the app’s budget, as the dashboard’s Pay does: { affiliate_ids } (the app’s affiliate ids; GET …/apps/{appId}/affiliates shows each one’s click_payout.payable_clicks) or { all: true } (every affiliate not banned). Each is paid pending clicks times the price per click, the platform fee comes from the same budget, and an affiliate the budget cannot reach is a failed row rather than the end of the run. Answers paid_count, total_paid_cents, total_fee_cents, total_from_budget_cents, results, remaining_budget_cents, and stopped_early with remaining when the run ran out of time (run it again). Needs the OWNER’s key, or a manager’s own key (whose own clicks are left for the owner), with its Payouts switch on: the whole run, payout plus fee, counts against the daily limit, and past it nobody is paid (403 PAYOUT_LIMIT_EXCEEDED). Affiliate apps pay per sale through POST …/payouts. - `POST /api/v1/businesses/{slug}/apps/{appId}/affiliates/embed-session` Mint a session for EMBEDDED ELEMENTS - drop-in UI that mounts inside your own page, so the affiliate never leaves it. THREE COMPONENTS, for the three screens you cannot build yourself: withdraw, payouts and identity - the ones that collect bank details, expose the account-wide wallet, or run ID capture. EVERYTHING ELSE IS THIS API, not an element: build the referral link, stats, MRR/churn, per-product rates, sales list and this app’s pending/payable/paid yourself from GET /affiliates?email= + GET /apps/{appId} + GET /affiliates/conversions, so those screens are yours to design and can be cached to paint on open. A session carries ONLY the components you name, so asking for one is normal and correct - e.g. your own links + balance screens from GET /affiliates?email=, plus components: ["withdraw"] and nothing else. The QR needs no building at all: links.qr on that same response is a public image URL, so a covers it on any platform. The sales list: GET /affiliates/conversions is cursor-paginated (?limit=, ?starting_after=) and filterable by date (?from=&to=) and by type (?type=refund,chargeback), so the same screen can carry a Type filter that searches their whole history rather than the rows already on screen. Copy, and where to get it: this API returns DATA, never UI text (lang is a mint parameter for elements only; no read endpoint takes it or returns a label), so an API-built screen needs its own words but NOT its own translations. The exact strings we use for these same screens are published at https://affiliateo.com/locales/{lang}.json in all 16 languages: lift embed.appEarnings.* for the buckets and their hint line, embed.activity.* for row types and empty states, embed.filter.preset.* for the date chips, embed.link.format* for the picker. Copy the values into your own catalogue at build time rather than fetching live, since those files are a runtime asset and not a versioned API. Keep the money words verbatim even if you reword the rest: Pending is earned but not yet released, Payable is released and ready to pay out, and Paid means already in their Affiliateo balance and not yet in their bank, so "Paid out" is the wording to avoid. Product NAMES are never translated on either path (they are whatever you typed), and the tab bar is yours: no endpoint describes navigation. The ONE figure you cannot build yourself is the affiliate’s wallet total (it spans every program they are in, so no owner-side endpoint returns it); it exists only inside the gated withdraw/payouts components and on their own /me/wallet with their own key: { email, components, allowed_origins, appearance?, lang? } → { client_secret, expires_in, components, requires_step_up, element_urls, allowed_origins, ignored_appearance_keys? }. Call from your BACKEND (the afk_ key must never ship in an app binary), hand client_secret to the frontend, and our JS SDK mounts each component as an iframe on your own page; or drop an element_urls entry straight into an