Programmatic line items only support CostType.CPM.
SIZE_NOT_SUPPORTED
Programmatic line items only support a creative size that is supported by AdX.
The list of supported sizes is maintained based on the list published in the help docs:
https://support.google.com/adxseller/answer/1100453
ZERO_COST_PER_UNIT_NOT_SUPPORTED
Zero cost per unit is not supported by programmatic line items.
CANNOT_UPDATE_FIELD_FOR_APPROVED_LINE_ITEMS
Some fields cannot be updated on approved line items.
CANNOT_CREATE_LINE_ITEM_FOR_APPROVED_ORDER
Creating a new line item in an approved order is not allowed.
[[["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."],[],["The content outlines error reasons within the `ProgrammaticError.Reason` enumeration for various services, including Forecast, LineItem, and Proposal services. It details restrictions for programmatic line items, such as no support for audience extension, video, roadblocking, sequential creative rotation, and only allowing specific line item types (STANDARD, SPONSORSHIP) and the CPM cost type. Additionally, it lists errors related to unsupported sizes, zero cost per unit, updating fields or creating line items for approved items, and setting the cost per unit too low.\n"],null,["# enum ProgrammaticError.Reason (v202502)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202502/ForecastService.ProgrammaticError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.ProgrammaticError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.ProgrammaticError.Reason) [OrderService](/ad-manager/api/reference/v202502/OrderService.ProgrammaticError.Reason) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.ProgrammaticError.Reason) **ProposalService** **Dependencies** \n[ProgrammaticError](/ad-manager/api/reference/v202502/ProposalService.ProgrammaticError) \n▼\n**ProgrammaticError.Reason**\n\nPossible error reasons for a programmatic error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|---------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `AUDIENCE_EXTENSION_NOT_SUPPORTED` | Audience extension is not supported by programmatic line items. |\n| `AUTO_EXTENSION_DAYS_NOT_SUPPORTED` | Auto extension days is not supported by programmatic line items. |\n| `VIDEO_NOT_SUPPORTED` | Video is currently not supported. |\n| `ROADBLOCKING_NOT_SUPPORTED` | Roadblocking is not supported by programmatic line items. |\n| `INVALID_CREATIVE_ROTATION` | Programmatic line items do not support [CreativeRotationType.SEQUENTIAL](/ad-manager/api/reference/v202502/ForecastService.CreativeRotationType#SEQUENTIAL). |\n| `INVALID_LINE_ITEM_TYPE` | Programmatic line items only support [LineItemType.STANDARD](/ad-manager/api/reference/v202502/AdRuleService.LineItemType#STANDARD) and [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202502/AdRuleService.LineItemType#SPONSORSHIP) if the relevant feature is on. |\n| `INVALID_COST_TYPE` | Programmatic line items only support [CostType.CPM](/ad-manager/api/reference/v202502/ForecastService.CostType#CPM). |\n| `SIZE_NOT_SUPPORTED` | Programmatic line items only support a creative size that is supported by AdX. The list of supported sizes is maintained based on the list published in the help docs: \u003chttps://support.google.com/adxseller/answer/1100453\u003e |\n| `ZERO_COST_PER_UNIT_NOT_SUPPORTED` | Zero cost per unit is not supported by programmatic line items. |\n| `CANNOT_UPDATE_FIELD_FOR_APPROVED_LINE_ITEMS` | Some fields cannot be updated on approved line items. |\n| `CANNOT_CREATE_LINE_ITEM_FOR_APPROVED_ORDER` | Creating a new line item in an approved order is not allowed. |\n| `CANNOT_UPDATE_BACKFILL_WEB_PROPERTY_FOR_APPROVED_LINE_ITEMS` | Cannot change backfill web property for a programmatic line item whose order has been approved. |\n| `COST_PER_UNIT_TOO_LOW` | Cost per unit is too low. It has to be at least 0.005 USD. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]