Case Study: Google Ads for Psychologists with Offline Conversion Tracking and Natural-Language Campaign Management

How we tracked the Google click all the way to a paying patient, reached an average patient LTV of BRL 720 and BRL 30k in annual revenue, and why we are integrating the Google Ads API to manage campaigns in natural language.

Maurício Leite
Escrito porMaurício Leite
7 min de leitura
20 de novembro de 2026
Google Ads API case study for psychologist campaigns: BRL 720 average patient LTV and BRL 30k annual revenue tracked

Client: Bruna Caleffi, clinical psychologist (CRP 11/17420), psibrunacaleffi.com
Campaign management & tracking: Maurício Leite
Stack: Google Ads, Google Tag Manager (web + server-side), Stape.io, n8n, Google Sheets
Compliance: LGPD (Brazil’s data protection law). No patient personal or health data is sent to Google.


1. Who we are

I’m Maurício Leite, a paid media manager in Brazil. I run Google Ads lead-generation campaigns for mental health professionals (psychologists and clinics), and the service covers:

  • Planning and managing Google Ads search campaigns;
  • Server-side tracking (GTM web + GTM server + Stape.io);
  • Importing offline conversions (leads who actually became patients) back into Google Ads;
  • Recurring performance reports for each client.

All client accounts are managed from a single Google Ads Manager (MCC) account. The Google Ads API integration described in this article is an internal tool. Only I use it, to operate the accounts of my own clients linked to that MCC. It is not sold or made available to third parties.


2. The case: patient acquisition for psychologist Bruna Caleffi

For a psychologist, the conversion that matters does not happen on the website. The lead clicks the ad, opens WhatsApp, talks, books a session and only then becomes a patient. If the campaign optimizes for “clicked the WhatsApp button”, the bidding algorithm learns to bring people who click, not people who start therapy.

The problem

Google Ads only saw the WhatsApp button click. There was no way to know which keywords, ads or time slots were bringing real patients and which were bringing only curious visitors.

The solution: tracking the click all the way to the paying patient

We built a flow that stores Google’s click identifier and sends it back to Google Ads once the lead becomes a patient:

Step 01 Click

Ad click

The visitor lands on the site with gclid, wbraid or gbraid in the URL. GTM Web captures the identifiers.

Step 02 Server

Server-side forwarding

The event goes server to server, so ad blockers and cookie restrictions on the browser drop far less data.

Core n8n

Conversion log

An n8n workflow stores GCLID, WBRAID, GBRAID, the conversion timestamp and the conversion name.

Step 04 Import

Offline conversion

When the lead becomes a patient, the conversion and its value are imported back into Google Ads.

This is the production n8n workflow that receives the event from GTM Server, normalizes the fields, timestamps the conversion and writes it to the conversion sheet:

n8n workflow for psychologist Bruna Caleffi: webhook receives the GCLID from GTM Server, formats date and time, and appends the conversion to Google Sheets

  • Why server-side: ad blockers, cookie restrictions and iOS cut part of the data when everything depends on the browser. With GTM Server hosted on Stape, the click ID leaves from the server and reaches n8n with much less loss.
  • Why WBRAID and GBRAID: on clicks from iOS devices, Google does not always send a GCLID. Storing all three identifiers keeps those conversions from being lost.

What the data showed

Once offline conversions were imported, Google Ads started receiving the real value of each patient:

MetricResult
Average patient LTVBRL 720
Annual revenue attributed to the campaignBRL 30,000

With this data, the conversation with the client changes. It stops being “how many clicks did we get” and becomes “how much revenue did the campaign bring”. The bidding algorithm also starts optimizing for real patients instead of button clicks.


3. The bottleneck: the Google Ads interface can’t keep up with the operation

The tracking works. The bottleneck now is the time spent inside the Google Ads interface. Every account needs, every week:

  • Search term review and negative keywords;
  • Budget and bid adjustments based on patient volume;
  • A check that offline conversions were imported correctly;
  • A performance report for the client.

Multiplied across several psychologists, that adds up to hours of repetitive clicking in the interface. With AI, it makes little sense to keep doing by hand what can be asked in one sentence.


4. How we will use the Google Ads API

The goal is to operate the accounts in natural language. I write the request, an AI assistant translates it into Google Ads API calls, and no change is applied without my explicit approval.

4.1. Campaign reporting (read)

“Show me Bruna’s cost per patient for the last 30 days, by keyword.”

  • API resources: GoogleAdsService.SearchStream / Search with GAQL queries on campaign, ad_group, keyword_view and search_term_view, with metrics such as cost_micros, clicks, conversions and conversions_value.
  • Result: a report ready in seconds instead of exporting CSVs and building spreadsheets. The same data feeds the monthly report sent to the client.

