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/v202408
Enumeration
Description
IMPRESSIONS
The number of impressions served by creatives associated with the line
item. Line items of all LineItemType support this UnitType.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eUnitType\u003c/code\u003e defines the unit used for reservation, such as impressions, clicks, or conversions, while \u003ccode\u003eCostType\u003c/code\u003e indicates how the ad is billed, and they may differ.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUnitType\u003c/code\u003e includes \u003ccode\u003eIMPRESSIONS\u003c/code\u003e, \u003ccode\u003eCLICKS\u003c/code\u003e, CPA conversions (\u003ccode\u003eCLICK_THROUGH_CPA_CONVERSIONS\u003c/code\u003e, \u003ccode\u003eVIEW_THROUGH_CPA_CONVERSIONS\u003c/code\u003e, \u003ccode\u003eTOTAL_CPA_CONVERSIONS\u003c/code\u003e), \u003ccode\u003eVIEWABLE_IMPRESSIONS\u003c/code\u003e, and \u003ccode\u003eIN_TARGET_IMPRESSIONS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eLine items of all types support \u003ccode\u003eIMPRESSIONS\u003c/code\u003e as a \u003ccode\u003eUnitType\u003c/code\u003e, while other types have specific requirements based on the \u003ccode\u003eLineItemType\u003c/code\u003e and \u003ccode\u003eCostType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCLICK_THROUGH_CPA_CONVERSIONS\u003c/code\u003e, \u003ccode\u003eVIEW_THROUGH_CPA_CONVERSIONS\u003c/code\u003e, and \u003ccode\u003eTOTAL_CPA_CONVERSIONS\u003c/code\u003e are only supported as secondary goals and require a \u003ccode\u003eCostType\u003c/code\u003e of \u003ccode\u003eCPA\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVIEWABLE_IMPRESSIONS\u003c/code\u003e and \u003ccode\u003eIN_TARGET_IMPRESSIONS\u003c/code\u003e are only supported for line items with a \u003ccode\u003eLineItemType\u003c/code\u003e of \u003ccode\u003eSTANDARD\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `ForecastService` utilizes `UnitType` to define reservation units, which may differ from `CostType`. Available `UnitType` enumerations include `IMPRESSIONS`, `CLICKS`, and various CPA conversion types: `CLICK_THROUGH_CPA_CONVERSIONS`, `VIEW_THROUGH_CPA_CONVERSIONS`, and `TOTAL_CPA_CONVERSIONS`. Additional types are `VIEWABLE_IMPRESSIONS` and `IN_TARGET_IMPRESSIONS`. Each unit type has specific requirements for the associated `LineItemType` and `CostType`. An `UNKNOWN` type is returned if the requested API version does not expose the actual value.\n"],null,["# enum UnitType (v202408)\n\n**Service** \n**ForecastService** [LineItemService](/ad-manager/api/reference/v202408/LineItemService.UnitType) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.UnitType) **Dependencies** \n[AlternativeUnitTypeForecast](/ad-manager/api/reference/v202408/ForecastService.AlternativeUnitTypeForecast) [AvailabilityForecast](/ad-manager/api/reference/v202408/ForecastService.AvailabilityForecast) [Goal](/ad-manager/api/reference/v202408/ForecastService.Goal) [LineItemDeliveryForecast](/ad-manager/api/reference/v202408/ForecastService.LineItemDeliveryForecast) \n▼\n**UnitType**\n\nIndicates the type of unit used for defining a reservation. The\n[CostType](/ad-manager/api/reference/v202408/ForecastService.CostType) can differ from the [UnitType](/ad-manager/api/reference/v202408/ForecastService.UnitType) - an\nad can have an impression goal, but be billed by its click. Usually\n[CostType](/ad-manager/api/reference/v202408/ForecastService.CostType) and [UnitType](/ad-manager/api/reference/v202408/ForecastService.UnitType) will refer to the\nsame unit.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\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/v202408/ForecastService.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/v202408/ForecastService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202408/ForecastService.LineItemType#STANDARD), [LineItemType.BULK](/ad-manager/api/reference/v202408/ForecastService.LineItemType#BULK) or [LineItemType.PRICE_PRIORITY](/ad-manager/api/reference/v202408/ForecastService.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/v202408/ForecastService.LineItem#costType) must be [CostType.CPA](/ad-manager/api/reference/v202408/ForecastService.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/v202408/ForecastService.LineItem#costType) must be [CostType.CPA](/ad-manager/api/reference/v202408/ForecastService.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/v202408/ForecastService.LineItem#costType) must be [CostType.CPA](/ad-manager/api/reference/v202408/ForecastService.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/v202408/ForecastService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202408/ForecastService.LineItemType#STANDARD). |\n| `IN_TARGET_IMPRESSIONS` | The number of in-target impressions reported by third party measurements. The [LineItem.lineItemType](/ad-manager/api/reference/v202408/ForecastService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202408/ForecastService.LineItemType#STANDARD). |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]