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.
Method: inventorySourceGroups.create
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy nową grupę źródeł zasobów reklamowych. W przypadku powodzenia zwraca nowo utworzoną grupę źródeł asortymentu.
Żądanie HTTP
POST https://displayvideo.googleapis.com/v3/inventorySourceGroups
Adres URL używa składni transkodowania gRPC.
Parametry zapytania
Parametry |
Parametr unii owner . Wymagane. Określa element DV360, który jest właścicielem grupy źródeł zasobów reklamowych. Może to być partner lub reklamodawca. owner może być tylko jednym z tych elementów: |
partnerId |
string (int64 format)
Identyfikator partnera, który jest właścicielem grupy źródeł zasobów reklamowych. Tylko ten partner będzie mieć dostęp do zapisu w tej grupie. Dostęp do tej grupy będą mieli tylko reklamodawcy, którym została ona udostępniona.
|
advertiserId |
string (int64 format)
Identyfikator reklamodawcy, który jest właścicielem grupy źródeł zasobów reklamowych. Partner nadrzędny nie będzie mieć dostępu do tej grupy.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu InventorySourceGroup
.
Treść odpowiedzi
Jeśli operacja się powiedzie, treść odpowiedzi będzie zawierała nowo utworzoną instancję InventorySourceGroup
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/display-video
Więcej informacji znajdziesz w OAuth 2.0 Overview.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eCreates a new inventory source group, returning the created group upon success.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying an owner (partner or advertiser) using query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eInventorySourceGroup\u003c/code\u003e object with the desired settings.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will contain the newly created \u003ccode\u003eInventorySourceGroup\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,["# Method: inventorySourceGroups.create\n\n| Display \\& Video 360 API is deprecated and will sunset on **October 7, 2025** . Migrate to [Display \\& Video 360 API v4](/display-video/api/reference/rest/v4) before sunset to avoid an interruption in service.\n- [HTTP request](#body.HTTP_TEMPLATE)\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 new inventory source group. Returns the newly created inventory source group if successful.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v3/inventorySourceGroups`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union parameter `owner`. Required. Identifies the DV360 entity that owns the inventory source group. 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 inventory source group. Only this partner will have write access to this group. Only advertisers to which this group is explicitly shared will have read access to this group. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that owns the inventory source group. The parent partner will not have access to this group. |\n\n### Request body\n\nThe request body contains an instance of [InventorySourceGroup](/display-video/api/reference/rest/v3/inventorySourceGroups#InventorySourceGroup).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [InventorySourceGroup](/display-video/api/reference/rest/v3/inventorySourceGroups#InventorySourceGroup).\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)."]]