Od 8 września 2025 r. każdy nowy element zamówienia będzie musiał deklarować, czy będzie wyświetlać reklamy polityczne w Unii Europejskiej (UE). Przesyłanie plików SDF i wywoływanie interfejsu Display & Video 360 API bez deklaracji zakończy się niepowodzeniem. Więcej informacji o tym, jak zaktualizować integrację, aby złożyć to oświadczenie, znajdziesz na naszej stronie dotyczącej wycofania.
Wymagany. Identyfikator kanału nadrzędnego, w którym zostanie utworzona witryna.
Parametr unii owner. Wymagany. Identyfikuje jednostkę DV360, która jest właścicielem kanału nadrzędnego. Może to być partner lub reklamodawca. owner może mieć tylko jedną z tych wartości:
Identyfikator reklamodawcy, który jest właścicielem kanału nadrzędnego.
Parametry zapytania
Parametry
Parametr unii owner. Wymagany. Identyfikuje jednostkę DV360, która jest właścicielem kanału nadrzędnego. Może to być partner lub reklamodawca. owner może mieć tylko jedną z tych wartości:
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eDisplay & Video 360 API v2 is sunset and this documentation details creating a new site within a channel using the API.\u003c/p\u003e\n"],["\u003cp\u003eThe API request utilizes an HTTP POST method with specific path and query parameters to define the location and ownership of the new site.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful API calls will return a response containing the details of the newly created site, formatted according to the Site object definition.\u003c/p\u003e\n"],["\u003cp\u003eUsers need to be authorized with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope to utilize this API functionality.\u003c/p\u003e\n"]]],["The provided content outlines the process for creating a site within a channel using the Display & Video 360 API. A `POST` request is sent to the specified URL, including the `advertiserId` and `channelId` as path parameters. The request requires one of the parameters to indicate the owner and a `site` object in the request body. Upon success, the response will include the newly created `site` object. Authorization via OAuth is mandatory using `display-video` scope.\n"],null,["# Method: advertisers.channels.sites.create\n\n| Display \\& Video 360 API v2 has sunset.\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/v2/advertisers/{advertiserId}/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| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser 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| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the partner that owns the parent channel. |\n\n### Request body\n\nThe request body contains an instance of [Site](/display-video/api/reference/rest/v2/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/v2/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](https://developers.google.com/identity/protocols/OAuth2)."]]