enum UnitType (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Indicates the type of unit used for defining a reservation. The
CostType 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.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
IMPRESSIONS
|
The number of impressions served by creatives associated with the line
item. Line items of all LineItemType support this UnitType .
|
CLICKS
|
The number of clicks reported by creatives associated with the line item.
The LineItem.lineItemType must be
LineItemType.STANDARD, LineItemType.BULK or
LineItemType.PRICE_PRIORITY.
|
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.costType must be CostType.CPA.
|
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.costType must be CostType.CPA.
|
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.costType must be CostType.CPA.
|
VIEWABLE_IMPRESSIONS
|
The number of viewable impressions reported by creatives associated with the line item.
The LineItem.lineItemType must be LineItemType.STANDARD.
|
IN_TARGET_IMPRESSIONS
|
The number of in-target impressions reported by third party measurements.
The LineItem.lineItemType must be LineItemType.STANDARD.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eUnitType\u003c/code\u003e indicates the unit used for defining a reservation, such as impressions, clicks, or conversions, which may differ from how the line item is billed (\u003ccode\u003eCostType\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIt is used by the \u003ccode\u003eForecastService\u003c/code\u003e, \u003ccode\u003eLineItemService\u003c/code\u003e, and \u003ccode\u003eProposalLineItemService\u003c/code\u003e in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUnitType\u003c/code\u003e can be impressions, clicks, various types of CPA conversions, viewable impressions, in-target impressions, or unknown.\u003c/p\u003e\n"],["\u003cp\u003eWhile most line item types support impression-based \u003ccode\u003eUnitType\u003c/code\u003e, certain types like clicks or viewable impressions require specific \u003ccode\u003eLineItemType\u003c/code\u003e settings.\u003c/p\u003e\n"],["\u003cp\u003eCPA-based \u003ccode\u003eUnitType\u003c/code\u003e is primarily used as a secondary goal and necessitates the line item's \u003ccode\u003ecostType\u003c/code\u003e to be CPA.\u003c/p\u003e\n"]]],["`UnitType` defines the unit for reservation, which may differ from `CostType`. Units include `IMPRESSIONS`, `CLICKS`, and various CPA conversion types (`CLICK_THROUGH_CPA_CONVERSIONS`, `VIEW_THROUGH_CPA_CONVERSIONS`, `TOTAL_CPA_CONVERSIONS`). Other units are `VIEWABLE_IMPRESSIONS` and `IN_TARGET_IMPRESSIONS`. CPA conversion types are secondary goals, requiring `CostType.CPA`. Certain `LineItemType` values are required for some units. `UNKNOWN` is returned if a value isn't accessible.\n"],null,["# enum UnitType (v202411)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202411/ForecastService.UnitType) **LineItemService** [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.UnitType) **Dependencies** \n[Goal](/ad-manager/api/reference/v202411/LineItemService.Goal) \n▼\n**UnitType**\n\nIndicates the type of unit used for defining a reservation. The\n[CostType](/ad-manager/api/reference/v202411/LineItemService.CostType) can differ from the [UnitType](/ad-manager/api/reference/v202411/LineItemService.UnitType) - an\nad can have an impression goal, but be billed by its click. Usually\n[CostType](/ad-manager/api/reference/v202411/LineItemService.CostType) and [UnitType](/ad-manager/api/reference/v202411/LineItemService.UnitType) will refer to the\nsame unit.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `IMPRESSIONS` | The number of impressions served by creatives associated with the line item. Line items of all [LineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItemType) support this `UnitType`. |\n| `CLICKS` | The number of clicks reported by creatives associated with the line item. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD), [LineItemType.BULK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#BULK) or [LineItemType.PRICE_PRIORITY](/ad-manager/api/reference/v202411/LineItemService.LineItemType#PRICE_PRIORITY). |\n| `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.costType](/ad-manager/api/reference/v202411/LineItemService.LineItem#costType) must be [CostType.CPA](/ad-manager/api/reference/v202411/LineItemService.CostType#CPA). |\n| `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.costType](/ad-manager/api/reference/v202411/LineItemService.LineItem#costType) must be [CostType.CPA](/ad-manager/api/reference/v202411/LineItemService.CostType#CPA). |\n| `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.costType](/ad-manager/api/reference/v202411/LineItemService.LineItem#costType) must be [CostType.CPA](/ad-manager/api/reference/v202411/LineItemService.CostType#CPA). |\n| `VIEWABLE_IMPRESSIONS` | The number of viewable impressions reported by creatives associated with the line item. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD). |\n| `IN_TARGET_IMPRESSIONS` | The number of in-target impressions reported by third party measurements. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD). |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]