Guides
Reporting

Metrics and delivery

How Mimicr generates impressions, clicks and cost hour by hour within the budget, clicks with a gclid, and how to speed up delivery.

In Google, impressions and clicks come from real auctions. In Mimicr, delivery is generated deterministically from a sandbox seed, hour by hour, always capped by the budget. The same setup produces the same numbers, so you can test reports, budget limits and conversions. Everything on this page is a Mimicr rule.

When a campaign delivers

In each hour, an ad delivers if:

  • the campaign and the budget are active and the hour falls between the campaign's start and end;
  • the account is ENABLED, with billing in good standing, and the Google Ads API is enabled in the project;
  • the ad group is active and the ad is active and approved (Ads and review);
  • in a Search campaign, the ad group has at least one active positive keyword;
  • the hour falls within the ad schedule, if the campaign has one.

Performance Max does not deliver (NO_ASSET_GROUPS) until the campaign.force_eligible action. Display and Demand Gen do not deliver.

How much it delivers

  1. The day's target spend is between 55% and 100% of the daily budget, varying by campaign and by day.
  2. Spend is spread across the hours with more weight in the morning and early evening, like a real search curve.
  3. The CPC comes from the bidding strategy: manualCpc uses the ad group or keyword bid; smart bidding starts around R$ 1.20, capped by cpcBidCeilingMicros. The CPC is rounded to R$ 0.01.
  4. Clicks = hourly spend ÷ CPC; cost = clicks × CPC; impressions = clicks ÷ CTR, with CTR between 3% and 8%.
  5. When the day's spend reaches the target, delivery stops until the next day and the campaign becomes LIMITED (BUDGET_CONSTRAINED).

With the overdelivery toggle on, some days reach 2 times the budget, with the month capped at 30.4 times the daily budget, as in Google.

Past hours are stored and never recalculated: changing the budget or pausing only affects the following hours. The current hour is computed on read, proportional to the minutes elapsed.

Speed it up in tests

  • Advancing the clock generates the hours that went by: npx mimicr clock google-ads +1d.
  • traffic.deliver generates the next hours without moving the clock (hours, default 24, up to 744): npx mimicr action google-ads traffic.deliver campaign=54542599977 hours=48.
  • traffic.set_profile pins a campaign's CTR, CPC and the fraction of the budget spent: npx mimicr action google-ads traffic.set_profile campaign=54542599977 ctr=0.05 cpcMicros=1500000 budgetUsage=1.

Clicks with a gclid

bash
curl --request POST \
  --url https://api.mimicr.dev/v1/google-ads/actions/traffic.click \
  --header 'Authorization: Bearer mk_...' \
  --header 'Content-Type: application/json' \
  --data '{ "adGroupAd": "customers/2220330728/adGroupAds/54542599986~54542599990", "device": "MOBILE" }'
json
{
  "ok": true,
  "action": "traffic.click",
  "message": "Clique 54542600400 criado.",
  "data": {
    "id": "54542600400",
    "gclid": "Cj0KCQPJDPYiExQ7aiQacNH20C5wAAAAyy_giNau0skZNqxllO7u3J0j8S6VTvh42Fc27T5E2A3ufVxORnLNqA",
    "clickTime": "2026-11-06T01:29:37.000Z",
    "landingUrl": "https://revenda.example.com?gclid=Cj0KCQ…",
    "cpcMicros": "1240000",
    "campaign": "customers/2220330728/campaigns/54542599977",
    "adGroupAd": "customers/2220330728/adGroupAds/54542599986~54542599990"
  }
}

The click counts as 1 impression, 1 click and 1 CPC in its hour; the day's automatic delivery deducts that click to stay within the budget. at creates the click at a past instant, keyword picks the keyword and braid: true also generates gbraid and wbraid. Open https://google-ads.mimicr.dev/mimicr/click/{gclid} in the browser to land on the final URL with the gclid, like a real user (Open click).

The gclid is what you later send as a conversion.

Conversions in metrics

Accepted conversions go into metrics.conversions and conversions_value at the date and hour of the click, not of the upload, as in Google. Actions with primaryForGoal: false only count in all_conversions. ONE_PER_CLICK actions count once per click. Segment by segments.conversion_action to see them per action (without mixing in non-conversion metrics).

Read the metrics

text
SELECT campaign.id, segments.date, metrics.impressions, metrics.clicks, metrics.cost_micros, metrics.ctr, metrics.average_cpc, metrics.conversions
FROM campaign
WHERE segments.date DURING LAST_7_DAYS

cost_micros divided by 1,000,000 gives the amount in reais. See GAQL.