از
8 سپتامبر 2025 ، هر مورد خط جدید باید اعلام کند که آیا تبلیغات سیاسی اتحادیه اروپا (EU) را ارائه می دهد یا خیر. Display & Video 360 API و بارگذاریهای SDF که اعلانها را ارائه نمیکنند با شکست مواجه میشوند. برای جزئیات بیشتر در مورد نحوه به روز رسانی یکپارچه سازی خود برای ایجاد این اعلامیه، به
صفحه لغو اعتبار ما مراجعه کنید.
Method: inventorySources.patch
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
منبع موجودی موجود را به روز می کند. در صورت موفقیت، منبع موجودی به روز شده را برمی گرداند.
درخواست HTTP
PATCH https://displayvideo.googleapis.com/v4/inventorySources/{inventorySource.inventorySourceId}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
inventorySource.inventorySourceId | string ( int64 format) فقط خروجی شناسه منحصر به فرد منبع موجودی. توسط سیستم تعیین شده است. |
پارامترهای پرس و جو
پارامترها |
---|
updateMask | string ( FieldMask format) مورد نیاز. ماسکی برای کنترل اینکه کدام فیلدها به روز شوند. این فهرستی از نامهای فیلدهای کاملاً واجد شرایط با کاما است. مثال: "user.displayName,photo" . |
accessor پارامتر اتحادیه مورد نیاز. مشخص می کند که درخواست در کدام نهاد DV360 در حال انجام است. accessor می تواند تنها یکی از موارد زیر باشد: |
partnerId | string ( int64 format) شناسه شریکی که درخواست در آن انجام می شود. |
advertiserId | string ( int64 format) شناسه تبلیغکننده که درخواست در آن انجام میشود. |
درخواست بدن
بدنه درخواست شامل یک نمونه از InventorySource
است.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی یک نمونه از InventorySource
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/display-video
برای اطلاعات بیشتر، بهOAuth 2.0 Overview .
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],["The Display & Video 360 API v4 (beta) updates an existing inventory source using a PATCH request. The request URL includes the `inventorySourceId` as a path parameter. It requires the `updateMask` to specify fields for updating, and an `accessor` (either `partnerId` or `advertiserId`). The request body contains `InventorySource` data and if the operation succeeds, the API returns the updated `InventorySource` in the response. Authorization needs the `display-video` OAuth scope.\n"],null,["# Method: inventorySources.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 inventory source. Returns the updated inventory source if successful.\n\n### HTTP request\n\n`PATCH https://displayvideo.googleapis.com/v4/inventorySources/{inventorySource.inventorySourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `inventorySource.inventorySourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the inventory source. 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. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| Union parameter `accessor`. Required. Identifies which DV360 entity the request is being made within. `accessor` 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 the request is being made within. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that the request is being made within. |\n\n### Request body\n\nThe request body contains an instance of [InventorySource](/display-video/api/reference/rest/v4/inventorySources#InventorySource).\n\n### Response body\n\nIf successful, the response body contains an instance of [InventorySource](/display-video/api/reference/rest/v4/inventorySources#InventorySource).\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)."]]