Guides
Getting started

Introduction

Mimicr's Meta Ads simulator answers on the same paths as Facebook Login, the Marketing API, Insights, the Conversions API and lead ads, so you can integrate and test without a real ad account.

The Meta Ads simulator reproduces the integration core of a paid media platform on Meta: Facebook Login with the consent dialog, the Marketing API (/v24.0 to /v27.0), synchronous and asynchronous Insights, the Conversions API and lead ads (Lead Ads) with their webhook. Ad accounts, campaigns, ad sets, creatives and ads answer with the same paths, parameters, enums and Graph error envelope.

What sets it apart is click-to-WhatsApp: a simulated click on an ad becomes an inbound message, with referral, in Mimicr's WhatsApp simulator, and that message's ctwa_clid matches in the Conversions API. You test the whole cycle, from the ad to the sale.

Switching hosts

Meta uses two hosts. Mimicr answers for both on a single one, https://meta-ads.mimicr.dev, by path. Change the host and keep everything else.

MetaMimicr
https://www.facebook.com/v27.0/dialog/oauthhttps://meta-ads.mimicr.dev/v27.0/dialog/oauth
https://graph.facebook.com/v27.0/oauth/access_tokenhttps://meta-ads.mimicr.dev/v27.0/oauth/access_token
https://graph.facebook.com/v27.0/act_{id}/campaigns (and the rest of the Graph)https://meta-ads.mimicr.dev/v27.0/act_{id}/campaigns
https://graph.facebook.com/v27.0/{dataset_id}/eventshttps://meta-ads.mimicr.dev/v27.0/{dataset_id}/events

The app id and app secret are those of your Mimicr sandbox. The host is separate from whatsapp.mimicr.dev because both products use the same paths (/me, /oauth/access_token, /debug_token) with different meanings.

What the simulator covers

  • Facebook Login in the manual flow: hosted dialog (with scope or config_id), code exchange, long-lived token, app token, debug_token, /me/permissions and appsecret_proof.
  • Business Manager, ad accounts (owned and client) and Pages with Page access tokens.
  • Campaigns with OUTCOME_* objectives, ad sets with budget, schedule, optimization goal and audience, image and video creatives, videos by file_url and ads with review.
  • Insights by account, campaign, ad set and ad, with date ranges, increments, breakdowns, filtering and asynchronous reports, generated hour by hour from the budget.
  • Conversions API with validation, hashing, deduplication and click matching.
  • Lead forms, leads, test leads and the signed leadgen webhook.
  • Click-to-WhatsApp linked to a Mimicr WhatsApp sandbox.
  • Errors in the Graph envelope with is_transient, rate limits with Meta's headers and version expiry.

Outside the core: custom audiences, reach estimates, image library, previews, Batch API, chunked video upload and the remaining routes answer 501 with type: "MimicrNotSimulated".

What Mimicr adds

On Meta you only observe: the reviewer approves the ad, people click and fill in forms, billing fails. In Mimicr you control that other side: approve or reject ads, click a click-to-WhatsApp ad, send leads, fail an account's billing, expire tokens and versions, advance the clock and inject failures. You do this through the control API (https://api.mimicr.dev), the CLI (npx mimicr), the MCP server or the console.

Where Meta doesn't document a behavior, Mimicr makes its own decision and the guides flag it with "In Mimicr, ...". This is not a promise about Meta's production behavior.

Where to start