# type Order (v202511)

**Service** **OrderService** **Dependencies** [OrderPage](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.OrderPage) [createOrders()](https://developers.google.com/ad-manager/api/reference/v202511/OrderService#createOrders) [updateOrders()](https://developers.google.com/ad-manager/api/reference/v202511/OrderService#updateOrders) ▼ **Order**

An `Order` represents a grouping of individual [LineItem](https://developers.google.com/ad-manager/api/reference/v202511/ForecastService.LineItem) objects, each of which
fulfill an ad request from a particular advertiser.

*** ** * ** ***

Namespace
:
    `https://www.google.com/apis/ads/publisher/v202511`

| ## Field ||
|---|---|
| ### `id` | ` xsd:long` The unique ID of the `Order`. This value is readonly and is assigned by Google. |
| ### `name` | ` xsd:string` The name of the `Order`. This value is required to create an order and has a maximum length of 255 characters. |
| ### `startDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.DateTime ` The date and time at which the `Order` and its associated line items are eligible to begin serving. This attribute is readonly and is derived from the line item of the order which has the earliest [LineItem.startDateTime](https://developers.google.com/ad-manager/api/reference/v202511/ForecastService.LineItem#startDateTime). |
| ### `endDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.DateTime ` The date and time at which the `Order` and its associated line items stop being served. This attribute is readonly and is derived from the line item of the order which has the latest [LineItem.endDateTime](https://developers.google.com/ad-manager/api/reference/v202511/ForecastService.LineItem#endDateTime). |
| ### `unlimitedEndDateTime` | ` xsd:boolean` Specifies whether or not the `Order` has an unlimited end date. This attribute is readonly and is `true` if any of the order's line items has [LineItem.unlimitedEndDateTime](https://developers.google.com/ad-manager/api/reference/v202511/ForecastService.LineItem#unlimitedEndDateTime) set to `true`. |
| ### `status` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.OrderStatus ` The status of the `Order`. This attribute is read-only. *** ** * ** *** **Enumerations** `DRAFT` :   Indicates that the [Order](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Order) has just been created but no approval has been requested yet. `PENDING_APPROVAL` :   Indicates that a request for approval for the [Order](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Order) has been made. `APPROVED` :   Indicates that the [Order](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Order) has been approved and is ready to serve. `DISAPPROVED` :   Indicates that the [Order](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Order) has been disapproved and is not eligible to serve. `PAUSED` :   This is a legacy state. Paused status should be checked on `LineItems`s within the order. `CANCELED` :   Indicates that the [Order](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Order) has been canceled and cannot serve. `DELETED` :   Indicates that the [Order](https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Order) has been deleted by DSM. `UNKNOWN` :   The value returned if the actual value is not exposed by the requested API version. <br /> |
| ### `isArchived` | ` xsd:boolean` The archival status of the `Order`. This attribute is readonly. |
| ### `notes` | ` xsd:string` Provides any additional notes that may annotate the `Order`. This attribute is optional and has a maximum length of 65,535 characters. |
| ### `externalOrderId` | ` xsd:int` An arbitrary ID to associate to the `Order`, which can be used as a key to an external system. This value is optional. |
| ### `poNumber` | ` xsd:string` The purchase order number for the `Order`. This value is optional and has a maximum length of 63 characters. |
| ### `currencyCode` | ` xsd:string` The ISO currency code for the currency used by the `Order`. This value is read-only and is the network's currency code. |
| ### `advertiserId` | ` xsd:long` The unique ID of the [Company](https://developers.google.com/ad-manager/api/reference/v202511/CompanyService.Company), which is of type [Company.Type.ADVERTISER](https://developers.google.com/ad-manager/api/reference/v202511/CompanyService.Company.Type#ADVERTISER), to which this order belongs. This attribute is required. |
| ### `advertiserContactIds` | ` xsd:long[]` List of IDs for advertiser contacts of the order. |
| ### `agencyId` | ` xsd:long` The unique ID of the [Company](https://developers.google.com/ad-manager/api/reference/v202511/CompanyService.Company), which is of type [Company.Type.AGENCY](https://developers.google.com/ad-manager/api/reference/v202511/CompanyService.Company.Type#AGENCY), with which this order is associated. This attribute is optional. |
| ### `agencyContactIds` | ` xsd:long[]` List of IDs for agency contacts of the order. |
| ### `creatorId` | ` xsd:long` The unique ID of the [User](https://developers.google.com/ad-manager/api/reference/v202511/UserService.User) who created the `Order` on behalf of the advertiser. This value is readonly and is assigned by Google. |
| ### `traffickerId` | ` xsd:long` The unique ID of the [User](https://developers.google.com/ad-manager/api/reference/v202511/UserService.User) responsible for trafficking the `Order`. This value is required for creating an order. |
| ### `secondaryTraffickerIds` | ` xsd:long[]` The IDs of the secondary traffickers associated with the order. This value is optional. |
| ### `salespersonId` | ` xsd:long` The unique ID of the [User](https://developers.google.com/ad-manager/api/reference/v202511/UserService.User) responsible for the sales of the `Order`. This value is optional. |
| ### `secondarySalespersonIds` | ` xsd:long[]` The IDs of the secondary salespeople associated with the order. This value is optional. |
| ### `totalImpressionsDelivered` | ` xsd:long` Total impressions delivered for all line items of this `Order`. This value is read-only and is assigned by Google. |
| ### `totalClicksDelivered` | ` xsd:long` Total clicks delivered for all line items of this `Order`. This value is read-only and is assigned by Google. |
| ### `totalViewableImpressionsDelivered` | ` xsd:long` Total viewable impressions delivered for all line items of this `Order`. This value is read-only and is assigned by Google. Starting in v201705, this will be `null` when the order does not have line items trafficked against a viewable impressions goal. |
| ### `totalBudget` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.Money ` Total budget for all line items of this `Order`. This value is a readonly field assigned by Google and is calculated from the associated [LineItem.costPerUnit](https://developers.google.com/ad-manager/api/reference/v202511/ForecastService.LineItem#costPerUnit) values. |
| ### `appliedLabels` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.AppliedLabel[]` The set of labels applied directly to this order. |
| ### `effectiveAppliedLabels` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.AppliedLabel[]` Contains the set of labels applied directly to the order as well as those inherited from the company that owns the order. If a label has been negated, only the negated label is returned. This field is readonly and is assigned by Google. |
| ### `lastModifiedByApp` | ` xsd:string` The application which modified this order. This attribute is read only and is assigned by Google. |
| ### `isProgrammatic` | ` xsd:boolean` Specifies whether or not the `Order` is a programmatic order. This value is optional and defaults to false. |
| ### `appliedTeamIds` | ` xsd:long[]` The IDs of all teams that this order is on directly. |
| ### `lastModifiedDateTime` | ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.DateTime ` The date and time this order was last modified. |
| ### `customFieldValues` | 1. ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.BaseCustomFieldValue[]` 1. ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.CustomFieldValue ` 2. ` https://developers.google.com/ad-manager/api/reference/v202511/OrderService.DropDownCustomFieldValue ` <br /> The values of the custom fields associated with this order. |