Method: advertisers.lineItems.create
יצירת פריט חדש. הפונקציה מחזירה את פריט העלויות החדש שנוצר, אם הפעולה בוצעה בהצלחה.
לא ניתן ליצור או לעדכן פריטים מקמפיינים של YouTube ושותפים באמצעות ה-API.
בקשת HTTP
POST https://displayvideo.googleapis.com/v3/advertisers/{lineItem.advertiserId}/lineItems
כתובת ה-URL משתמשת בתחביר של Transcoding של 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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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"]]