Method: advertisers.lineItems.create
Stay organized with collections
Save and categorize content based on your preferences.
Creates a new line item. Returns the newly created line item if successful.
HTTP request
POST https://displayvideo.googleapis.com/v1beta2/advertisers/{lineItem.advertiserId}/lineItems
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
lineItem.advertiserId |
string (int64 format)
Output only. The unique ID of the advertiser the line item belongs to.
|
Request body
The request body contains an instance of LineItem
.
Response body
If successful, the response body contains a newly created instance of LineItem
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eCreates a new line item within a specified advertiser using an HTTP POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the advertiser ID as a path parameter and a \u003ccode\u003eLineItem\u003c/code\u003e object in the request body.\u003c/p\u003e\n"],["\u003cp\u003eReturns the newly created \u003ccode\u003eLineItem\u003c/code\u003e object in the response body if the request is successful.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e scope.\u003c/p\u003e\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\nCreates a new line item. Returns the newly created line item if successful.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v1beta2/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/v1beta2/reference/rest/v1beta2/advertisers.lineItems#LineItem).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [LineItem](/display-video/api/v1beta2/reference/rest/v1beta2/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](https://developers.google.com/identity/protocols/OAuth2)."]]