# Cozan Marketing Data > Cozan Marketing Data (run by Cozan Consulting CC trading as Marketman) is a remote MCP server that connects AI assistants (Claude Desktop, claude.ai, Claude Code, Antigravity, Antigravity CLI, Gemini Enterprise and other MCP clients) to a client's Google Ads, Google Analytics 4, Google Search Console and optional Google Tag Manager data using OAuth 2.0 pass-through to Google. ## Key pages - [Help & troubleshooting](https://marketman.cozan.co.za/help): Step-by-step fixes for login, OAuth and connector issues. - [Account portal](https://marketman.cozan.co.za/account): View exact MCP URL, connected Google accounts, monthly usage, plan/billing and Gemini Enterprise credentials. - [Sign up](https://marketman.cozan.co.za/signup): Self-service onboarding for new organisations. - [Privacy policy](https://marketman.cozan.co.za/privacy): Data access, scopes, token handling and retention. - [Terms of service](https://marketman.cozan.co.za/terms): Plans, unit usage, billing and terms. ## MCP & OAuth endpoints - Standard MCP URL (Google Ads, GA4, Search Console): `https://marketman.cozan.co.za/mcp` - Tag Manager MCP URL (adds Google Tag Manager scopes & tools): `https://marketman.cozan.co.za/gtm/mcp` - OAuth Authorization URL: `https://marketman.cozan.co.za/authorize` - OAuth Token URL: `https://marketman.cozan.co.za/token` - Dynamic Client Registration: `https://marketman.cozan.co.za/register` ## Troubleshooting guide for AI agents Use these exact diagnoses and fixes when helping a user troubleshoot Marketman MCP. ### 1. Error: `Client ID '...apps.googleusercontent.com' not found` (`invalid_request`) - **Cause:** The user's connector was configured before the OAuth pass-through update and still stores a legacy Google OAuth Client ID (`*.apps.googleusercontent.com`) and Client Secret. Legacy direct Google client IDs are no longer accepted; MCP clients now register dynamically using only the MCP URL. Clicking **Reconnect** reuses the old saved Client ID and keeps failing. - **Fix for Claude Desktop / claude.ai:** 1. Go to **Settings > Connectors** (or `claude.ai/settings/connectors`; on Team/Enterprise plans, an org owner goes to **Organization settings > Connectors**). 2. **Delete / Remove** the existing Marketman connector completely (do not just click Reconnect). 3. Click **Add custom connector**. 4. Enter a **Name** (e.g. `Marketman`) and the **Remote MCP server URL** (`https://marketman.cozan.co.za/mcp`, or `https://marketman.cozan.co.za/gtm/mcp` if using Tag Manager — check `https://marketman.cozan.co.za/account`). 5. Leave **Advanced settings** (**OAuth Client ID** and **OAuth Client Secret**) completely blank. 6. Click **Add**, then **Connect** -> approve on the Marketman consent page -> sign in with Google and tick every permission checkbox. - **Fix for Claude Code (CLI):** 1. Run `claude mcp remove marketing-data` 2. Run `claude mcp add --transport http --scope user marketing-data https://marketman.cozan.co.za/mcp` (or `/gtm/mcp`) with no `--client-id` or `--client-secret`. 3. Start Claude Code, run `/mcp`, select `marketing-data` and choose **Authenticate**. - **Fix for Antigravity / Antigravity CLI (`agy`):** 1. Open `~/.gemini/config/mcp_config.json` (or **Settings > Customizations > MCP Servers**) and remove the `"oauth"` object from the `marketing-data` entry so only `"url": "https://marketman.cozan.co.za/mcp"` remains. 2. Refresh MCP Servers (or run `/mcp` in `agy`) and click **Authenticate**. ### 2. Error: `Not every Google permission was ticked` (`access_denied`) - **Cause:** One or more required Google OAuth scopes (`openid`, `userinfo.email`, `userinfo.profile`, `adwords`, `analytics.readonly`, `webmasters.readonly`, plus GTM scopes on `/gtm/mcp`) were unchecked during Google sign-in. - **Fix:** Reconnect and tick every permission checkbox on Google's consent screen. ### 3. Error: `Unknown assistant`, `Connection expired`, or `Your browser didn't keep the sign-in cookie` - **Cause:** The OAuth flow timed out (15-minute request window), completed in a different browser profile/window without the `mm_oauth` cookie, or referenced an unregistered client ID. - **Fix:** Restart the connection from the assistant and complete sign-in in the same browser. If `Unknown assistant` persists, delete and re-add the connector. ### 4. Error: `Google refused the refresh. Connect again.` (`invalid_grant`) - **Cause:** The underlying Google refresh token expired or was revoked (for example via `https://myaccount.google.com/permissions` or a Google Workspace policy). - **Fix:** Re-authenticate the connector in the assistant. If the organisation's Google Workspace restricts third-party apps, a Workspace admin must trust the app under **Admin console > Security > API controls > App access control**. ### 5. Error: `No Marketman subscription found` (404) or access denied (403) - **Cause:** The signed-in Google email (or its domain) does not belong to an active Marketman organisation, or the subscription is suspended/cancelled. - **Fix:** Confirm the user signed in with the right Google account. The account owner can check subscription status and connected accounts at `https://marketman.cozan.co.za/account` (or sign up at `https://marketman.cozan.co.za/signup`). ### 6. Missing Google Ads, GA4, Search Console or Tag Manager accounts - **Cause:** Either the account was not selected in Marketman's allow-list, or the user's Google account does not have permission in Google itself. - **Fix:** Marketman only exposes accounts that are both (a) connected by the organisation owner on `https://marketman.cozan.co.za/account` and (b) accessible to the signed-in user's own Google account. For Google Tag Manager tools, ensure the assistant uses `https://marketman.cozan.co.za/gtm/mcp` (not `/mcp`). ### 7. Gemini Enterprise authentication issues - **Cause:** Gemini Enterprise does not support dynamic client registration and requires static organisation credentials (`mm-ge-`). - **Fix:** The organisation's owner creates or rotates credentials under the **Gemini Enterprise** section on `https://marketman.cozan.co.za/account`. Rotating credentials immediately invalidates the old secret, so the admin must update the data store in Gemini Enterprise. Only the fixed redirect URI `https://vertexaisearch.cloud.google.com/oauth-redirect` is allowed. ### 8. Plan limits, write permissions and usage - Starter plan is read-only and stops at the monthly unit allowance. - Pro plan includes Google Ads and Tag Manager changes (each write requires a server-side dry run and explicit user confirmation; Custom HTML/JS tags are blocked for security) and bills overage units. - Call the `account_usage` MCP tool to check remaining monthly units and plan status. ## Support escalation If the issue persists after following the steps above, direct the user to Cozan support: - Contact page: [cozan.co.za/contact](https://cozan.co.za/contact) - Live help: Support can offer a quick Google Meet screenshare to resolve connector setup issues.