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 the `ProgrammaticError.Reason` enumeration within the ad manager API, specifying possible errors for programmatic line items. Key restrictions include the lack of support for audience extension, auto-extension days, video, and roadblocking. Only `STANDARD` and `SPONSORSHIP` line item types, and `CPM` cost types, are allowed. Certain creative rotations and sizes are restricted, zero cost per unit is not supported, and some updates on approved line items/orders are prohibited. It contains a list of error reasons.\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** [OrderService](/ad-manager/api/reference/v202502/OrderService.ProgrammaticError.Reason) [ProposalLineItemService](/ad-manager/api/reference/v202502/ProposalLineItemService.ProgrammaticError.Reason) [ProposalService](/ad-manager/api/reference/v202502/ProposalService.ProgrammaticError.Reason) **Dependencies** \n[ProgrammaticError](/ad-manager/api/reference/v202502/LineItemTemplateService.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/LineItemTemplateService.CreativeRotationType#SEQUENTIAL). |\n| `INVALID_LINE_ITEM_TYPE` | Programmatic line items only support [LineItemType.STANDARD](/ad-manager/api/reference/v202502/LineItemTemplateService.LineItemType#STANDARD) and [LineItemType.SPONSORSHIP](/ad-manager/api/reference/v202502/LineItemTemplateService.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. |"]]