# First Party Display and Video 360 (Actions) Destination

## Destination Info

* Accepts [Track](/docs/segment/connections/spec/track) calls.
* Refer to it as **First Party Dv360** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)
* This destination is **Beta.**
* This destination is **only** compatible with [Twilio Engage.](/docs/segment/engage/)

Google's [Display & Video (DV360)](https://marketingplatform.google.com/about/display-video-360/) is an end-to-end campaign management tool that enables enterprise customers to plan, measure, and run display and video advertisements. Segment's integration with DV360 enables Segment customers to sync audiences created in Engage with DV360 for centralized audience management and improved retargeting.

This destination is different from the existing DV360 Actions as it allows you to upload [contact info](https://developers.google.com/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#contactinfo) and the [mobile device ID](https://developers.google.com/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#mobiledeviceidlist).

This destination can only be used with Engage.

## Setup

Configuring this integration requires action by both you in your Segment workspace, and Google in your Google Marketing Platform account. As a result, the time required to finish configuration and setup can vary.

### Enable the destination

To enable the First Party DV 360 destionation:

1. Navigate to **Engage > Engage Settings > Destinations > Add Destination** in your Segment workspace.
2. Search for *First Party DV360* and click **Add destination**.
3. Navigate to **Connections > Destinations** and search for the **First Party DV 360** destination you created.
4. Select the **Mappings** tab and click **+ New Mapping**.
5. Select the action you'd like to use. You can choose from:

   | Option                                                | Details                                                                 |
   | ----------------------------------------------------- | ----------------------------------------------------------------------- |
   | Edit Customer Match Members - Contact Info List       | Add or update customer match members in Contact Info List Audience.     |
   | Edit Customer Match Members - Mobile Device Id List   | Add or update customer match members in Mobile Device Id List Audience. |
   | Remove Customer Match Members - Contact Info List     | Remove customer match members from the Contact Info List Audience.      |
   | Remove Customer Match Members - Mobile Device Id List | Remove customer match members from the Mobile Device Id List Audience.  |

   * Select either **Customer Info List** or **Mobile Device Id List** depending on what audience type you use.
   * Select **Edit Customer Match Members** to add or update users to an audience.
   * Select **Remove Customer Match Members** to remove users from an audience.
   * If you want to create actions for both Customer Info List and Mobile Device Id List, you can create all 4 mappings.
6. Switch the toggle to enable the destination.

### Create an audience

To create an audience in your destination:

1. Navigate to **Engage > Audiences** and click **+New audience**.
2. Fill out the audience seetings.
   * If you want to use Mobile Device ID Lists, ensure to fill out your app ID.
   * Make sure you enabled track calls.
3. Click **Save**.
4. You should see an audience populate in your DV360 account. If you don't immediately see this, it can take up to a couple of hours for your audience to populate.
5. Switch the toggle to **Connect to destination**.
6. Navigate to **Connections > Destinations** and select the First Party DV360 destination.
7. Select the **Mappings** tab.
8. Click **+ New Mapping** and select **Remove from Audience**.
9. Click **Save**.
10. Enable the mapping.

## Consent mode

[Consent mode](https://support.google.com/analytics/answer/9976101?hl=en) is a feature provided by Google in the context of its products, particularly the Gtag library and Google Analytics. As of March 6, 2024, Google announced that consent mode must function for European Economic Area (EEA) users, otherwise data from EEA users won't process.

Consent mode in the Gtag library and Google Analytics is designed to help website owners comply with privacy regulations, such as the General Data Protection Regulation (GDPR) in the European Union. It allows website owners to adjust how these tools use and collect data based on user consent.

With consent mode, you can configure your website to dynamically adjust the tracking behavior of the Gtag library and Google Analytics based on the user's consent status. If a user provides consent to data processing, both the Gtag library and Google Analytics can collect and use that data for analysis. If a user doesn't provide consent, both tools limit data collection to essential functions, helping businesses respect user privacy preferences.

Segment automatically sends consent as `TRUE` for this destination. Segment uses the [bulk-uploader workflow](https://developers.google.com/authorized-buyers/rtb/bulk-uploader#workflow) which requires consented data. Ensure all audiences and journeys are connected to consented audiences.

## Available Actions

Build your own Mappings. Combine supported [triggers](/docs/segment/connections/destinations/actions/#components-of-a-destination-action) with the following First Party Dv360-supported actions:

> \[!NOTE]
>
> Individual destination instances have support a maximum of 50 mappings.

* [Remove Customer Match Members - Mobile Device Id List](#remove-customer-match-members---mobile-device-id-list)
* [Edit Customer Match Members - Mobile Device Id List](#edit-customer-match-members---mobile-device-id-list)
* [Edit Customer Match Members - Contact Info List](#edit-customer-match-members---contact-info-list)
* [Remove Customer Match Members - Contact Info List](#remove-customer-match-members---contact-info-list)

### Remove Customer Match Members - Mobile Device Id List

Remove customer match members in Google Display & Video 360 Mobile Device Id List Audience.

Remove Customer Match Members - Mobile Device Id List is a **Cloud** action. The default Trigger is `event = "Audience Entered"`

| Field             | Description                                                                                                                        | Required | Type   |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| Mobile Device IDs | A list of mobile device IDs defining Customer Match audience members. The size of mobileDeviceIds mustn't be greater than 500,000. | Yes      | STRING |

### Edit Customer Match Members - Mobile Device Id List

Add or update customer match members in Google Display & Video 360 Mobile Device Id List Audience.

Edit Customer Match Members - Mobile Device Id List is a **Cloud** action. The default Trigger is `event = "Audience Entered"`

| Field             | Description                                                                                                                        | Required | Type   |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| Mobile Device IDs | A list of mobile device IDs defining Customer Match audience members. The size of mobileDeviceIds mustn't be greater than 500,000. | Yes      | STRING |

### Edit Customer Match Members - Contact Info List

Add or update customer match members in Google Display & Video 360 Contact Info List Audience.

Edit Customer Match Members - Contact Info List is a **Cloud** action. The default Trigger is `event = "Audience Entered"`

| Field         | Description                                                                                                                                   | Required | Type   |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| Emails        | A list of the user's emails. If not already hashed, the system will hash them before use. If not hashed, Segment will hash this value.        | No       | STRING |
| Phone Numbers | A list of the user's phone numbers. If not already hashed, the system will hash them before use. If not hashed, Segment will hash this value. | No       | STRING |
| ZIP Codes     | A list of the user's zip codes.                                                                                                               | No       | STRING |
| First Name    | The user's first name. If not already hashed, the system will hash it before use. If not hashed, Segment will hash this value.                | No       | STRING |
| Last Name     | The user's last name. If not already hashed, the system will hash it before use. If not hashed, Segment will hash this value.                 | No       | STRING |
| Country Code  | The country code of the user.                                                                                                                 | No       | STRING |

### Remove Customer Match Members - Contact Info List

Remove customer match members in Google Display & Video 360 Contact Info List Audience.

Remove Customer Match Members - Contact Info List is a **Cloud** action. The default Trigger is `event = "Audience Exited"`

| Field         | Description                                                                                                                                   | Required | Type   |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------ |
| Emails        | A list of the user's emails. If not already hashed, the system will hash them before use. If not hashed, Segment will hash this value.        | No       | STRING |
| Phone Numbers | A list of the user's phone numbers. If not already hashed, the system will hash them before use. If not hashed, Segment will hash this value. | No       | STRING |
| ZIP Codes     | A list of the user's zip codes.                                                                                                               | No       | STRING |
| First Name    | The user's first name. If not already hashed, the system will hash it before use. If not hashed, Segment will hash this value.                | No       | STRING |
| Last Name     | The user's last name. If not already hashed, the system will hash it before use. If not hashed, Segment will hash this value.                 | No       | STRING |
| Country Code  | The country code of the user.                                                                                                                 | No       | STRING |

## Data requirements

Based on Google's documentation, make sure you send the correct required identifiers:

* [Contact info list requirements](https://developers.google.com/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#contactinfo)
  * For example, you must send first name, last name, ZIP code, and country code all together and not just one. Make sure all phone numbers are in [E.164 format](https://en.wikipedia.org/wiki/E.164).
* [Mobile ID Requirements](https://developers.google.com/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#mobiledeviceidlist)

## FAQs

#### When will my data appear in DV360?

When you complete the connection between Segment and DV360, it can take from 24 to 48 hours for Google to create the user list. This must complete before Segment can begin to sync users into that list.

#### What is membershipDurationDays and its limit?

The duration in days that an entry remains in the audience after the qualifying event. The set value must be greater than 0 and less than or equal to 540.

## Engage

You can send computed traits and audiences generated using [Engage](/docs/segment/engage) to this destination as a **user property**. To learn more about Engage, schedule a [demo](https://segment.com/contact/demo).

For user-property destinations, an [identify](/docs/segment/connections/spec/identify/) call is sent to the destination for each user being added and removed. The property name is the snake\_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Engage sends an Identify call with the property `order_completed_last_30days: true`. When the user no longer satisfies this condition (for example, it's been more than 30 days since their last order), Engage sets that value to `false`.

When you first create an audience, Engage sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

> \[!NOTE]
>
> Real-time audience syncs to First Party Display and Video 360 (Actions)  may take six or more hours for the initial sync to complete. Upon completion, a sync frequency of two to three hours is expected.
