Guides
Testing in the sandbox
Mimicr's triggers in names, texts, URLs and event_ids, the login personas, the homologation toggles and chaos.
Meta doesn't document test triggers for the Marketing API, only the test leads tool. The triggers below are Mimicr's: text you put in your objects to cause an outcome without calling the control API.
Triggers
| Where | Value | Effect |
|---|---|---|
Ad name or creative text (message, name, title, description) | [reprovar] | Review ends in DISAPPROVED, policy "Unacceptable Business Practices" |
| Same | [com-problemas] | Review ends in WITH_ISSUES |
| Same | [revisao-manual] | Stays in PENDING_REVIEW until ad.approve or ad.reject |
| Same | [falha-simulada] | POST adcreatives or POST ads answers 500, code 2, is_transient: true, and nothing is created |
| Ad set name | [sem-entrega] | The ad set is eligible but delivers nothing |
Creative picture or video file_url | contains nao-baixa | 100/3858258 (image) or 389 (video) |
Video file_url | contains video-erro | The video ends in error |
Video file_url | contains video-lento | Processing takes 90 s |
| Name of a new ad account | contains [limite-contas] | 3979 |
| Name of a new dataset | contains [limite-pixel] | 6200 |
event_id in the Conversions API | starts with rejeitar- | The event is rejected (100/2804050) |
event_id in the Conversions API | starts with nomatch- | The event is accepted and stays unmatched |
curl -s "https://meta-ads.mimicr.dev/v27.0/act_100539998049706/ads" \
-H 'Authorization: Bearer <token>' \
-F name='Botijão [reprovar]' -F adset_id=120200539998049713 \
-F creative='{"creative_id":"120200539998049717"}' -F status=PAUSEDTen sandbox minutes later (or npx mimicr clock meta-ads +10m), the ad is DISAPPROVED with ad_review_feedback.global.
Login personas
In the login dialog you choose who authorizes: admin (default), no_accounts, no_business, declines (unchecked permissions come back declined) and unavailable (the code exchange fails with a transient error). Details in Authentication.
Homologation toggles
Change them with PUT /v1/meta-ads/homolog or in the console.
| Toggle | Default | Effect |
|---|---|---|
autoReview | on | Review finishes on its own |
reviewDelayMinutes | 10 | Sandbox minutes between PENDING_REVIEW and the decision |
preapprove | off | New ads become PREAPPROVED and skip review |
strictRejected | off | status=ACTIVE on a disapproved ad without a new creative answers 2490427 |
autoDelivery | on | Generates hourly delivery for active ads |
deliveryRate | 1 | Multiplies hourly spend (0 to 5) |
cpmMultiplier | 1 | Multiplies the model's CPM |
insightsLagMinutes | 0 | Insights data delay (Meta updates every ~15 min) |
asyncReportSeconds | 8 | Duration of asynchronous reports |
autoLeads | off | Lead ad sets generate real leads with webhook (up to 20 per hour) |
autoCtwa | off | WhatsApp ad sets generate real messages in the linked WhatsApp |
onePixelPerAccount | on | A second dataset on the account answers 6200 |
maxAdAccounts | 5 | Accounts per Business Manager before 3979 |
requirePaymentMethod | off | Accounts without a payment method leave ads in PENDING_BILLING_INFO |
strictAccountCreation | off | Creating an account while an owned account is disabled answers 3980 |
objectEditInterval | off | One edit per object every 30 s (613/4841018) |
budgetChangeLimit | on | Four budget changes per hour per ad set (613/1487632) |
accessTier | development | Marketing API access tier: development or standard |
requireAppSecretProof | off | appsecret_proof required |
videoProcessingSeconds | 6 | Video processing duration |
leadgenNumericIds | off | leadgen webhook ids as numbers instead of strings |
strictVideo | off | A file_url that doesn't end in .mp4 or .mov answers 352 |
minDailyBudget | 100 / 250 / 500 / 4000 | Minimum daily budget in cents for impressions, clicks, conversations and low frequency |
curl --request PUT \
--url https://api.mimicr.dev/v1/meta-ads/homolog \
--header 'Authorization: Bearer mk_...' \
--header 'Content-Type: application/json' \
--data '{ "reviewDelayMinutes": 1, "objectEditInterval": true }'Chaos
Chaos injects latency and errors into one area at a time (api, oauth, insights, capi, webhook). In api, errors come as 500/503 with is_transient: true or 613, and "Operation failures" answers a random rate limit (613, 80004 or 17). In insights, synchronous calls give 100/1504018 and asynchronous reports end in Job Failed. In capi, the whole batch is rejected. In webhook, the first attempt fails or the notification arrives twice. The login dialog isn't affected by chaos. Fields and examples in Sandbox control.
The other side
For what has no trigger, use the actions: ad.approve, ad.reject, ad.flag_issue, account.billing_failure, token.expire, lead.submit, ad.click_to_whatsapp, insights.fail_next_report and the rest in Sandbox control.