Set up conversion tracking
draft_conversion_tracking_setupSet up conversion tracking from GA4 into Google Ads in one approved plan, returning a PREVIEW of only the missing steps.
Use it when the user wants their conversions (sign-ups, purchases, leads) tracked and used for bidding, or after audit_ga4_property or check_key_event_imports found a gap. It reads both products and plans what is missing, in order: link the GA4 property to the Google Ads account, mark the events as GA4 key events, turn on auto-tagging, import the conversion actions Google Ads created for the key events (they start hidden and record nothing), make them primary, and use their goal for bidding. Steps already in place are listed under already_done. Google Ads creates the conversion action for a newly linked property or new key event by itself, not instantly: such events come back as "After this" warnings, and running the tool again later imports them. NO_CHANGE when everything is set up. The website must send the events; this tool cannot add tracking code (see generate_tracking_code). Nothing changes until confirm_and_apply applies it: the dry run validates the Google Ads steps with validate_only and re-reads the GA4 ones, and every step skips itself if already done, so confirming again after a failed step continues where it stopped.
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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "draft_conversion_tracking_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | GA4 event names to track as conversions, e.g. ["sign_up"], or objects {"event": "generate_lead", "counting_method": "ONCE_PER_SESSION"} (counting applies when the event is not a key event yet; default ONCE_PER_EVENT). Empty uses the property's key events that fired in the last 28 days. | |
| primary | No | True (default) makes the imports primary conversions that Smart Bidding optimizes toward; False imports them as secondary (reported only). | |
| customer_id | No | Google Ads customer ID, digits with or without dashes. Defaults to the configured ads.customer_id. | |
| property_id | No | GA4 property as "properties/123456789" or the bare numeric ID. If empty, uses the default from config. | |
| data_retention | No | Optional, e.g. 14: also lengthen GA4 event data retention (months). Only lengthens; empty leaves it. | |
| ads_personalization | No | Only for a new link. False (default) keeps personalized advertising off, so GA4 shares no audiences or remarketing data with Google Ads. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||