À partir du
8 septembre 2025, chaque nouvelle ligne devra indiquer si elle diffusera ou non des annonces à caractère politique dans l'Union européenne (UE). Les importations de fichiers SDF et les appels à l'API Display & Video 360 qui ne fournissent pas de déclarations échoueront. Pour savoir comment mettre à jour votre intégration afin d'effectuer cette déclaration, consultez notre
page sur les abandons de compatibilité.
Method: firstPartyAndPartnerAudiences.patch
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Met à jour une FirstPartyAndPartnerAudience existante.
Compatible uniquement avec les audienceType
suivants:
CUSTOMER_MATCH_CONTACT_INFO
CUSTOMER_MATCH_DEVICE_ID
Requête HTTP
PATCH https://displayvideo.googleapis.com/v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudience.firstPartyAndPartnerAudienceId}
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
firstPartyAndPartnerAudience.firstPartyAndPartnerAudienceId |
string (int64 format)
Identifiant. ID unique de l'audience propriétaire et partenaire. Attribué par le système.
|
Paramètres de requête
Paramètres |
updateMask |
string (FieldMask format)
Obligatoire. Masque permettant de contrôler les champs à mettre à jour. Les mises à jour ne sont acceptées que pour les champs suivants:
displayName
description
membershipDurationDays
Il s'agit d'une liste de noms de champs complets séparés par une virgule. Exemple : "user.displayName,photo"
|
advertiserId |
string (int64 format)
Obligatoire. ID de l'annonceur propriétaire de l'audience FirstPartyAndPartnerAudience mise à jour.
|
Corps de la requête
Le corps de la requête contient une instance de FirstPartyAndPartnerAudience
.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient une instance de FirstPartyAndPartnerAudience
.
Champs d'application des autorisations
Requiert le niveau d'accès OAuth suivant :
https://www.googleapis.com/auth/display-video
Pour en savoir plus, consultez OAuth 2.0 Overview.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[],[],null,["# Method: firstPartyAndPartnerAudiences.patch\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates an existing FirstPartyAndPartnerAudience.\n\nOnly supported for the following [audienceType](/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#FirstPartyAndPartnerAudience.FIELDS.audience_type):\n\n- `CUSTOMER_MATCH_CONTACT_INFO`\n- `CUSTOMER_MATCH_DEVICE_ID`\n\n### HTTP request\n\n`PATCH https://displayvideo.googleapis.com/v4/firstPartyAndPartnerAudiences/{firstPartyAndPartnerAudience.firstPartyAndPartnerAudienceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `firstPartyAndPartnerAudience.firstPartyAndPartnerAudienceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Identifier. The unique ID of the first party and partner audience. Assigned by the system. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The mask to control which fields to update. Updates are only supported for the following fields: - `displayName` - `description` - `membershipDurationDays` This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the owner advertiser of the updated FirstPartyAndPartnerAudience. |\n\n### Request body\n\nThe request body contains an instance of [FirstPartyAndPartnerAudience](/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#FirstPartyAndPartnerAudience).\n\n### Response body\n\nIf successful, the response body contains an instance of [FirstPartyAndPartnerAudience](/display-video/api/reference/rest/v4/firstPartyAndPartnerAudiences#FirstPartyAndPartnerAudience).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]