enum CostType (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Describes the LineItem actions that are billable.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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\u003eCostType\u003c/code\u003e describes the billable actions associated with a LineItem within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eIt includes various cost types like CPA, CPC, CPD, CPM, VCPM, and CPM_IN_TARGET, each with specific requirements for LineItem types.\u003c/p\u003e\n"],["\u003cp\u003eCPA will become read-only starting February 22, 2024, due to Spotlight deprecation.\u003c/p\u003e\n"],["\u003cp\u003eEach cost type has limitations on the compatible LineItem types, as detailed in the table.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNKNOWN\u003c/code\u003e is returned if the actual \u003ccode\u003eCostType\u003c/code\u003e value is not supported by the API version being used.\u003c/p\u003e\n"]]],["The document details the `CostType` enumeration within the `LineItemService`, defining billable actions for line items in the ad manager API. It outlines six cost types: CPA (read-only after February 22, 2024), CPC, CPD, CPM, VCPM, and CPM_IN_TARGET. Each `CostType` is associated with specific `LineItemType` values, which specify the types of line items the cost model can apply to, such as sponsorship, standard, or bulk. The `UNKNOWN` type is for unexposed API values.\n"],null,["# enum CostType (v202411)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202411/ForecastService.CostType) **LineItemService** **Dependencies** \n[LineItemSummary](/ad-manager/api/reference/v202411/LineItemService.LineItemSummary) \n▼\n**CostType**\n\nDescribes the [LineItem](/ad-manager/api/reference/v202411/LineItemService.LineItem) actions that are billable.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CPA` | Starting February 22, 2024 the CPA [CostType](/ad-manager/api/reference/v202411/LineItemService.CostType) will be read only as part of Spotlight deprecation, [learn more](https://support.google.com/admanager/answer/7519021#spotlight). Cost per action. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be one of: - [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202411/LineItemService.LineItemType#SPONSORSHIP) - [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD) - [LineItemType.BULK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#BULK) - [LineItemType.NETWORK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#NETWORK) |\n| `CPC` | Cost per click. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be one of: - [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202411/LineItemService.LineItemType#SPONSORSHIP) - [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD) - [LineItemType.BULK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#BULK) - [LineItemType.NETWORK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#NETWORK) - [LineItemType.PRICE_PRIORITY](/ad-manager/api/reference/v202411/LineItemService.LineItemType#PRICE_PRIORITY) - [LineItemType.HOUSE](/ad-manager/api/reference/v202411/LineItemService.LineItemType#HOUSE) |\n| `CPD` | Cost per day. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be one of: - [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202411/LineItemService.LineItemType#SPONSORSHIP) - [LineItemType.NETWORK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#NETWORK) |\n| `CPM` | Cost per mille (cost per thousand impressions). The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be one of: - [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202411/LineItemService.LineItemType#SPONSORSHIP) - [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD) - [LineItemType.BULK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#BULK) - [LineItemType.NETWORK](/ad-manager/api/reference/v202411/LineItemService.LineItemType#NETWORK) - [LineItemType.PRICE_PRIORITY](/ad-manager/api/reference/v202411/LineItemService.LineItemType#PRICE_PRIORITY) - [LineItemType.HOUSE](/ad-manager/api/reference/v202411/LineItemService.LineItemType#HOUSE) |\n| `VCPM` | Cost per thousand Active View viewable impressions. The [LineItem.lineItemType](/ad-manager/api/reference/v202411/LineItemService.LineItem#lineItemType) must be [LineItemType.STANDARD](/ad-manager/api/reference/v202411/LineItemService.LineItemType#STANDARD). |\n| `CPM_IN_TARGET` | Cost per thousand in-target impressions. 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. |"]]