Link account
link_accountLink a connected account to a client that ALREADY exists — the step after connecting a platform when the client is set up but the new account is not placed yet (the refusal says 'not linked to any of your clients'). Use the IDs exactly as the list tools returned them. Each account is looked up by name and checked against the client's name: one that looks like a different business blocks the link until the person confirms it. Previews unless confirm is true. On a paid plan a client can hold up to 3 Analytics properties, 3 Google Ads accounts and 3 Meta ad accounts of the SAME business: one given while the client already has a different main one is added beside it (replace true swaps the main instead). The free plan holds one of each; there, a different account replaces the current one only with replace true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | The client's name as list_clients returns it | |
| confirm | No | Leave false to preview: nothing changes and the preview shows exactly what would happen. Set true only after the user has agreed to this exact change. | |
| replace | No | Only after the preview said the client already has a different account of that kind AND the person wants it swapped for this one. | |
| website | No | Set or change the client's website address, e.g. https://acmefence.com | |
| contact_name | No | Who at the client gets the weekly Autopilot report, e.g. "Dana Reyes" (the owner) | |
| crm_location | No | CRM location id | |
| meta_account | No | Meta ad account, act_… | |
| contact_email | No | That person's email address; the weekly report is sent there once the agency says send | |
| report_language | No | The language the client reads the weekly report in: en (default), es, pt, it, tr, id, fr or de. Blank or en = English. | |
| wordpress_site_id | No | WordPress site id from wp_list_sites | |
| analytics_property | No | GA4 property id, digits only | |
| google_ads_account | No | Google Ads customer id | |
| more_meta_accounts | No | Other Meta ad accounts (act_…) of the SAME business, added beside the client's main one; up to 3 in all, paid plans only | |
| search_console_site | No | Search Console site exactly as listed, e.g. sc-domain:example.com | |
| acknowledge_mismatch | No | Only after the preview flagged an account as looking like a different business AND the person has confirmed it does belong to this client. | |
| more_google_ads_accounts | No | Other Google Ads customer ids of the SAME business, added beside the client's main account; up to 3 in all, paid plans only | |
| business_profile_location | No | Business Profile location id | |
| more_analytics_properties | No | Other GA4 property ids of the SAME business, one per extra site (e.g. a second website), added beside the client's main property; up to 3 in all, paid plans only |