# Export Segments (GAM Audiences) via Batch Upload

## Overview

In this destination, DinMo creates an audience in GAM and populates it with user IDs via server-side Batch Uploads.

To set this up, you will need to complete the following steps:

1. **Obtain the prerequisites from your Google account manager**, as outlined in this [Google documentation](https://support.google.com/admanager/answer/4349785?hl=en):
   * Retrieve your GAM Network Code.
   * Obtain access to a Google Cloud Storage (GCS) bucket associated with your GAM account.
   * Create a Google Group with permission to view and upload files to the GCS bucket above, and add the user who will configure the GCS destination in DinMo to that group.
2. **Create a GCS destination**, linked to the bucket provided by your Google account manager.
3. **Create a Google Ad Manager destination** of type “Export Segments via Batch Upload” and select the GCS destination created in the previous step.
4. **Create a DinMo user segment** representing the audience you want to export.
5. **Activate the segment** using the Google Ad Manager destination created to start the synchronization.

Each time the activation runs:

* DinMo will look up or create a “Publisher Managed” audience in GAM (Inventory > Audiences).
* DinMo will populate this audience with the identifiers defined when the destination was created and keep it continuously up to date.

## Destination setup

{% hint style="info" %}
Learn how to create such a destination in our [step-by-step tutorial](/guides/get-started-with-dinmo/initial-configuration-of-dinmo/create-a-destination.md)
{% endhint %}

To start exporting segments, you must first create a Google Ad Manager destination using the corresponding service (“Export Segments (GAM Audiences) via Batch Upload”).

You will need to select an existing Google Cloud Storage (GCS) destination in DinMo that is linked to your dedicated GAM bucket. Please ensure this GCS destination is configured before setting up your Google Ad Manager destination.

## Activation configuration

{% hint style="info" %}
Learn how to activate a segment in our step-by-step tutorial
{% endhint %}

Once the destination and your DinMo segment are set up, you can create an activation to start sending data to Google Ad Manager.

## Activation core parameters

`Audience Name` and `Audience Description` define how the audience’s name and description will appear in the Inventory > Audiences section of Google Ad Manager. Fields mapping During activation, specify which ID(s) to send to Google Ad Manager and which corresponding DinMo ID(s) to use (PPID, GAID, IDFA, etc.).

## Fields mapping

During activation, specify which ID(s) to send to Google Ad Manager and which corresponding DinMo ID(s) to use (PPID, GAID, IDFA, etc.).

## Scheduling

Specify the frequency of audience updates in GCS. With each scheduled update:

* New profiles entering the DinMo segment are added to the GCS export files, with a list\_id corresponding to the audience in GAM.
* Profiles leaving the DinMo segment are flagged in the GCS export files for the corresponding list\_id, with a dedicated column set to 1.
* These updates ensure your audience data remains up to date, enabling accurate targeting and personalization.


---

# Agent Instructions: 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:

```
GET https://docs.dinmo.io/integrations/destination-platforms/google-ad-manager/export-segments-via-batch-upload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
