Method: advertisers.lineItems.create
नया लाइन आइटम बनाता है. अगर यह फ़ंक्शन सही तरीके से काम करता है, तो नया लाइन आइटम दिखाता है.
एपीआई का इस्तेमाल करके, YouTube और पार्टनर के लाइन आइटम नहीं बनाए जा सकते या अपडेट नहीं किए जा सकते.
एचटीटीपी अनुरोध
POST https://displayvideo.googleapis.com/v3/advertisers/{lineItem.advertiserId}/lineItems
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
पाथ पैरामीटर
पैरामीटर |
lineItem.advertiserId |
string (int64 format)
सिर्फ़ आउटपुट के लिए. विज्ञापन देने वाले उस व्यक्ति या कंपनी का यूनीक आईडी जिससे लाइन आइटम जुड़ा है.
|
अनुरोध का मुख्य भाग
अनुरोध के मुख्य भाग में LineItem
का उदाहरण है.
जवाब का मुख्य भाग
कामयाब रहने पर, जवाब के मुख्य हिस्से में LineItem
का नया इंस्टेंस शामिल किया जाता है.
अनुमति के दायरे
नीचे दिए गए 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) को अपडेट किया गया."],[[["Creates a new Display & Video 360 line item with the provided details."],["YouTube & Partners line items are not supported through this API."],["Requires authorization with the `https://www.googleapis.com/auth/display-video` scope."],["Sends a POST request to the specified endpoint with the line item data in the request body."],["Returns the newly created line item object in the response if successful."]]],["This document details how to create a new line item via an API. A `POST` request is sent to `https://displayvideo.googleapis.com/v3/advertisers/{lineItem.advertiserId}/lineItems`, using a `lineItem.advertiserId` path parameter which is a unique advertiser ID. The request body must contain a `LineItem` instance. A successful request returns a new `LineItem` instance in the response body. This process needs the `https://www.googleapis.com/auth/display-video` OAuth scope for authorization. Note that YouTube & Partners line items are not supported by this method.\n"]]