Represents an account to which invoices are sent in [consolidated
billing](https://support.google.com/google-ads/answer/2375371).

### Methods:

| Member | Type | Description |
|---|---|---|
| [getId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount#getId) | `String` | Returns the ID of the billing account. |
| [getName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount#getName) | `String` | Returns the name of the billing account. |
| [getPrimaryBillingId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount#getPrimaryBillingId) | `String` | Returns the primary billing ID. |
| [getResourceName()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount#getResourceName) | `String` | Returns the resource name of the billing account. |
| [getSecondaryBillingId()](https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_billingaccount#getSecondaryBillingId) | `String` | Returns the secondary billing ID or `null` if there is no secondary billing account. |

## `getId()`

Returns the ID of the billing account.

### Return values:

| Type | Description |
|---|---|
| `String` | The ID of the billing account. |

## `getName()`

Returns the name of the billing account.

### Return values:

| Type | Description |
|---|---|
| `String` | Name of the billing account. |

## `getPrimaryBillingId()`

Returns the primary billing ID.

### Return values:

| Type | Description |
|---|---|
| `String` | The primary billing ID. |

## `getResourceName()`

Returns the resource name of the billing account.

### Return values:

| Type | Description |
|---|---|
| `String` | The resource name of the billing account. |

## `getSecondaryBillingId()`

Returns the secondary billing ID or `null` if there is no secondary billing account.

### Return values:

| Type | Description |
|---|---|
| `String` | The secondary billing ID or `null` if there is no secondary billing account. |