Resource: Line
A single order line which represents a configured product.
JSON representation |
---|
{ "name": string, "product": string, "externalId": string, "displayName": string, "description": string, "state": enum ( |
Fields | |
---|---|
name |
The resource name of the line in the format: |
product |
The name of the |
externalId |
An id used to map this entity to external sources. |
displayName |
The display name of the line. |
description |
Additional freeform field to describe the line. |
state |
Output only. The state of the line. See Seller can use the following custom methods:
All other line states are set by the buyer. |
rejection |
Rejection details for the line. |
startDate |
The date the line would start being served (inclusive). Same time zone as the ad unit. |
endDate |
The date the line would stop being served (inclusive). Same time zone as the ad unit. |
transactionType |
Transaction type for this line. |
pricingType |
Pricing type for this line. |
externalDealId |
External deal ID for this line. If provided, the line is set to RTB execution if configured for the seller, otherwise errors. |
creativeType |
Creative type for this line. The product specified for this line must support the provided creative type. |
budget |
Output only. The budget of the line. |
lineTerms |
Output only. The seller's guaranteed terms for this line. |
pendingReservationExpirationTime |
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: |
reservationExpirationTime |
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: |
targeting |
The targeting for the line. |
createTime |
Output only. Creation timestamp for line. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. Last updated timestamp for line. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
State
State of a line.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value when the line state has not been specified or is unknown in this version. |
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. |
STATE_RESERVED |
The line was reserved by the seller. This state is only possible if the previous state is pending reservation. |
STATE_PENDING_BOOKING |
The buyer has accepted the reservation and is requesting the line to be booked. |
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. |
STATE_REJECTED_BY_SELLER |
The line was rejected by the seller. This state is only possible if the previous state is pending reservation. |
STATE_CANCELLED_BY_BUYER |
The line was cancelled by buyer. |
STATE_PENDING_RESERVATION_EXPIRED |
The line expired while pending reservation. |
STATE_RESERVED_EXPIRED |
The line expired while reserved, waiting for buyer's response. |
TransactionType
Transaction type for a line.
Enums | |
---|---|
TRANSACTION_TYPE_UNSPECIFIED |
The default value when the exchange has not been specified or is unknown in this version. |
TRANSACTION_TYPE_RESERVED |
The transaction is reserved (guaranteed). |
TRANSACTION_TYPE_NON_RESERVED |
The transaction is non-reserved (non-guaranteed). |
PricingType
Pricing type for a line.
Enums | |
---|---|
PRICING_TYPE_UNSPECIFIED |
The default value when the exchange has not been specified or is unknown in this version. |
PRICING_TYPE_FIXED |
Fixed price per impression. |
PRICING_TYPE_AUCTION |
Impression price will be determined by auction. |
Methods |
|
---|---|
|
Books an existing line. |
|
Creates a new line. |
|
Retrieves an individual line for an order. |
|
Lists lines for an order. |
|
Updates an existing line. |
|
Rejects an existing line. |
|
Reserves an existing line. |