# REST Resource: orders.lines

- [Resource: Line](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#Line)
  - [JSON representation](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#Line.SCHEMA_REPRESENTATION)
- [LineState](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#LineState)
- [Methods](https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#METHODS_SUMMARY)

## Resource: Line

A single order line which represents a configured product.

| JSON representation |
|---|
| ``` { "name": string, "product": string, "externalId": string, "displayName": string, "description": string, "lineState": enum (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#LineState`), "rejection": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Rejection`) }, "startTime": string, "endTime": string, "startDate": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/Date`) }, "endDate": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/Date`) }, "budget": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/Money`) }, "lineTerms": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/LineTerms`) }, "pendingReservationExpirationTime": string, "reservationExpirationTime": string, "targeting": { object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting`) }, "createTime": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource name of the line in the format: `orders/{order_id}/lines/{id}`. |
| `product` | `string` Output only. The name of the `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/products#Product` this line is configuring. Format = products/123 |
| `externalId` | `string` Optional. An id used to map this entity to external sources. |
| `displayName` | `string` Output only. The display name of the line. |
| `description` | `string` Output only. Additional freeform field to describe the line. |
| `lineState` | ``enum (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#LineState`)`` Output only. The state of the line. See `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines#LineState` for the lifecycle of a Line. Seller can use the following custom methods: `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/reserve#google.ads.xbid.outofhome.v1beta1.OrderManagementService.ReserveLine`, `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/book#google.ads.xbid.outofhome.v1beta1.OrderManagementService.BookLine`, and `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/reject#google.ads.xbid.outofhome.v1beta1.OrderManagementService.RejectLine` to set to one of the following: - `LINE_STATE_RESERVED` - `LINE_STATE_BOOKED` - `LINE_STATE_REJECTED_BY_SELLER`. All other line states are set by the buyer. |
| `rejection` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Rejection`)`` Optional. Rejection details for the line. |
| `startTime (deprecated)` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` > [!WARNING] > This item is deprecated! Output only. When the line would start being served (inclusive). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `endTime (deprecated)` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` > [!WARNING] > This item is deprecated! Output only. When the line would stop being served (exclusive). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `startDate` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/Date`)`` Output only. The date the line would start being served (inclusive). Same time zone as the ad unit. |
| `endDate` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/Date`)`` Output only. The date the line would stop being served (inclusive). Same time zone as the ad unit. |
| `budget` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/Shared.Types/Money`)`` Output only. The budget of the line. |
| `lineTerms` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/LineTerms`)`` Output only. The seller's guaranteed terms for this line. |
| `pendingReservationExpirationTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Expiration timestamp for the pending reservation. Seller needs to reserve or reject before a pending reservation expires or it will be treated as rejected. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `reservationExpirationTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Expiration timestamp for the reservation. The buyer needs to book before a reservation expires or it will be treated as cancelled. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `targeting` | ``object (`https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/Targeting`)`` Output only. The targeting for the line. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Creation timestamp for line. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. Last updated timestamp for line. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |

## LineState

State of a line.

| Enums ||
|---|---|
| `LINE_STATE_UNSPECIFIED` | The default value when the line state has not been specified or is unknown in this version. |
| `LINE_STATE_PENDING_RESERVATION` | The line has been created by the buyer and is requesting the products be reserved as well as updated with pricing and availability information. |
| `LINE_STATE_RESERVED` | The line was reserved by the seller. This state is only possible if the previous state is pending reservation. |
| `LINE_STATE_PENDING_BOOKING` | The buyer has accepted the reservation and is requesting the line to be booked. |
| `LINE_STATE_BOOKED` | The seller has booked the line. This state is only possible if the previous state is pending booking. Rejections are not expected at this stage. |
| `LINE_STATE_REJECTED_BY_SELLER` | The line was rejected by the seller. This state is only possible if the previous state is pending reservation. |
| `LINE_STATE_CANCELLED_BY_BUYER` | The line was cancelled by buyer. |
| `LINE_STATE_PENDING_RESERVATION_EXPIRED` | The line expired while pending reservation. |
| `LINE_STATE_RESERVED_EXPIRED` | The line expired while reserved, waiting for buyer's response. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/book` | Books an existing line. |
| ### `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/get` | Retrieves an individual line for an order. |
| ### `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/list` | Lists lines for an order. |
| ### `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/patch` | Updates an existing line. |
| ### `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/reject` | Rejects an existing line. |
| ### `https://developers.google.com/display-video/out-of-home-seller/reference/rest/v1beta1/orders.lines/reserve` | Reserves an existing line. |