4.2. Offline conversion upload (write)

Today, conversions go through a spreadsheet. With the API, the n8n workflow will send each conversion directly to Google Ads as soon as the lead is marked as a patient.

  • API resources: ConversionUploadService.UploadClickConversions with gclid, wbraid or gbraid, conversion_action, conversion_date_time and conversion_value.
  • Data sent: only the click identifier, date and time, conversion action and value. No personal or clinical patient data (name, phone, email, diagnosis) is ever sent to Google.

4.3. Natural-language campaign management (write, with approval)

“Add ‘free’ and ‘public health’ as negative keywords in all of Bruna’s campaigns."
"Increase the daily budget of the online therapy campaign by 20%."
"Pause ads with CTR below 2% in the last 14 days.”

  • API resources: CampaignService, CampaignBudgetService, AdGroupService, AdGroupAdService, AdGroupCriterionService and CampaignCriterionService.
  • Safety rule: the AI drafts the change and shows a summary of what will be modified. The write call is only sent after I approve it.

5. Interface mockups

The tool is in development. These mockups show how it will be used day to day.

Screen 1 Read

Report request

You: Bruna's report, last 30 days, by campaign

Account: Bruna Caleffi · Oct 21 – Nov 19

Campaign · Cost · Leads · Patients · Value
Online Therapy · — · — · — · —
Anxiety · — · — · — · —

Screen 2 Write

Change with approval

You: Add "free" and "public health" as negatives in Bruna's campaigns

+ [free] → Online Therapy
+ [free] → Anxiety
+ [public health] → Online Therapy
+ [public health] → Anxiety

Screen 3 Monitor

Offline conversions, last 24h

14:02 · gclid …a91f · Patient · Sent
10:47 · wbraid …c3e · Patient · Sent
09:15 · gclid …77b0 · Patient · Error: click older than 90 days


6. Privacy and ethics

Working with psychology requires extra care:

  • No health data sent to Google: the flow only sends click identifiers, timestamp, conversion name and value. Nothing about the patient or the treatment.
  • No patient lists: we do not use Customer Match or remarketing built from patient data, in line with Google’s policies for healthcare ads.
  • LGPD: data stays in a controlled environment, and API access is restricted to my Manager account.
  • Professional ethics: ads follow the Brazilian Federal Council of Psychology (CFP) code of ethics, with no promises of results and no sensationalism.

7. Summary

  1. We track the Google click (GCLID, WBRAID, GBRAID) through server-side GTM on Stape into n8n.
  2. We send each new patient back to Google Ads as an offline conversion.
  3. This showed an average patient LTV of BRL 720 and BRL 30,000 per year in revenue attributed to psychologist Bruna Caleffi’s campaign.
  4. The next step is the Google Ads API: reports in seconds, conversions sent straight from n8n and campaign management in natural language, always with human approval before any change.

Questions about this tool or about Google Ads for health professionals? Contact me at suporte@mauricioleite.com.br or book a call.


Campaign management and tracking by Maurício Leite
Paid media, server-side tracking and AI automation.

GOOGLE • FONTE PREFERIDA

Veja meus artigos primeiro no Google

Gostou do conteúdo? Adicione mauricioleite.com.br como fonte preferida e receba mais dos meus artigos nos resultados de busca.

Add to Preferred SourcesGrátis • 1 clique • aparece nos resultados
118
Compartilhar:
Artigo AnteriorPróximo Artigo

0Comentários

Comunidade ML

Carregando…

Ao comentar, você concorda com os Termos de Uso e a Política de Privacidade. Spam, ofensas e propaganda fora do assunto são removidos.

Nenhum comentário ainda. Deixe sua pergunta ou opinião acima!
Continue Lendo

Artigos Relacionados

Automação no WhatsApp para receber Pix com agentes de IA e APIs bancárias
17 de out. de 2026
Automações & IA

Como Fazer Automação no WhatsApp para Receber Pix com Agentes de IA?

Aprenda o passo a passo para estruturar uma automação segura no WhatsApp com agentes de IA para receber Pix. Descubra por que chaves estáticas (CNPJ) falham e como utilizar Pix dinâmico com identificação única para conciliação automática.

Maurício Leite
Como Fazer Vídeo de Motion com IA - Capa em colagem editorial por Maurício Leite
26 de out. de 2026
Vídeos com IA

Como Fazer Vídeo de Motion com IA

Como eu montei um segundo cérebro para vídeo com o Claude Code, o Mem0 e o Neo4j, catalogando 131 referências de motion sem deixar nenhum vídeo pesado no computador.

Maurício Leite