> For the complete documentation index, see [llms.txt](https://docs.patagon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patagon.ai/en/marketing-and-attribution/google-campaigns/landing-to-whatsapp.md).

# How to create landing → WhatsApp campaigns with Google Ads

A landing → WhatsApp campaign sends Google traffic to your landing page, where visitors click a WhatsApp button and start a conversation with your agent. This is the **only Google path Patagon AI can attribute**: the landing page runs the Patagon AI script, which captures the `gclid` and your UTMs.

It works with **any Google campaign type** — Search, Performance Max, or Demand Gen. The setup that matters for Patagon AI is the same regardless: the ad's **final URL is your landing page**, and tracking is configured so the source data reaches it.

## Prerequisites

* A landing page **on your own domain** with the Patagon AI tracking script installed and a WhatsApp button that uses your Patagon AI tracking link — see [How to capture attribution data](/en/marketing-and-attribution/capturing-attribution-data.md).
* Auto-tagging enabled and a UTM final URL suffix configured — see [How to set up Google Ads attribution (UTMs)](/en/marketing-and-attribution/google-campaigns/google-utm-tracking.md).

## Steps

1. **Create your campaign** in Google Ads with whatever type fits your goal (Search, Performance Max, or Demand Gen).
2. **Set the final URL to your landing page** — the page with the WhatsApp button and the Patagon AI script. This is what lets Patagon AI capture the source of every conversation.
3. **Set up tracking** so Patagon AI can attribute the leads: enable auto-tagging (captures the `gclid`) and add your UTM final URL suffix. Both are covered in [How to set up Google Ads attribution (UTMs)](/en/marketing-and-attribution/google-campaigns/google-utm-tracking.md).
4. **Set up a conversion and optimize for it.** Since Patagon AI can't send conversions to Google yet, define a conversion on the **WhatsApp button click** on your landing page and set the campaign to optimize for that — i.e. optimize for *conversations initiated*.
5. **Publish** the campaign.

{% hint style="info" %}
Optimizing for qualified leads (sending Patagon AI's qualified-lead conversions back to Google) will be possible once Google offline conversions ship. Until then, optimizing for conversations initiated is the right goal.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.patagon.ai/en/marketing-and-attribution/google-campaigns/landing-to-whatsapp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
