Method: advertisers.lineItems.delete
लाइन आइटम मिटाता है.
अगर लाइन आइटम मौजूद नहीं है, तो गड़बड़ी कोड NOT_FOUND
दिखाता है.
लाइन आइटम को मिटाने के लिए, पहले उसे संग्रहित करना होगा. इसका मतलब है कि entityStatus
को ENTITY_STATUS_ARCHIVED
पर सेट करना होगा.
एपीआई का इस्तेमाल करके, YouTube और पार्टनर के लाइन आइटम नहीं बनाए जा सकते या अपडेट नहीं किए जा सकते.
एचटीटीपी अनुरोध
DELETE https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/lineItems/{lineItemId}
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
advertiserId |
string (int64 format)
विज्ञापन देने वाले उस व्यक्ति या कंपनी का आईडी जिससे यह लाइन आइटम जुड़ा है.
|
lineItemId |
string (int64 format)
मिटाए जाने वाले लाइन आइटम का आईडी.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, तो रिस्पॉन्स बॉडी में खाली JSON ऑब्जेक्ट होता है.
अनुमति के दायरे
नीचे दिए गए 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 और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-02-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-02-25 (UTC) को अपडेट किया गया."],[[["Deletes a specific line item within a given advertiser, requiring the line item to be archived beforehand."],["Identifies the target line item and advertiser using their respective IDs in the request URL."],["Returns an error if the line item is not found or is a YouTube & Partners line item, as those cannot be managed via the API."],["Requires authorization with the `https://www.googleapis.com/auth/display-video` scope."],["Utilizes a DELETE request with an empty body and returns an empty body upon successful deletion."]]],[]]