---
title: Quantcast Audiences Connector Setup Guide
description: This article describes how to set up the Quantcast Audiences connector.
url: https://docs.tealium.com/server-side-connectors/quantcast-audiences-connector/
---
## Batch limits

This connector uses batched requests to support high-volume data transfers to the vendor. Parallel processing may result in events reaching the vendor out of sequence. Add a sequence value to events if ordering is important. For more information, see [Batched actions](https://docs.tealium.com/batched-actions/). Requests are queued until one of the following thresholds is met or the profile is published:

* Max number of requests: 10000
* Max time since oldest request: 10 minutes
* Max size of requests: 2 MB

## Configure settings

Go to the Connector Marketplace and add a new connector. For general instructions on how to add a connector, see the [About Connectors](https://docs.tealium.com/about-connectors/) article.

After adding the connector, configure the following settings:

* **API Key**: (Required) API Key obtained from the Quantcast UI profile settings.
* **API Secret**: (Required) API Secret for the key.
* **Owner pCode**: (Required) The pCode for the owner of the segment. Begins with `p-`.

## Actions

| Action Name | AudienceStream | EventStream |
| --- | :---: | :---: |
| Add User to Segment | ✓ | ✓ |
| Remove User from Segment | ✓ | ✓ |

Enter a name for the action and select the action type.

The following section describes how to set up parameters and options for each action.

### Add User to Segment

#### User

At least one of the following parameters is required: **Partner User ID**, **Quantcast Cookie User ID**, or **Email Address** (hashed or plain text).

| Parameter | Description |
| --- | --- |
| Partner User ID | The ID you generate for a user. Use this value if Quantcast hosts the ID map.  |
| Quantcast Cookie User ID | The encrypted cookie ID generated by Quantcast for your user. |
| Email Address (already SHA256 hashed) | Provide an email address which has been already whitespace trimmed, lowercased and SHA256 hashed. |
| Email Address (apply SHA256 hash) | Provide a plain text email address and the connector whitespace trims, lowercases, and hashes this value using SHA256 hash. |


<blockquote>
Hashed email identifiers are supported only for Quantcast audiences in the United States. They are not supported for audiences outside the United States.
</blockquote>


#### Segment

Map single value attributes or array attributes of equal lengths.

| Parameter | Description |
| --- | --- |
| Segment Name | (Required) The name of the segment assigned to this user. Use any combination of letters, numbers, or special characters, with the exception of the pipe character (`|`). |
| Owner pCode |  The **pCode** of the owner of the segment. Begins with `p-`. Use this field if the owner of the segment is different from you. |

### Remove User from Segment

#### User

At least one of the following parameters is required: **Partner User ID**, **Quantcast Cookie User ID**, or **Email Address** (hashed or plain text).

| Parameter | Description|
| --- | --- |
| Partner User ID | The ID you generate for a user. Use this value if Quantcast hosts the ID map.  |
| Quantcast Cookie User ID | The encrypted cookie ID generated by Quantcast for your user. Use this value if you host the ID map. |
| Email Address (already SHA256 hashed) | Provide an email address which has been already whitespace trimmed, lowercased and SHA256 hashed. |
| Email Address (apply SHA256 hash) | Provide a plain text email address and the connector whitespace trims, lowercases, and hashes this value using SHA256 hash. |

#### Segment

Map single value attributes or array attributes of equal lengths.

| Parameter | Description |
| --- | --- |
| Segment ID | (Required) The ID of the segment to remove this user from. |
| Segment Name | (Required) The name of the segment assigned to this user. Use any combination of letters, numbers, or special characters, with the exception of the pipe character (`|`). |
| Owner pCode |  The **pCode** of the owner of the segment. Begins with `p-`. Use this field if the owner of the segment is different from you. |