Method: advertisers.lineItems.create
Erstellt eine neue Werbebuchung. Gibt die neu erstellte Werbebuchung zurück, wenn der Vorgang erfolgreich war.
„YouTube und Partner“-Werbebuchungen können nicht über die API erstellt oder aktualisiert werden.
HTTP-Anfrage
POST https://displayvideo.googleapis.com/v3/advertisers/{lineItem.advertiserId}/lineItems
Die URL verwendet die Syntax der gRPC-Transcodierung.
Pfadparameter
Parameter |
lineItem.advertiserId |
string (int64 format)
Nur Ausgabe. Die eindeutige ID des Werbetreibenden, zu dem die Werbebuchung gehört.
|
Anfragetext
Der Anfragetext enthält eine Instanz von LineItem
.
Antworttext
Bei Erfolg enthält der Antworttext eine neu erstellte Instanz von LineItem
.
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/display-video
Weitere Informationen finden Sie unter OAuth 2.0 Overview.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-02-25 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]