Guides
Environment
The host, the sandbox app, the seed data (Business Manager, accounts, Pages and users), the formats of ids, money and dates, and the clock.
Host and app
| Item | Value |
|---|---|
| Host | https://meta-ads.mimicr.dev (Graph and login dialog, by path) |
| Versions | v24.0 to v27.0 (see Versions) |
| App | 15-digit app id and 32-character hex app secret, specific to the sandbox |
| Credentials | GET https://api.mimicr.dev/v1/meta-ads or the console, Accounts and access tab |
There is one Meta Ads sandbox per organization. The app belongs to it alone: it doesn't reuse the WhatsApp sandbox's app, even when the two are linked. PUT /v1/meta-ads/app changes the redirect URIs and the name, and generates a new app secret (rotate_secret).
If your application already talks to Meta, point both base URLs at Mimicr. In PopGás, for example, it's just environment:
META_ADS_GRAPH_BASE_URL=https://meta-ads.mimicr.dev META_ADS_DIALOG_BASE_URL=https://meta-ads.mimicr.dev META_ADS_APP_ID=<app_id> META_ADS_APP_SECRET=<app_secret>
Seed data
On activation (and on every POST /v1/meta-ads/reset) the sandbox gets:
| Object | What it is |
|---|---|
| Business Manager | "BM {organization}", verified |
| Account A | {organização} (principal): owned, account_status 1 (ACTIVE), with a payment method |
| Account B | {organização} (desativada): owned, account_status 2 (DISABLED), disable_reason 1 |
| Account C | Cliente de {organização}: client account (client_ad_accounts), status 1 |
| Page 1 | "{organization}": gets the linked WhatsApp number |
| Page 2 | "{organization} Ofertas": no WhatsApp |
| Users | Ana (admin), Bruno (no_accounts) and Carla (no_business, sees only account A) |
All three accounts use BRL and timezone 25 (America/Sao_Paulo). There are no datasets (pixels) or forms; you create them through the API. Reset deletes campaigns, stats, leads, tokens and webhook subscriptions, and keeps the app, the settings and the WhatsApp link.
Ids
| Object | Format |
|---|---|
| Ad account | id: "act_100539998049706", account_id: "100539998049706" |
| Campaign, ad set, ad, creative | 18 digits starting with 1202, for example 120200539998049712 |
| Business, Page, user, pixel, video, form, lead, report | 15 digits |
ctwa_clid | Af + about 120 base64url characters |
fbclid | IwAR + 60 base64url characters |
Every id comes as a string in the JSON. Treat them as strings: some don't fit in a floating-point number.
Money
- Budgets,
bid_amount,spend_cap,amount_spentandbalanceare integers in the currency's minor unit (cents in BRL). You writedaily_budget=2000and read back"daily_budget":"2000", as a string. - In Insights,
spend,cpc,cpmandaction_valuesare decimal strings in reais, without trailing zeros:"spend":"13.11".
Dates
- Object date fields come in ISO 8601 in the account's timezone, with an offset without a colon:
"2026-11-05T14:25:17-0300". - On write,
start_timeandend_timeaccept ISO 8601 (with or without a colon),YYYY-MM-DD HH:MM:SS-07:00and UNIX seconds. - Lead
created_timecomes in UTC (+0000). - Insights
date_startanddate_stopareYYYY-MM-DDin the account's timezone.
Sandbox clock
All Meta Ads time comes from the sandbox clock, which you can move forward: POST /v1/meta-ads/clock/advance or npx mimicr clock meta-ads +2h. Advancing the clock finishes reviews, generates delivery hours, completes videos and asynchronous reports, expires tokens (60 days) and reports (30 days), runs webhook retries, moves the Conversions API's 7-day window, resets rate limit windows and crosses the v24.0 expiry. Reset returns the clock to real time.
The WhatsApp sandbox has its own clock. In a click-to-WhatsApp, the click carries the Meta Ads time and the message carries the WhatsApp time.
Pagination
Lists use cursors: {"data":[…],"paging":{"cursors":{"before":"…","after":"…"},"next":"…"}}. The default limit is 25. next is an absolute URL that repeats every request parameter, including access_token, and isn't present on the last page. Follow next until it disappears.