# Connect your GAM account

To enable Nexx360 bids to compete in your Google Ad Manager (GAM) unified auction, you need to grant Nexx360 access to create line items in your GAM account.

## Overview

Nexx360 will create line items in your GAM account for each SSP. These line items target the bid targeting keys set by `n360ortb.setDisplayBids()` and render the winning creative.

## Step 1: Enable API Access

In your GAM account:

1. Go to **Admin** > **Global settings** > **Network settings**
2. Enable **API access** if not already enabled
3. Add a service account user with the following details:

| Field | Value                                             |
| ----- | ------------------------------------------------- |
| Email | `gamlineitemtool@nexx360.iam.gserviceaccount.com` |
| Role  | Administrator                                     |

![GAM API Access Configuration](/files/-MYnoSl5Cjle574TGrlY)

{% hint style="info" %}
Administrator access is required for Nexx360 to create and manage line items, orders, and creatives in your account.
{% endhint %}

## Step 2: Provide Your Network Details

Send the following information to <tech@nexx360.io>:

* **Network Name**: Your GAM network name
* **Network ID**: Your GAM network ID (numeric)

You can find this information at the top of your GAM menu or in **Admin** > **Global settings** > **Network settings**.

![GAM Network ID](/files/-MYnpc4Hed7_JlfYrZlQ)

## Step 3: Line Item Generation

Once Nexx360 receives your network details and confirms API access:

1. Line items will be automatically generated in your GAM account
2. An order named **"Nexx360 - Direct Integration"** will be created
3. Each configured SSP will have corresponding line items

The line items are pre-configured with:

* Price priority targeting using price buckets
* Key-value targeting for n360ortb targeting keys
* Creative templates for ad rendering

See [Line Item Setup](/integration-methods/direct-integration-n360ortb/gam-integration/line-item-setup.md) for full details on the order structure, price granularity, and line item configuration.

## Verification

After setup is complete, verify the integration:

1. Log into your GAM account
2. Go to **Delivery** > **Orders**
3. Look for the order named **"Nexx360 - Direct Integration"**
4. Verify line items exist for your configured SSPs

{% hint style="warning" %}
If you have multiple GAM accounts (networks), you must repeat this process for each network where you want to use n360ortb.
{% endhint %}

## Troubleshooting

### Line items not appearing

* Confirm API access is enabled
* Verify the service account email is correct
* Ensure the service account has Administrator role
* Contact <tech@nexx360.io> if issues persist

### API access errors

If you see API access errors:

1. Re-check that API access is enabled in Network settings
2. Remove and re-add the service account user
3. Wait a few minutes for changes to propagate

## Next Steps

* [Line Item Setup](/integration-methods/direct-integration-n360ortb/gam-integration/line-item-setup.md) - Order structure, price granularity, and targeting
* [GAM Creative Setup](/integration-methods/direct-integration-n360ortb/gam-integration/gam-creative-setup.md) - Configure the creative template
* [GAM Integration Example](/integration-methods/direct-integration-n360ortb/gam-integration.md) - Complete integration code


---

# 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.nexx360.io/integration-methods/direct-integration-n360ortb/gam-integration/connect-your-gam-account.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.
