Method: sellers.products.delete
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک محصول موجود را حذف می کند.
- اگر محصول وجود نداشته باشد یا محصول حذف شده باشد، کد خطا
NOT_FOUND
را برمی گرداند. - اگر هر واحد تبلیغاتی با این محصول مرتبط باشد، کد خطا
FAILED_PRECONDITION
را برمیگرداند.
درخواست HTTP
DELETE https://dv360outofhomeseller.googleapis.com/v1/{name=sellers/*/products/*}
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
مولفه های |
---|
name | string ضروری. محصول برای حذف قالب: فروشندگان/{seller}/products/{product} |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی نمونه ای از Product
است.
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/doubleclickbidmanager
برای اطلاعات بیشتر، به نمای کلی OAuth 2.0 مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["This operation deletes an existing product using an HTTP DELETE request to a specified URL."],["To successfully delete a product, it must exist, cannot be already deleted, and cannot have any associated ad units."],["The request requires an empty body and authorization with the `https://www.googleapis.com/auth/doubleclickbidmanager` scope."],["If successful, the response provides details about the deleted product using the `Product` object."]]],["This document details the process of deleting a product via an HTTP `DELETE` request to a specific URL. The product to be deleted is identified by a `name` parameter in the URL path. The request body must be empty. A successful deletion returns a `Product` instance. Deletion errors include `NOT_FOUND` if the product doesn't exist or is deleted, and `FAILED_PRECONDITION` if ad units are linked. The request requires the `https://www.googleapis.com/auth/doubleclickbidmanager` OAuth scope.\n"]]