Ab dem
8. September 2025 muss für jede neue Werbebuchung angegeben werden, ob Werbung mit politischen Inhalten in der Europäischen Union (EU) ausgeliefert wird. Display & Video 360 API- und SDF-Uploads ohne entsprechende Erklärungen schlagen fehl. Weitere Informationen dazu, wie Sie Ihre Integration aktualisieren, um diese Erklärung abzugeben,
finden Sie auf unserer Seite zur Einstellung.
Method: advertisers.lineItems.create
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
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/v4/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-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[],["The Display & Video 360 API v4 (beta) allows creating new line items via a POST request to a specific URL, including an advertiser ID in the path. The request body needs a `LineItem` instance, and a successful request returns the newly created `LineItem`. The API is not compatible with YouTube & Partners line items. Authorization requires the `https://www.googleapis.com/auth/display-video` OAuth scope. This action can be done by following the gRPC Transcoding syntax.\n"],null,["# Method: advertisers.lineItems.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a new line item. Returns the newly created line item if successful.\n\nYouTube \\& Partners line items cannot be created or updated using the API.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/advertisers/{lineItem.advertiserId}/lineItems`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `lineItem.advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the advertiser the line item belongs to. |\n\n### Request body\n\nThe request body contains an instance of [LineItem](/display-video/api/reference/rest/v4/advertisers.lineItems#LineItem).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [LineItem](/display-video/api/reference/rest/v4/advertisers.lineItems#LineItem).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]