enum ProgrammaticError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Possible error reasons for a programmatic error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
AUDIENCE_EXTENSION_NOT_SUPPORTED
|
Audience extension is not supported by programmatic line items.
|
AUTO_EXTENSION_DAYS_NOT_SUPPORTED
|
Auto extension days is not supported by programmatic line items.
|
VIDEO_NOT_SUPPORTED
|
Video is currently not supported.
|
ROADBLOCKING_NOT_SUPPORTED
|
Roadblocking is not supported by programmatic line items.
|
INVALID_CREATIVE_ROTATION
|
Programmatic line items do not support CreativeRotationType.SEQUENTIAL.
|
INVALID_LINE_ITEM_TYPE
|
Programmatic line items only support LineItemType.STANDARD and
LineItemType.SPONSORSHIP if the relevant feature is on.
|
INVALID_COST_TYPE
|
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.
|
CANNOT_UPDATE_BACKFILL_WEB_PROPERTY_FOR_APPROVED_LINE_ITEMS
|
Cannot change backfill web property for a programmatic line item whose order has been
approved.
|
COST_PER_UNIT_TOO_LOW
|
Cost per unit is too low. It has to be at least 0.005 USD.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
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."],[],["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. |"]]