À 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: partners.channels.sites.create
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Crée un site dans un canal.
Requête HTTP
POST https://displayvideo.googleapis.com/v4/partners/{partnerId}/channels/{channelId}/sites
L'URL utilise la syntaxe de transcodage gRPC.
Paramètres de chemin d'accès
Paramètres |
channelId |
string (int64 format)
Obligatoire. ID de la chaîne parent dans laquelle le site sera créé.
|
Paramètre d'union owner . Obligatoire. Identifie l'entité DV360 propriétaire de la chaîne parente. Il peut s'agir d'un partenaire ou d'un annonceur. owner ne peut être qu'un des éléments suivants : |
partnerId |
string (int64 format)
ID du partenaire propriétaire de la chaîne parente.
|
Paramètres de requête
Paramètres |
Paramètre d'union owner . Obligatoire. Identifie l'entité DV360 propriétaire de la chaîne parente. Il peut s'agir d'un partenaire ou d'un annonceur. owner ne peut être qu'un des éléments suivants : |
advertiserId |
string (int64 format)
ID de l'annonceur propriétaire de la chaîne parente.
|
Corps de la requête
Le corps de la requête contient une instance de Site
.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient une nouvelle instance de Site
.
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)."],[],["The Display & Video 360 API v4 (beta) allows creating a site within a channel via a `POST` request to a specified URL. The URL requires `channelId` and `partnerId` as path parameters to identify the parent channel and its owner. A required union parameter `owner` further specifies if the channel belongs to an advertiser or partner, using either `advertiserId` or `partnerId` as query parameters. The request body and response both utilize a `Site` instance. This operation requires the `https://www.googleapis.com/auth/display-video` OAuth scope.\n"],null,["# Method: partners.channels.sites.create\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\nCreates a site in a channel.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/partners/{partnerId}/channels/{channelId}/sites`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `channelId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the parent channel in which the site will be created. |\n| Union parameter `owner`. Required. Identifies the DV360 entity that owns the parent channel. It can be either a partner or an advertiser. `owner` can be only one of the following: ||\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the partner that owns the parent channel. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| Union parameter `owner`. Required. Identifies the DV360 entity that owns the parent channel. It can be either a partner or an advertiser. `owner` can be only one of the following: ||\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that owns the parent channel. |\n\n### Request body\n\nThe request body contains an instance of [Site](/display-video/api/reference/rest/v4/advertisers.channels.sites#Site).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Site](/display-video/api/reference/rest/v4/advertisers.channels.sites#Site).\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)."]]