---
title: "PATCH /v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudiencesId}"
method: PATCH
path: "/v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudiencesId}"
tags: ["firstPartyAndPartnerAudiences"]
---

# PATCH /v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudiencesId}

`PATCH /v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudiencesId}`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudiencesId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/display-video`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video`

Updates an existing FirstPartyAndPartnerAudience. Only supported for the following audience_type: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`

## Path parameters

- `firstPartyAndPartnerAudiencesId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `advertiserId` string, int64
- `updateMask` string, google-fieldmask

## Request body

- FirstPartyAndPartnerAudience: Describes a first or partner audience list used for targeting. First party audiences are created via usage of client data. Partner audiences are provided by Third Party data providers and can only be licensed to customers.
  - `activeDisplayAudienceSize` string, int64: Output only. The estimated audience size for the Display network in the past month. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only returned in GET request.
  - `appId` string: Optional. The app_id matches with the type of the mobile_device_ids being uploaded. Only applicable to audience_type `CUSTOMER_MATCH_DEVICE_ID`
  - `audienceSource` 'AUDIENCE_SOURCE_UNSPECIFIED' | 'DISPLAY_VIDEO_360' | 'CAMPAIGN_MANAGER' | 'AD_MANAGER' | 'SEARCH_ADS_360' | 'YOUTUBE' | 'ADS_DATA_HUB': Output only. The source of the audience.
  - `audienceType` 'AUDIENCE_TYPE_UNSPECIFIED' | 'CUSTOMER_MATCH_CONTACT_INFO' | 'CUSTOMER_MATCH_DEVICE_ID' | 'CUSTOMER_MATCH_USER_ID' | 'ACTIVITY_BASED' | 'FREQUENCY_CAP' | 'TAG_BASED' | 'YOUTUBE_USERS' | 'THIRD_PARTY' | 'COMMERCE' | 'LINEAR' | 'AGENCY': Immutable. The type of the audience.
  - `contactInfoList` ContactInfoList: Wrapper message for a list of contact information defining Customer Match audience members.
    - `consent` Consent: User consent status.
      - `adPersonalization` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad personalization.
      - `adUserData` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad user data.
    - `contactInfos` ContactInfo[]: Optional. A list of ContactInfo objects defining Customer Match audience members. The size of members after splitting the contact_infos mustn't be greater than 500,000.
      - `countryCode` string: Optional. Country code of the member. Must also be set with the following fields: * hashed_first_name * hashed_last_name * zip_codes
      - `hashedEmails` string[]: Optional. A list of SHA256 hashed email of the member. Before hashing, remove all whitespace and make sure the string is all lowercase.
      - `hashedFirstName` string: Optional. SHA256 hashed first name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_last_name * zip_codes
      - `hashedLastName` string: Optional. SHA256 hashed last name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_first_name * zip_codes
      - `hashedPhoneNumbers` string[]: Optional. A list of SHA256 hashed phone numbers of the member. Before hashing, all phone numbers must be formatted using the [E.164 format](https://en.wikipedia.org/wiki/E.164) and include the country calling code.
      - `zipCodes` string[]: Optional. A list of zip codes of the member. Must also be set with the following fields: * country_code * hashed_first_name * hashed_last_name
  - `description` string: Optional. The user-provided description of the audience. Only applicable to first party audiences.
  - `displayAudienceSize` string, int64: Output only. The estimated audience size for the Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only returned in GET request.
  - `displayDesktopAudienceSize` string, int64: Output only. The estimated desktop audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `displayMobileAppAudienceSize` string, int64: Output only. The estimated mobile app audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `displayMobileWebAudienceSize` string, int64: Output only. The estimated mobile web audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `displayName` string: Optional. The display name of the first party and partner audience.
  - `firstPartyAndPartnerAudienceId` string, int64: Identifier. The unique ID of the first party and partner audience. Assigned by the system.
  - `firstPartyAndPartnerAudienceType` 'FIRST_PARTY_AND_PARTNER_AUDIENCE_TYPE_UNSPECIFIED' | 'TYPE_FIRST_PARTY' | 'TYPE_PARTNER': Output only. Whether the audience is a first party and partner audience.
  - `gmailAudienceSize` string, int64: Output only. The estimated audience size for Gmail network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `membershipDurationDays` string, int64: Optional. 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. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`
  - `mobileDeviceIdList` MobileDeviceIdList: Wrapper message for a list of mobile device IDs defining Customer Match audience members.
    - `consent` Consent: User consent status.
      - `adPersonalization` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad personalization.
      - `adUserData` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad user data.
    - `mobileDeviceIds` string[]: Optional. A list of mobile device IDs defining Customer Match audience members. The size of mobile_device_ids mustn't be greater than 500,000.
  - `name` string: Output only. The resource name of the first party and partner audience.
  - `youtubeAudienceSize` string, int64: Output only. The estimated audience size for YouTube network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.

## Response `200`

Successful response

- FirstPartyAndPartnerAudience: Describes a first or partner audience list used for targeting. First party audiences are created via usage of client data. Partner audiences are provided by Third Party data providers and can only be licensed to customers.
  - `activeDisplayAudienceSize` string, int64: Output only. The estimated audience size for the Display network in the past month. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only returned in GET request.
  - `appId` string: Optional. The app_id matches with the type of the mobile_device_ids being uploaded. Only applicable to audience_type `CUSTOMER_MATCH_DEVICE_ID`
  - `audienceSource` 'AUDIENCE_SOURCE_UNSPECIFIED' | 'DISPLAY_VIDEO_360' | 'CAMPAIGN_MANAGER' | 'AD_MANAGER' | 'SEARCH_ADS_360' | 'YOUTUBE' | 'ADS_DATA_HUB': Output only. The source of the audience.
  - `audienceType` 'AUDIENCE_TYPE_UNSPECIFIED' | 'CUSTOMER_MATCH_CONTACT_INFO' | 'CUSTOMER_MATCH_DEVICE_ID' | 'CUSTOMER_MATCH_USER_ID' | 'ACTIVITY_BASED' | 'FREQUENCY_CAP' | 'TAG_BASED' | 'YOUTUBE_USERS' | 'THIRD_PARTY' | 'COMMERCE' | 'LINEAR' | 'AGENCY': Immutable. The type of the audience.
  - `contactInfoList` ContactInfoList: Wrapper message for a list of contact information defining Customer Match audience members.
    - `consent` Consent: User consent status.
      - `adPersonalization` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad personalization.
      - `adUserData` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad user data.
    - `contactInfos` ContactInfo[]: Optional. A list of ContactInfo objects defining Customer Match audience members. The size of members after splitting the contact_infos mustn't be greater than 500,000.
      - `countryCode` string: Optional. Country code of the member. Must also be set with the following fields: * hashed_first_name * hashed_last_name * zip_codes
      - `hashedEmails` string[]: Optional. A list of SHA256 hashed email of the member. Before hashing, remove all whitespace and make sure the string is all lowercase.
      - `hashedFirstName` string: Optional. SHA256 hashed first name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_last_name * zip_codes
      - `hashedLastName` string: Optional. SHA256 hashed last name of the member. Before hashing, remove all whitespace and make sure the string is all lowercase. Must also be set with the following fields: * country_code * hashed_first_name * zip_codes
      - `hashedPhoneNumbers` string[]: Optional. A list of SHA256 hashed phone numbers of the member. Before hashing, all phone numbers must be formatted using the [E.164 format](https://en.wikipedia.org/wiki/E.164) and include the country calling code.
      - `zipCodes` string[]: Optional. A list of zip codes of the member. Must also be set with the following fields: * country_code * hashed_first_name * hashed_last_name
  - `description` string: Optional. The user-provided description of the audience. Only applicable to first party audiences.
  - `displayAudienceSize` string, int64: Output only. The estimated audience size for the Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only returned in GET request.
  - `displayDesktopAudienceSize` string, int64: Output only. The estimated desktop audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `displayMobileAppAudienceSize` string, int64: Output only. The estimated mobile app audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `displayMobileWebAudienceSize` string, int64: Output only. The estimated mobile web audience size in Display network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `displayName` string: Optional. The display name of the first party and partner audience.
  - `firstPartyAndPartnerAudienceId` string, int64: Identifier. The unique ID of the first party and partner audience. Assigned by the system.
  - `firstPartyAndPartnerAudienceType` 'FIRST_PARTY_AND_PARTNER_AUDIENCE_TYPE_UNSPECIFIED' | 'TYPE_FIRST_PARTY' | 'TYPE_PARTNER': Output only. Whether the audience is a first party and partner audience.
  - `gmailAudienceSize` string, int64: Output only. The estimated audience size for Gmail network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.
  - `membershipDurationDays` string, int64: Optional. 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. Only applicable to first party audiences. This field is required if one of the following audience_type is used: * `CUSTOMER_MATCH_CONTACT_INFO` * `CUSTOMER_MATCH_DEVICE_ID`
  - `mobileDeviceIdList` MobileDeviceIdList: Wrapper message for a list of mobile device IDs defining Customer Match audience members.
    - `consent` Consent: User consent status.
      - `adPersonalization` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad personalization.
      - `adUserData` 'CONSENT_STATUS_UNSPECIFIED' | 'CONSENT_STATUS_GRANTED' | 'CONSENT_STATUS_DENIED': Represents consent for ad user data.
    - `mobileDeviceIds` string[]: Optional. A list of mobile device IDs defining Customer Match audience members. The size of mobile_device_ids mustn't be greater than 500,000.
  - `name` string: Output only. The resource name of the first party and partner audience.
  - `youtubeAudienceSize` string, int64: Output only. The estimated audience size for YouTube network. If the size is less than 1000, the number will be hidden and 0 will be returned due to privacy reasons. Otherwise, the number will be rounded off to two significant digits. Only applicable to first party audiences. Only returned in GET request.

---

[API](https://skmtc.dev/google/apis/displayvideo.md) - [All operations](https://skmtc.dev/google/apis/displayvideo/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/displayvideo/revisions/c4f5eaed2791?raw)
