Campaign conversions against Analytics
analyze_campaign_conversionsMaps Google Ads campaign clicks to GA4 conversions to reveal click-to-session ratios, compare reported conversions, and compute true cost-per-conversion.
Instructions
Campaign clicks → GA4 conversions mapping — the real cost-per-conversion.
Combines Google Ads campaign metrics with GA4 session/conversion data to reveal click-to-session ratios (GDPR indicator), compare Ads-reported vs GA4-reported conversions, and compute cost-per-GA4-conversion. Also returns non-paid channel conversion rates for comparison context. GA4 conversions are the property's key events (GA4 metric keyEvents).
Google Analytics Data API: https://developers.google.com/analytics/devguides/reporting/data/v1 and Google Ads API: https://developers.google.com/google-ads/api/docs/start
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | No | Google Ads customer ID, digits with or without dashes (e.g. "123-456-7890"). Defaults to the configured ads.customer_id. | |
| property_id | No | GA4 property as "properties/123456789" (see get_account_summaries). If empty, uses the default from config. | |
| campaign_name | No | Optional case-insensitive substring; only campaigns whose name contains it are included. Empty = all campaigns. | |
| date_range_end | No | End date as "YYYY-MM-DD" (inclusive). | |
| date_range_start | No | Start date as "YYYY-MM-DD". Both dates must be set to apply a range; if either is empty, the last 30 days are used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||