> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Set Up Google Ads Server-Side Conversions API in Upstack Data

> Connect Google Ads with OAuth and map your tracked events to conversion actions so Upstack forwards purchases server-side via the Google Ads Conversions API — independent of the browser pixel.

> [!TIP]
>
> **Quick Summary**
>
> 1. In Google Ads, accept the **customer data terms** and turn on **Enhanced conversions for leads**.
> 2. In Upstack, open the Google Ads destination and set **Tracking Method** to **Browser + Server** or **Server**.
> 3. Click **Connect Google Ads**, sign in with Google, and click **Continue**.
> 4. Choose your **Google Ads Account**.
> 5. Click **Create & link all**, check that every event is linked, and click **Save Changes** (or **Create Destination**).
> 6. In Google Ads, make **Purchase - Upstack (Server-side)** your only **Primary** purchase action.

## Before you start

* A Google user with **Admin** access to the Google Ads account. That user must have **direct** access to the advertising account: Upstack lists only active advertising accounts the user can open directly, not manager (MCC) accounts or test accounts.
* The **Google Ads Conversion ID** and **Google Ads Conversion Label** if you keep the browser tag on (Tracking Method **Browser + Server**). See [How to Configure Google Ads Destination in Upstack Data](https://docs.upstackdata.com/destinations/catalog/google-ads/how-to-configure-google-ads-destination-in-upstack-data.md). With **Server**, you don't need them.

## Set up server-side delivery

**1. Turn on enhanced conversions in Google Ads**

Do this first, before you connect Google Ads in Upstack.

1. In [Google Ads](https://ads.google.com), go to **Goals → Conversions → Settings**.
2. Open the **Enhanced conversions** section.
3. Accept the **customer data terms** if Google asks you to.
4. Turn on **Enhanced conversions for leads**.

Both settings apply even if you only send purchases, because Upstack sends hashed customer data with every server-side event.

> [!WARNING]
>
> If Google rejects the customer data because either setting is off, Upstack sends that destination's later conversions without customer data (click ID and IP address only), and drops events that have neither. It keeps doing so after you change the settings. Contact [support](https://docs.upstackdata.com/troubleshooting/support.md) to turn customer data back on.

**2. Open the Google Ads destination in Upstack**

In Upstack, click **Destinations** in the left sidebar ([app.upstackdata.com/destinations](https://app.upstackdata.com/destinations)).

* **New destination:** click **New Destination** in the top-right corner, then click the **Google Ads** card.
* **Existing destination:** click your Google Ads destination.

**3. Set the Tracking Method**

On the **Overview** tab, under **Tracking Method**, select **Browser + Server** (the default) or **Server**. The **Connect Google Ads** card appears below the destination fields.

* **Browser + Server** keeps the Google Ads tag on your store, so fill in **Google Ads Conversion ID** and **Google Ads Conversion Label**.
* **Server** sends events from Upstack's servers only. Both fields become optional.

  ![Google Ads destination in Upstack: Tracking Method set to Browser + Server, the Conversion ID and Label fields, and the Connect Google Ads card](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/google-ads/server-side/01-tracking-method-connect.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=227faef8773ef6939f9a7cba9debf417)

**4. Connect Google Ads**

Click **Connect Google Ads**. A Google window opens:

1. Choose the Google user from **Before you start**.
2. If Google asks you to confirm it's you, sign in with your password or passkey.
3. On **UpstackData wants access to your Google Account**, click **Continue**. If Google lists permissions with checkboxes, click **Select all** first.

   ![Google's "UpstackData wants access to your Google Account" screen with the Continue button](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/google-ads/server-side/02-google-consent.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=b40fcb7ece4fc1a5e9db9814edf18fec)

If you already connected Google Ads as a data source, Google shows **UpstackData already has some access** on this screen. Click **Continue** anyway.

The card changes to **Google Ads Server-Side Connected**, with the date you connected.

> [!WARNING]
>
> If you see *"Google did not return a refresh token. Make sure you grant offline access."*, click **Connect Google Ads** again and allow every permission Google asks for.

**5. Choose your Google Ads account**

Open **Google Ads Account** (**Select an account**) and choose the advertising account to send conversions to. Accounts are shown as **Name (ID)**.

![Google Ads Server-Side Connected card with the Disconnect button and the Google Ads Account picker](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/google-ads/server-side/03-connected-select-account.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=6a08f938228c5b84a2cc2256f23afa83)

Choosing a different account later clears your event mappings.

**6. Link your events to conversion actions**

**Event conversion mappings** lists six events, each marked **Not linked**: **Purchase**, **New Customer Purchase**, **Subscription Initial Purchase**, **Subscription Recurring Purchase**, **Add To Cart**, and **Initiate Checkout**.

1. Remove any event you don't want to send with its trash icon. **Purchase** is the event most stores bid on. Keep **New Customer Purchase** or **Subscription Initial Purchase** if a campaign will optimize toward new customers or first subscription orders.
2. To add another event, such as **RC Purchase**, click **Add mapping** and choose it in **Select or enter event name**.
3. Click **Create & link all (N)**. Upstack creates a conversion action in Google Ads for each unlinked event, named after the event, such as **Purchase - Upstack (Server-side)**, and links it.

   ![Event conversion mappings with the Create & link all (6) button and each event marked Not linked](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/google-ads/server-side/04-mappings-create-link-all.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=6f3d113cedcb087f185e0356a062677e)

To link one row yourself, click its pencil icon. Keep or change the **Conversion action name** and click **Create & link**, or click **Link an existing action instead**, choose an action in **Select an existing action**, and click **Link**.

> [!WARNING]
>
> Don't link the conversion action your browser tag reports to, such as **Purchase - UpstackData**. Each server-side event needs its own conversion action.

**7. Check every row, then save**

Each linked row shows the event, an arrow, and its conversion action, such as **Purchase → Purchase - Upstack (Server-side) (UPLOAD\_CLICKS)**. If a row still shows **Not linked**, click **Create & link all** again or link it with the pencil icon.

Then click **Create Destination** for a new destination, or **Save Changes** for an existing one. Only linked rows are saved and sent.

![Every event linked to its Upstack (Server-side) conversion action, with the Add mapping button](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/google-ads/server-side/05-mappings-linked.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=c7859a7fdc3608fcae9c8c96838373cd)

Reopen the destination after saving and check that every event still shows its conversion action.

## Choose your Primary purchase action

Google Ads bids toward **Primary** conversion actions. It counts the browser tag's action and the server-side actions separately and doesn't deduplicate between them, so keep exactly one purchase action **Primary**. Do this as soon as you save; there's no waiting period.

1. In Google Ads, go to **Goals → Summary** and refresh the page. The actions Upstack created are listed with the source **Website (Import from clicks)**.
2. In the **Purchase** list, click **Edit goals**, and expand **Conversion action optimisation**.
3. Set **Purchase - Upstack (Server-side)** to **Primary**.
4. Set every other purchase action, including **Purchase - UpstackData**, to **Secondary (observe only)**.
5. Click **Save**.

![Google Ads Edit settings for Purchases: Purchase - Upstack (Server-side) set to Primary and the other purchase actions set to Secondary (observe only)](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/google-ads/server-side/06-google-ads-primary-secondary.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=c6ea144f749393fc8042b2bfbdca9fbc)

Then open **Purchase - Upstack (Server-side)**. If its attribution model is **Last click**, change it to **Data-driven**.

Changing the account's Primary actions applies to every campaign that uses the account default. To optimize one campaign toward another event, such as **New Customer Purchase**, set that campaign's own conversion goal instead.

## Verify the setup

* On the **Destinations** page, the Google Ads destination shows **Healthy**.
* In Google Ads, **Goals → Conversions → Summary** lists the conversion actions you linked.
* Place a test order, then check that **Purchase - Upstack (Server-side)** records it. Google Ads can take a few hours to show a new conversion.

## What Upstack sends to Google Ads

With server-side delivery on, Upstack sends each linked event from its servers to Google Ads through Google's Data Manager API, to the conversion action you linked it to. This is separate from the Google Ads tag in the browser, which reports purchases to the conversion action set by the **Google Ads Conversion ID** and **Google Ads Conversion Label** fields.

Each server-side event includes whatever Upstack has for that visitor or order:

* the Google click ID (`gclid`, `gbraid`, or `wbraid`)
* SHA-256 hashed email addresses and phone numbers, plus hashed first and last name with the postal code and country
* the IP address and user agent
* the order ID, value, currency, and line items (product IDs follow the **Product ID Format** field)
* for new-customer and returning-customer purchase events, whether the customer is new or returning

Upstack skips an event that has no click ID, no customer data, and no IP address, because Google can't match it. If Google Ads doesn't accept the order's currency, Upstack sends the conversion without a value.

The conversion actions Upstack creates are import (click) conversions with a category that matches the event. They count one conversion per click, use a 30-day click-through window and data-driven attribution (last click when Google doesn't allow data-driven), and start as **Secondary**.

## Send custom events (optional)

After you save with server-side delivery on, the destination's **Event Mappings** tab appears. Add a custom event there and choose its **Conversion action**, or pick **+ Create new in Google Ads**. See [Destination event mappings](https://docs.upstackdata.com/guides/custom-events/destination-event-mappings.md).

## FAQ & Troubleshooting

> [accordion] No conversions are arriving
>
> Check that the events you want are linked (not **Not linked**) and that you saved. Check that the destination shows **Healthy**, and allow a few hours for Google Ads to report the conversion. Upstack skips events with no click ID, no customer data, and no IP address.

> [accordion] My Google Ads account isn't in the list
>
> The list shows only active advertising accounts that the connected Google user can open directly. Manager (MCC) accounts and test accounts aren't listed. Add the Google user to the advertising account itself, then reopen the destination.

> [accordion] The Google sign-in window doesn't finish
>
> Close any other Google sign-in windows, refresh the destination page, and click **Connect Google Ads** again.

> [accordion] I connected the wrong Google Ads account
>
> If the right account is in the **Google Ads Account** list, choose it, link your events again, and save. If it belongs to a different Google user, click **Disconnect**, save, set **Tracking Method** again, and connect with the right Google user.

> [accordion] Create & link all says a conversion action name already exists
>
> Google keeps the names of conversion actions reserved, including removed ones, so creating an action fails if one with that name exists or existed before. This also happens when a second store sends to the same Google Ads account. Click the row's pencil icon, change the **Conversion action name** (for example, add the store name), and click **Create & link**.

> [accordion] A mapping shows 'Removed in Google Ads'
>
> The linked conversion action is no longer enabled in Google Ads. Click the pencil icon, create or link a different action, then save.

> [accordion] How do I turn off server-side delivery?
>
> Click **Disconnect** on the **Google Ads Server-Side Connected** card, then click **Save Changes**. This turns server-side delivery off and clears the connection, the selected account, and your event mappings. The conversion actions stay in Google Ads.

## Related

> [card] [Set Up Google Ads](https://docs.upstackdata.com/destinations/catalog/google-ads/how-to-configure-google-ads-destination-in-upstack-data.md)
>
> Add the Google Ads destination and its Conversion ID and Conversion Label.

> [card] [Set Google Ads Primary Goal](https://docs.upstackdata.com/destinations/catalog/google-ads/how-to-enable-the-google-ads-upstack-purchase-goal-and-switch-to-primary-optimization-goal.md)
>
> Make one purchase conversion action Primary and set the others to Secondary.

> [card] [Destination event mappings](https://docs.upstackdata.com/guides/custom-events/destination-event-mappings.md)
>
> Send custom events to their own conversion actions.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.