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 core content outlines the `ProgrammaticError.Reason` enumeration, detailing the restrictions and limitations for programmatic line items across various services. Key information includes unsupported features like audience extension, auto-extension days, video, and roadblocking. Programmatic line items are limited to specific creative rotations, line item types (STANDARD, SPONSORSHIP), and the CPM cost type. Size restrictions apply and only support creative size supported by AdX. Other prohibitions include zero cost per unit, modifying certain approved line items or their orders, and having a too low cost per unit.\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** [ProposalService](/ad-manager/api/reference/v202502/ProposalService.ProgrammaticError.Reason) **Dependencies** \n[ProgrammaticError](/ad-manager/api/reference/v202502/ProposalLineItemService.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/ProposalLineItemService.LineItemType#STANDARD) and [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202502/ProposalLineItemService.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. |"]]