0.17.0 (latest) 0.16.0 0.15.1 0.14.1 0.8.0 0.7.0 0.6.2 0.5.0 0.4.1 0.3.1 0.2.0 0.1.3 Reference documentation and code samples for the Google Ads Ad Manager V1 Client class UnitType.

Indicates the type of unit used for defining a reservation. The
[LineItem.costType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getCostType__) can differ
from the UnitType - an ad can have an impression goal, but be billed by its
click. Usually CostType and UnitType will refer to the same unit.

Protobuf type `google.ads.admanager.v1.UnitTypeEnum.UnitType`

## Namespace

Google \\ Ads \\ AdManager \\ V1 \\ UnitTypeEnum

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### UNIT_TYPE_UNSPECIFIED

```php
Value: 0
```
Default value. This value is unused.

Generated from protobuf enum `UNIT_TYPE_UNSPECIFIED = 0;`

### IMPRESSIONS

```php
Value: 1
```
The number of impressions served by creatives associated with the line
item.

Generated from protobuf enum `IMPRESSIONS = 1;`

### CLICKS

```php
Value: 2
```
The number of clicks reported by creatives associated with the line item.

The line item
[lineItemType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getLineItemType__) must be
one of:

- [LineItemTypeEnum.LineItemType.STANDARD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItemTypeEnum.LineItemType.md.txt#_Google_Ads_AdManager_V1_LineItemTypeEnum_LineItemType__STANDARD)
- [LineItemTypeEnum.LineItemType.BULK](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItemTypeEnum.LineItemType.md.txt#_Google_Ads_AdManager_V1_LineItemTypeEnum_LineItemType__BULK)
- [LineItemTypeEnum.LineItemType.PRICE_PRIORITY](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItemTypeEnum.LineItemType.md.txt#_Google_Ads_AdManager_V1_LineItemTypeEnum_LineItemType__PRICE_PRIORITY)

Generated from protobuf enum `CLICKS = 2;`

### CLICK_THROUGH_CPA_CONVERSIONS

```php
Value: 3
```
The number of click-through Cost-Per-Action (CPA) conversions from
creatives associated with the line item. This is only supported as
secondary goal and the
[LineItem.costType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getCostType__) must be
CostTypeEnum.CostType.CPA.

Generated from protobuf enum `CLICK_THROUGH_CPA_CONVERSIONS = 3;`

### VIEW_THROUGH_CPA_CONVERSIONS

```php
Value: 4
```
The number of view-through Cost-Per-Action (CPA) conversions from
creatives associated with the line item. This is only supported as
secondary goal and the
[LineItem.costType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getCostType__) must be
CostTypeEnum.CostType.CPA.

Generated from protobuf enum `VIEW_THROUGH_CPA_CONVERSIONS = 4;`

### TOTAL_CPA_CONVERSIONS

```php
Value: 5
```
The number of total Cost-Per-Action (CPA) conversions from creatives
associated with the line item. This is only supported as secondary goal
and the [LineItem.costType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getCostType__)
must be CostTypeEnum.CostType.CPA.

Generated from protobuf enum `TOTAL_CPA_CONVERSIONS = 5;`

### VIEWABLE_IMPRESSIONS

```php
Value: 6
```
The number of viewable impressions reported by creatives associated with
the line item. The
[LineItem.lineItemType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getLineItemType__)
must be
[LineItemTypeEnum.LineItemType.STANDARD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItemTypeEnum.LineItemType.md.txt#_Google_Ads_AdManager_V1_LineItemTypeEnum_LineItemType__STANDARD).

Generated from protobuf enum `VIEWABLE_IMPRESSIONS = 6;`

### IN_TARGET_IMPRESSIONS

```php
Value: 7
```
The number of in-target impressions reported by third party measurements.

The
[LineItem.lineItemType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getLineItemType__)
must be
[LineItemTypeEnum.LineItemType.STANDARD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItemTypeEnum.LineItemType.md.txt#_Google_Ads_AdManager_V1_LineItemTypeEnum_LineItemType__STANDARD).

Generated from protobuf enum `IN_TARGET_IMPRESSIONS = 7;`

### COMPLETED_VIEWS

```php
Value: 8
```
The number of completed views reported by creatives associated with the
line item. A completed view is defined as having watched the entirety of
the in-stream video ad and is only supported for standard reservation
video line items. The
[LineItem.lineItemType](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItem.md.txt#_Google_Ads_AdManager_V1_LineItem__getLineItemType__)
must be
[LineItemTypeEnum.LineItemType.STANDARD](https://docs.cloud.google.com/php/docs/reference/ad-manager/latest/V1.LineItemTypeEnum.LineItemType.md.txt#_Google_Ads_AdManager_V1_LineItemTypeEnum_LineItemType__STANDARD).

Generated from protobuf enum `COMPLETED_VIEWS = 8;`