# Enum UnitTypeEnum.UnitType (0.52.0)

0.52.0 (latest) 0.50.0 0.47.0 0.46.0 0.44.0 0.42.0 0.41.0 0.40.0 0.39.0 0.37.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.29.0 0.27.0 0.26.0 0.23.0 0.22.0 0.21.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public enum UnitTypeEnum.UnitType extends Enum<UnitTypeEnum.UnitType> implements ProtocolMessageEnum

Indicates the type of unit used for defining a reservation. The
\[LineItem.cost_type\]\[\] 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 enum `google.ads.admanager.v1.UnitTypeEnum.UnitType`

## Implements

[ProtocolMessageEnum](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ProtocolMessageEnum.html)

## Inherited Members

[Enum.\<T\>valueOf(Class\<T\>,String)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-) [Enum.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--) [Enum.compareTo(E)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-) [Enum.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-) [Enum.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--) [Enum.getDeclaringClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--) [Enum.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--) [Enum.name()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--) [Enum.ordinal()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--) [Enum.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

| ## Static Fields ||
|---|---|
| **Name** | **Description** |
| `CLICKS` | The number of clicks reported by creatives associated with the line item. The line item type must be one of: - LineItemTypeEnum.LineItemType.STANDARD - LineItemTypeEnum.LineItemType.BULK - LineItemTypeEnum.LineItemType.PRICE_PRIORITY `CLICKS = 2;` |
| `CLICKS_VALUE` | The number of clicks reported by creatives associated with the line item. The line item type must be one of: - LineItemTypeEnum.LineItemType.STANDARD - LineItemTypeEnum.LineItemType.BULK - LineItemTypeEnum.LineItemType.PRICE_PRIORITY `CLICKS = 2;` |
| `CLICK_THROUGH_CPA_CONVERSIONS` | 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.cost_type\]\[\] must be \[CostTypeEnum.CostType.CPA\]\[\]. `CLICK_THROUGH_CPA_CONVERSIONS = 3;` |
| `CLICK_THROUGH_CPA_CONVERSIONS_VALUE` | 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.cost_type\]\[\] must be \[CostTypeEnum.CostType.CPA\]\[\]. `CLICK_THROUGH_CPA_CONVERSIONS = 3;` |
| `COMPLETED_VIEWS` | 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.line_item_type must be LineItemTypeEnum.LineItemType.STANDARD. `COMPLETED_VIEWS = 8;` |
| `COMPLETED_VIEWS_VALUE` | 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.line_item_type must be LineItemTypeEnum.LineItemType.STANDARD. `COMPLETED_VIEWS = 8;` |
| `IMPRESSIONS` | The number of impressions served by creatives associated with the line item. `IMPRESSIONS = 1;` |
| `IMPRESSIONS_VALUE` | The number of impressions served by creatives associated with the line item. `IMPRESSIONS = 1;` |
| `IN_TARGET_IMPRESSIONS` | The number of in-target impressions reported by third party measurements. The LineItem.line_item_type must be LineItemTypeEnum.LineItemType.STANDARD. `IN_TARGET_IMPRESSIONS = 7;` |
| `IN_TARGET_IMPRESSIONS_VALUE` | The number of in-target impressions reported by third party measurements. The LineItem.line_item_type must be LineItemTypeEnum.LineItemType.STANDARD. `IN_TARGET_IMPRESSIONS = 7;` |
| `TOTAL_CPA_CONVERSIONS` | 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.cost_type} must be \[CostTypeEnum.CostType.CPA}. `TOTAL_CPA_CONVERSIONS = 5;` |
| `TOTAL_CPA_CONVERSIONS_VALUE` | 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.cost_type} must be \[CostTypeEnum.CostType.CPA}. `TOTAL_CPA_CONVERSIONS = 5;` |
| `UNIT_TYPE_UNSPECIFIED` | Default value. This value is unused. `UNIT_TYPE_UNSPECIFIED = 0;` |
| `UNIT_TYPE_UNSPECIFIED_VALUE` | Default value. This value is unused. `UNIT_TYPE_UNSPECIFIED = 0;` |
| `UNRECOGNIZED` |   |
| `VIEWABLE_IMPRESSIONS` | The number of viewable impressions reported by creatives associated with the line item. The LineItem.line_item_type must be LineItemTypeEnum.LineItemType.STANDARD. `VIEWABLE_IMPRESSIONS = 6;` |
| `VIEWABLE_IMPRESSIONS_VALUE` | The number of viewable impressions reported by creatives associated with the line item. The LineItem.line_item_type must be LineItemTypeEnum.LineItemType.STANDARD. `VIEWABLE_IMPRESSIONS = 6;` |
| `VIEW_THROUGH_CPA_CONVERSIONS` | 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.cost_type\]\[\] must be \[CostTypeEnum.CostType.CPA}. `VIEW_THROUGH_CPA_CONVERSIONS = 4;` |
| `VIEW_THROUGH_CPA_CONVERSIONS_VALUE` | 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.cost_type\]\[\] must be \[CostTypeEnum.CostType.CPA}. `VIEW_THROUGH_CPA_CONVERSIONS = 4;` |

| ## Static Methods ||
|---|---|
| **Name** | **Description** |
| `forNumber(int value)` |   |
| `getDescriptor()` |   |
| `internalGetValueMap()` |   |
| `valueOf(Descriptors.EnumValueDescriptor desc)` |   |
| `valueOf(int value)` | **Deprecated.** *Use [#forNumber(int)](https://docs.cloud.google.com/java/docs/reference/ad-manager/latest/com.google.ads.admanager.v1.UnitTypeEnum.UnitType#com_google_ads_admanager_v1_UnitTypeEnum_UnitType_forNumber_int_) instead.* |
| `valueOf(String name)` |   |
| `values()` |   |

| ## Methods ||
|---|---|
| **Name** | **Description** |
| `getDescriptorForType()` |   |
| `getNumber()` |   |
| `getValueDescriptor()` |   |