Guides
Getting started

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

WhereValueEffect
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_urlcontains nao-baixa100/3858258 (image) or 389 (video)
Video file_urlcontains video-erroThe video ends in error
Video file_urlcontains video-lentoProcessing takes 90 s
Name of a new ad accountcontains [limite-contas]3979
Name of a new datasetcontains [limite-pixel]6200
event_id in the Conversions APIstarts with rejeitar-The event is rejected (100/2804050)
event_id in the Conversions APIstarts with nomatch-The event is accepted and stays unmatched
bash
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=PAUSED

Ten 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.

ToggleDefaultEffect
autoReviewonReview finishes on its own
reviewDelayMinutes10Sandbox minutes between PENDING_REVIEW and the decision
preapproveoffNew ads become PREAPPROVED and skip review
strictRejectedoffstatus=ACTIVE on a disapproved ad without a new creative answers 2490427
autoDeliveryonGenerates hourly delivery for active ads
deliveryRate1Multiplies hourly spend (0 to 5)
cpmMultiplier1Multiplies the model's CPM
insightsLagMinutes0Insights data delay (Meta updates every ~15 min)
asyncReportSeconds8Duration of asynchronous reports
autoLeadsoffLead ad sets generate real leads with webhook (up to 20 per hour)
autoCtwaoffWhatsApp ad sets generate real messages in the linked WhatsApp
onePixelPerAccountonA second dataset on the account answers 6200
maxAdAccounts5Accounts per Business Manager before 3979
requirePaymentMethodoffAccounts without a payment method leave ads in PENDING_BILLING_INFO
strictAccountCreationoffCreating an account while an owned account is disabled answers 3980
objectEditIntervaloffOne edit per object every 30 s (613/4841018)
budgetChangeLimitonFour budget changes per hour per ad set (613/1487632)
accessTierdevelopmentMarketing API access tier: development or standard
requireAppSecretProofoffappsecret_proof required
videoProcessingSeconds6Video processing duration
leadgenNumericIdsoffleadgen webhook ids as numbers instead of strings
strictVideooffA file_url that doesn't end in .mp4 or .mov answers 352
minDailyBudget100 / 250 / 500 / 4000Minimum daily budget in cents for impressions, clicks, conversations and low frequency
bash
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.