Creates a new line item. Returns the newly created line item if successful. YouTube & Partners line items cannot be created or updated using the API.
Path parameters
Output only. The unique ID of the advertiser the line item belongs to.
Request body
Output only. The timestamp when the line item was last updated. Assigned by the system.
Output only. The unique ID of the campaign that the line item belongs to.
Output only. The resource name of the line item.
Required. Immutable. The type of the line item.
Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING in the parent advertiser, then this field will be assigned DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, the advertisers.lineItems.create request will fail.
Output only. The unique ID of the line item. Assigned by the system.
Optional. Whether to enable DV360's bid optimization for fixed bid line items. By default, DV360 optimizes your fixed bid by automatically lowering bids for impressions that are less likely to perform well. This optimization is enabled by default (value is true). When this field is set to false, this optimization is disabled, and the bid will not be lowered for any reason. This setting only applies to line items with a bidding_strategy of type FIXED_BID.
Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
The IDs of the creatives associated with the line item.
Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only ENTITY_STATUS_DRAFT is allowed. To activate a line item, use UpdateLineItem method and update the status to ENTITY_STATUS_ACTIVE after creation. * A line item cannot be changed back to ENTITY_STATUS_DRAFT status from any other status. * If the line item's parent insertion order is not active, the line item can't spend its budget even if its own status is ENTITY_STATUS_ACTIVE.
Output only. The reservation type of the line item.
Required. Immutable. The unique ID of the insertion order that the line item belongs to.
Output only. The unique ID of the advertiser the line item belongs to.
Response
Successful response