# Google Ad Manager

## Description

This client-side connexion allows you to synchronize a targeting list with Google Ad Manager (GAM) and therefore run your media campaigns on this targeting list.

{% hint style="warning" %}
Please note that Google Ad Manager requires user consent for contextual targeting.
{% endhint %}

## Prerequesite

To synchronize your targeting lists with Google, you will need to : &#x20;

* Setup [Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started) on your website
* Have an active account on Google Ad Manager

## Setup

You'll need to follow the following steps:

* Configure your Ad Manager network (Admin > Global settings > General settings > Api access > Enabled)
* Add mediarithmics Contextual targeting service account user for API access (Admin > Global settings > Network settings > Add a service account user) and specify **KeyValue Management** role.

{% hint style="info" %}
Please reach out to your Account manager to get the Contextual targeting service account user.
{% endhint %}


---

# 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://developer.mediarithmics.io/advanced-usages/contextual-targeting/activation-setup/google-ad-manager.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.
