Google Analytics: Run Conversions Report
ga4_run_conversions_reportRun a Google Analytics conversions report on one GA4 property of the user's connected Google Analytics login: ad clicks, ad cost, conversions, revenue and return on ad spend by channel, source/medium, campaign, country, device or platform, under a chosen attribution model (DATA_DRIVEN or LAST_CLICK) and for chosen conversion actions or all of them. Use this instead of ga4_run_report when the question is about conversions, ROAS, ad cost or attribution; it accepts only the dimensions and metrics the conversions surface defines. Same paging as ga4_run_report. Read-only; uses the Data API alpha surface.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"property_id": "<property_id>",
"date_ranges": "<date_ranges>",
"metrics": "<metrics>",
"conversion_spec": "<conversion_spec>"
},
"name": "ga4_run_conversions_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Rows per call, 1-1000 (default 100). The reply's rowCount is the full count; pass offset to page. | |
| offset | No | Row to start at, counting from 0; for paging. | |
| metrics | Yes | Only these metrics are allowed in a conversions report: advertiserAdClicks, advertiserAdCost, advertiserAdCostPerAllConversionsByConversionDate, advertiserAdCostPerAllConversionsByInteractionDate, advertiserAdCostPerClick, advertiserAdImpressions, allConversionsByConversionDate, allConversionsByInteractionDate, returnOnAdSpendByConversionDate, returnOnAdSpendByInteractionDate, totalRevenueByConversionDate, totalRevenueByInteractionDate. | |
| order_bys | No | Row ordering, each an OrderBy on a dimension or a metric that is in the request. Examples: {"dimension":{"dimensionName":"eventName","orderType":"ALPHANUMERIC"},"desc":false}; {"dimension":{"dimensionName":"campaignName","orderType":"CASE_INSENSITIVE_ALPHANUMERIC"},"desc":true}; {"dimension":{"dimensionName":"audienceId","orderType":"NUMERIC"}}; {"metric":{"metricName":"eventCount"},"desc":true}. Several may be combined, dimension and metric orderings mixed. | |
| dimensions | No | Only these dimensions are allowed in a conversions report: campaignName, continent, country, defaultChannelGroup, deviceCategory, medium, platform, primaryChannelGroup, source, sourceMedium, sourcePlatform, subcontinent. | |
| date_ranges | Yes | Date ranges to report on, each {startDate, endDate, name?}. Dates are YYYY-MM-DD or relative: today, yesterday, NdaysAgo. Examples: a single month [{"startDate":"2025-01-01","endDate":"2025-01-31","name":"Jan2025"}]; the previous 30 days [{"startDate":"30daysAgo","endDate":"yesterday"}]; two ranges to compare [{"startDate":"2025-01-01","endDate":"2025-01-31"},{"startDate":"2025-02-01","endDate":"2025-02-28"}]. | |
| property_id | Yes | The GA4 property: its number (123456789) or properties/123456789. Must be one of the properties ga4_get_account_summaries lists for the connected login. | |
| currency_code | No | ISO 4217 code (USD, EUR, JPY) for currency metrics. Omitted = the property's own. | |
| metric_filter | No | A FilterExpression over metrics only (use dimension_filter for dimensions). Examples: {"filter":{"fieldName":"eventCount","numericFilter":{"operation":"GREATER_THAN","value":{"int64Value":"10"}}}}; between {"filter":{"fieldName":"purchaseRevenue","betweenFilter":{"fromValue":{"doubleValue":10},"toValue":{"doubleValue":25}}}}; empty {"filter":{"fieldName":"purchaseRevenue","emptyFilter":{}}}; NOT, AND and OR as for dimension_filter. Operations: EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL. Note: dimensionFilter and metricFilter are applied independently, so a condition like (eventName = page_view AND eventCount > 100) OR (eventName = join_group AND eventCount < 50) cannot be expressed in one request — either run one report filtered on the dimensions and apply the metric conditions to the rows yourself, or run one report per combination. | |
| conversion_spec | Yes | Which conversions and attribution model to report: {"conversionActions": ["conversionActions/12345"], "attributionModel": "DATA_DRIVEN"}. An empty conversionActions list means every conversion event; attributionModel is DATA_DRIVEN or LAST_CLICK. | |
| dimension_filter | No | A FilterExpression over dimensions only (use metric_filter for metrics). The fieldName must be one of the report's dimensions or a valid dimension. Examples: begins-with {"filter":{"fieldName":"eventName","stringFilter":{"matchType":"BEGINS_WITH","value":"add"}}}; exact {"filter":{"fieldName":"sessionSourceMedium","stringFilter":{"matchType":"EXACT","value":"google / cpc"}}}; one of {"filter":{"fieldName":"eventName","inListFilter":{"values":["first_visit","purchase"],"caseSensitive":true}}}; empty {"filter":{"fieldName":"source","emptyFilter":{}}}; NOT {"notExpression":{…}}; AND/OR {"andGroup":{"expressions":[…]}} or {"orGroup":{"expressions":[…]}}. Match types: EXACT, BEGINS_WITH, ENDS_WITH, CONTAINS, FULL_REGEXP, PARTIAL_REGEXP. Note: dimensionFilter and metricFilter are applied independently, so a condition like (eventName = page_view AND eventCount > 100) OR (eventName = join_group AND eventCount < 50) cannot be expressed in one request — either run one report filtered on the dimensions and apply the metric conditions to the rows yourself, or run one report per combination. | |
| return_property_quota | No | True to include the property's remaining Data API quota in the reply. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One object per row: each dimension and metric by its API name, values as Google returns them (strings). dateRange is added when several ranges were asked for. | |
| metadata | No | Google's ResponseMetaData (currencyCode, timeZone, data-loss and sampling flags), or null. | |
| property | Yes | The property read, as properties/<id>. | |
| rowCount | Yes | Rows the report has in total, before limit and offset. | |
| returnedRows | Yes | Rows in `rows`. | |
| metricHeaders | Yes | Metric API names and types. | |
| propertyQuota | No | Remaining quota when return_property_quota was true, else null. | |
| dimensionHeaders | Yes | Dimension API names, in row order. |