Represents a Google Ads budget order. Budget orders are used for managing client budgets at the account level.

Each budget order is associated with a billing account which can take
invoices for consolidated billing. For details about budget orders and
billing accounts, see [Billing](https://developers.google.com/google-ads/api/docs/billing/overview).

### Methods:

| Member | Type | Description |
|---|---|---|
| [getBillingAccount()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getBillingAccount) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount` | Returns the associated billing account. |
| [getEndDateTime()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getEndDateTime) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_googleadsdate` | Returns the budget order's end date or `null` if there is no end date. |
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getId) | `String` | Returns the ID of the budget order. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getName) | `String` | Returns the name of the budget order. |
| [getPoNumber()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getPoNumber) | `String` | Returns the purchase order number or `null` if there is no purchase order number. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getResourceName) | `String` | Returns the resource name of the budget order. |
| [getSpendingLimit()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getSpendingLimit) | `double` | Returns the effective [spending limit](https://developers.google.com/google-ads/api/reference/rpc/latest/AccountBudget#adjusted_spending_limit) in the account's currency, including all adjustments that have been applied to the budget order. |
| [getStartDateTime()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getStartDateTime) | `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_googleadsdate` | Returns the budget order's start date. |
| [getTotalAdjustments()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_budgetorder#getTotalAdjustments) | `double` | Returns the [total adjustments](https://developers.google.com/google-ads/api/reference/rpc/latest/AccountBudget#total_adjustments_micros) that have been applied to the spending limit, in the account's currency. |

## `getBillingAccount()`

Returns the associated billing account. Will be `null` if billing setup is still pending.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount` | The budget order's start date. |

## `getEndDateTime()`

Returns the budget order's end date or `null` if there is no end date.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_googleadsdate` | The budget order's end date or `null` if there is no end date. |

## `getId()`

Returns the ID of the budget order.

### Return values:

| Type | Description |
|---|---|
| `String` | The ID of the budget order. |

## `getName()`

Returns the name of the budget order.

### Return values:

| Type | Description |
|---|---|
| `String` | Name of the budget order. |

## `getPoNumber()`

Returns the purchase order number or `null` if there is no purchase order number.

### Return values:

| Type | Description |
|---|---|
| `String` | The purchase order number or `null` if there is no purchase order number. |

## `getResourceName()`

Returns the resource name of the budget order.

### Return values:

| Type | Description |
|---|---|
| `String` | The resource name of the budget order. |

## `getSpendingLimit()`

Returns the effective [spending
limit](https://developers.google.com/google-ads/api/reference/rpc/latest/AccountBudget#adjusted_spending_limit) in the account's currency, including all adjustments that have been applied to the budget order. `null` indicates no limits. [Code example](https://developers.google.com/google-ads/scripts/docs/examples/budget-orders).

### Return values:

| Type | Description |
|---|---|
| `double` | The effective spending limit or `null` if there is no limit. |

## `getStartDateTime()`

Returns the budget order's start date.

### Return values:

| Type | Description |
|---|---|
| `https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_googleadsdate` | The budget order's start date. |

## `getTotalAdjustments()`

Returns the [total
adjustments](https://developers.google.com/google-ads/api/reference/rpc/latest/AccountBudget#total_adjustments_micros) that have been applied to the spending limit, in the account's currency. To get the base spending limit, subtract this from the effective spending limit. `null` indicates no adjustments have been applied.

### Return values:

| Type | Description |
|---|---|
| `double` | The net sum of adjustments since the creation of the budget order. |