---
title: Google Ad Manager (GAM)
slug: google-ad-manager-gam
icon: 🎟️
docTags: 
createdAt: 2025-07-25T19:48:23.267Z
---

:::hint{type="info"}
**Who is this for:** Partners who use Google Ad Manager and want to serve MomentScience offers through their existing ad infrastructure.

**Outcome:** Create a MomentScience creative in GAM, configure size and targeting options, and verify that personalized offers display correctly on the website.
:::

# Overview

Google Ad Manager (GAM) provides a flexible way to integrate MomentScience into your website. This guide shows you how to create and implement a MomentScience creative in Google Ad Manager to display personalized offers on your website.

## What you'll learn

- How to create a MomentScience creative in Google Ad Manager
- How to configure size and placement options
- How to pass payload data for enhanced targeting
- How to test and verify your implementation

## Prerequisites

Before starting this integration, you need:

- Your MomentScience JS SDK snippet (found in the dashboard under Integration)
- Access to your Google Ad Manager account with creative creation permissions
- Knowledge of where you want to display MomentScience units on your website

# Integration Steps

## Step 1: Create a new creative in Google Ad Manager

1. Log in to your [Google Ad Manager account](https://admanager.google.com/)
2. Navigate to **Delivery** > **Creatives**
3. Under Display Creatives, click **New Creative**
4. Select your advertiser from the dropdown menu
5. Choose **Third party** as the creative type

## Step 2: Configure the creative settings

1. Enter a descriptive name for your creative
   - Example: `MomentScience - Banner - 1x1 - Homepage`
2. Set the **Target ad unit size** to **1x1**
   - This size provides universal compatibility across placements
3. Select **Standard** for the **Code type**
4. Paste your MomentScience JS SDK snippet in the code field
5. Uncheck serving into a SafeFrame
6. Click **Save** to create your creative

For additional details on setting up third-party creatives in Google Ad Manager, refer to the [official Google Ad Manager support documentation](https://support.google.com/admanager/answer/1746123?hl=en).

## Step 3: Test your implementation

1. Use Google Ad Manager's **Preview** tool to test your creative
2. Navigate to the page where the creative should display
3. Verify that MomentScience content appears correctly
4. Check the MomentScience dashboard to confirm impressions are being recorded

# Advanced: Passing payload data

Enhance targeting by passing user data to MomentScience through the payload object. There are two methods to pass payload data when using Google Ad Manager:

## Method 1: Set payload values before loading MomentScience

Add this code to your page before the GAM ad tag loads:

```javascript
// Set a single payload value
window.AdpxUser = Object.assign(window.AdpxUser || {}, { 
  "email": "customer@example.com" 
});

// Or set multiple values at once
window.AdpxUser = Object.assign(window.AdpxUser || {}, {
  "email": "customer@example.com",
  "firstname": "John",
  "lastname": "Doe",
  "amount": "99.95",
  "currency": "USD"
});
```

## Method 2: Set payload values after MomentScience loads

1. Modify your creative code in GAM to prevent auto-loading by setting `autoLoad: false`
2. Add this code to your page where you want to set the payload and display the content:

```javascript
// Set payload values
window.AdpxUser = {
  "email": "customer@example.com",
  "firstname": "John",
  "lastname": "Doe"
};

// Refresh the MomentScience unit to display with new payload
window.Adpx.refresh();
```

:::hint{type="warning"}
When you set a payload attribute, it overwrites any existing value for that attribute. For example, if `customAttribute` is set to `'someValue'` and later set to `'newValue'`, the final value will be `'newValue'`.
:::

# Verification and troubleshooting

## Verify your integration

1. Check the MomentScience dashboard [Payload Explorer](https://app.momentscience.com/account/tools/payload-explorer) to confirm data is being received
2. Verify impressions in your MomentScience reporting dashboard
3. Test the integration across multiple browsers to ensure compatibility

## Common issues and solutions

| **Issue**                         | **Possible cause**                           | **Solution**                                                          |
| --------------------------------- | -------------------------------------------- | --------------------------------------------------------------------- |
| Creative not displaying           | Ad blocker interference                      | Test in an incognito window or with ad blockers disabled              |
| Creative not displaying           | SafeFrame setting incorrect on Creative Type | Ensure that SafeFrame is unchecked for creative                       |
| No MomentScience content          | SDK ID is incorrect                          | Verify your SDK ID in the dashboard and update your creative          |
| Missing payload data              | Payload object not defined correctly         | Check that `window.AdpxUser` is properly defined before the SDK loads |
| Content appears in wrong location | Ad unit placement issue                      | Review your GAM placement settings and website implementation         |
| Multiple units loading            | Duplicate creatives or line items            | Check for multiple instances of the MomentScience SDK on the page     |

***

For assistance with your Google Ad Manager integration, Feel free to contact us at [help@momentscience.com.](mailto\:support@momentscience.com)
