type LineItemError (v202508)
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
      
         
         
         
         A catch-all error that lists all generic errors associated with LineItem.
         
         
            - Namespace
- 
               https://www.google.com/apis/ads/publisher/v202508
               
                  
                     | Field | 
               
               
                  
                     | ApiError(inherited) | 
                  
                     | 
                           fieldPath | 
                           
                              xsd:string The OGNL field path to identify cause of error.
 | 
                  
                     | 
                           fieldPathElements | 
                           
                              FieldPathElement[] A parsed copy of the field path. For example, the field path "operations[1].operand"
                corresponds to this list: {FieldPathElement(field = "operations", index = 1),
                FieldPathElement(field = "operand", index = null)}.
 | 
                  
                     | 
                           trigger | 
                           
                              xsd:string The data that caused the error.
 | 
                  
                     | 
                           errorString | 
                           
                              xsd:string A simple string representation of the error and reason.
 | 
                  
                     | LineItemError | 
                  
                     | 
                           reason | 
                           
                              LineItemError.Reason
                            The error reason represented by an enum.
 Enumerations
 
                              
                                 ALREADY_STARTEDSome changes may not be allowed because a line item has already started.
                                 UPDATE_RESERVATION_NOT_ALLOWEDUpdate reservation is not allowed because a line item has
                already started, users must pause the line item first.
                                 ALL_ROADBLOCK_NOT_ALLOWEDRoadblocking to display all creatives is not allowed.
                                 ALL_COMPANION_DELIVERY_NOT_ALLOWEDCompanion delivery to display all creatives is not allowed.
                                 CREATIVE_SET_ROADBLOCK_NOT_ALLOWEDRoadblocking to display all master and companion creative set is not allowed.
                                 FRACTIONAL_PERCENTAGE_NOT_ALLOWEDFractional percentage is not allowed.
                                 DISCOUNT_NOT_ALLOWEDFor certain LineItem configurations discounts are not allowed.
                                 UPDATE_CANCELED_LINE_ITEM_NOT_ALLOWEDUpdating a canceled line item is not allowed.
                                 UPDATE_PENDING_APPROVAL_LINE_ITEM_NOT_ALLOWEDUpdating a pending approval line item is not allowed.
                                 UPDATE_ARCHIVED_LINE_ITEM_NOT_ALLOWEDUpdating an archived line item is not allowed.
                                 CREATE_OR_UPDATE_LEGACY_DFP_LINE_ITEM_TYPE_NOT_ALLOWEDCreate or update legacy dfp line item type is not allowed.
                                 COPY_LINE_ITEM_FROM_DIFFERENT_COMPANY_NOT_ALLOWEDCopying line item from different company (advertiser)
                to the same order is not allowed.
                                 INVALID_SIZE_FOR_PLATFORMThe size is invalid for the specified platform.
                                 INVALID_LINE_ITEM_TYPE_FOR_PLATFORMThe line item type is invalid for the specified platform.
                                 INVALID_WEB_PROPERTY_FOR_PLATFORMThe web property cannot be served on the specified platform.
                                 INVALID_WEB_PROPERTY_FOR_ENVIRONMENTThe web property cannot be served on the specified environment.
                                 AFMA_BACKFILL_NOT_ALLOWEDAFMA backfill not supported.
                                 UPDATE_ENVIRONMENT_TYPE_NOT_ALLOWEDEnvironment type cannot change once saved.
                                 COMPANIONS_NOT_ALLOWEDThe placeholders are invalid because they contain companions,
                but the line item does not support companions.
                                 ROADBLOCKS_WITH_NONROADBLOCKS_NOT_ALLOWEDThe placeholders are invalid because some of them are roadblocks,
                and some are not.  Either all roadblock placeholders must contain
                companions, or no placeholders may contain companions.  This does
                not apply to video creative sets.
                                 CANNOT_UPDATE_TO_OR_FROM_CREATIVE_SET_ROADBLOCKA line item cannot be updated from having
                RoadblockingType.CREATIVE_SET to having a different
                RoadblockingType, or vice versa.
                                 PLACEHOLDER_COUNT_NOT_SUPPORTEDThe placeholders are invalid because they contain a creative count of more than 1 but the
                environment does not support this or the line item has repeated creative serving enabled.
                                 UPDATE_FROM_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWEDCan not change from a backfill line item type once creatives have been
                assigned.
                                 UPDATE_TO_BACKFILL_LINE_ITEM_TYPE_NOT_ALLOWEDCan not change to a backfill line item type once creatives have been
                assigned.
                                 UPDATE_BACKFILL_WEB_PROPERTY_NOT_ALLOWEDCan not change to backfill web property once creatives have been
                assigned.
                                 INVALID_COMPANION_DELIVERY_OPTION_FOR_ENVIRONMENT_TYPEThe companion delivery option is not valid for your environment type.
                                 COMPANION_BACKFILL_REQUIRES_VIDEOCompanion backfill is enabled but environment type not video.
                                 COMPANION_DELIVERY_OPTION_REQUIRE_PREMIUMCompanion delivery options require Ad Manager 360 networks.
                                 DUPLICATE_MASTER_SIZESThe master size of placeholders have duplicates.
                                 INVALID_PRIORITY_FOR_LINE_ITEM_TYPEThe line item priority is invalid if for dynamic allocation line items
                it is different than the default for free publishers.  When allowed,
                Ad Manager 360 users can change the priority to any value.
                                 INVALID_ENVIRONMENT_TYPEThe environment type is not valid.
                                 INVALID_ENVIRONMENT_TYPE_FOR_PLATFORMThe environment type is not valid for the target platform.
                                 INVALID_TYPE_FOR_AUTO_EXTENSIONOnly LineItemType.STANDARD line items can be auto extended.
                                 VIDEO_INVALID_ROADBLOCKINGVideo line items cannot change the roadblocking type.
                                 BACKFILL_TYPE_NOT_ALLOWEDThe backfill feature is not enabled according to your features.
                                 INVALID_BACKFILL_LINK_TYPEThe web property is invalid. A line item must have an appropriate web property selected.
                                 DIFFERENT_BACKFILL_ACCOUNTAll line items in a programmatic order must have web property codes from the same account.
                                 COMPANION_DELIVERY_OPTIONS_NOT_ALLOWED_WITH_BACKFILLCompanion delivery options are not allowed with dynamic allocation line
                items.
                                 INVALID_WEB_PROPERTY_FOR_ADX_BACKFILLDynamic allocation using the AdExchange should always use an AFC web
                property.
                                 INVALID_COST_PER_UNIT_FOR_BACKFILLCPM for backfill inventory must be 0.
                                 INVALID_SIZE_FOR_ENVIRONMENTAspect ratio sizes cannot be used with video line items.
                                 TARGET_PLATFORM_NOT_ALLOWEDThe specified target platform is not allowed.
                                 INVALID_LINE_ITEM_CURRENCYCurrency on a line item must be one of the specified network currencies.
                                 LINE_ITEM_CANNOT_HAVE_MULTIPLE_CURRENCIESAll money fields on a line item must specify the same currency.
                                 CANNOT_CHANGE_CURRENCYOnce a line item has moved into a a delivering state the currency cannot be changed.
                                 INVALID_LINE_ITEM_DATE_TIMEA DateTime associated with the line item is not valid.
                                 INVALID_COST_PER_UNIT_FOR_CPACPA line items must specify a zero cost for the
                LineItem.costPerUnit.
                                 UPDATE_CPA_COST_TYPE_NOT_ALLOWEDOnce a LineItem is activated its LineItem.costPerUnit cannot be updated
                to/from CPA.
                                 UPDATE_VCPM_COST_TYPE_NOT_ALLOWEDOnce a LineItem is activated its LineItem.costPerUnit cannot be updated
                to/from Viewable CPM.
                                 MASTER_COMPANION_LINE_ITEM_CANNOT_HAVE_VCPM_COST_TYPEA LineItem with master/companion creative placeholders cannot have Viewable CPM
                as its LineItem.costPerUnit.
                                 DUPLICATED_UNIT_TYPEThere cannot be goals with duplicated unit type among the secondary goals for a
                line items.
                                 MULTIPLE_GOAL_TYPE_NOT_ALLOWEDThe secondary goals of a line items must have the same goal type.
                                 INVALID_UNIT_TYPE_COMBINATION_FOR_SECONDARY_GOALSFor a CPA line item, the possible combinations for secondary goals must
                be either click-through conversion only, click-through conversion with view-through
                conversion or total conversion only. For a Viewable CPM line item or a
                CPM based Sponsorship line item, its secondary goal has to be
                impression-based.
                                 INVALID_CREATIVE_TARGETING_NAMEOne or more of the targeting names specified by a creative placeholder or line item
                creative association were not found on the line item.
                                 INVALID_CREATIVE_CUSTOM_TARGETING_MATCH_TYPECreative targeting expressions on the line item can only have custom criteria targeting
                with CustomTargetingValue.MatchType.EXACT.
                                 INVALID_CREATIVE_ROTATION_TYPE_WITH_CREATIVE_TARGETINGLine item with creative targeting expressions cannot have creative rotation type set to
                CreativeRotationType.SEQUENTIAL.
                                 CANNOT_OVERBOOK_WITH_CREATIVE_TARGETINGLine items cannot overbook inventory when applying creative-level targeting if the
                originating proposal line item did not overbook inventory. Remove creative-level targeting
                and try again.
                                 PLACEHOLDERS_DO_NOT_MATCH_PROPOSALFor a managed line item, inventory sizes must match sizes that are set on the originating
                proposal line item. In the case that a size is broken out by creative-level targeting,
                the sum of the creative counts for each size must equal the expected creative count that
                is set for that size on the originating proposal line item.
                                 UNSUPPORTED_LINE_ITEM_TYPE_FOR_THIS_API_VERSIONThe line item type is not supported for this API version.
                                 NATIVE_CREATIVE_TEMPLATE_REQUIREDPlaceholders can only have native creative templates.
                                 CANNOT_HAVE_CREATIVE_TEMPLATENon-native placeholders cannot have creative templates.
                                 CANNOT_INCLUDE_NATIVE_CREATIVE_TEMPLATECannot include native creative templates in the placeholders for Ad Exchange line items.
                                 CANNOT_INCLUDE_NATIVE_PLACEHOLDER_WITHOUT_TEMPLATE_IDCannot include native placeholders without native creative templates for direct-sold line
                items.
                                 NO_SIZE_WITH_DURATIONFor forecasting only, error when line item has duration, but no creative sizes specified.
                                 INVALID_VIEWABILITY_PROVIDER_COMPANYUsed when the company pointed to by the viewabilityProviderCompanyId is not of type
                VIEWABILITY_PROVIDER.
                                 CANNOT_ACCESS_CUSTOM_PACING_CURVE_CLOUD_STORAGE_BUCKETAn error occurred while accessing the custom pacing curve Google Cloud Storage bucket.
                                 CMS_METADATA_LINE_ITEM_ENVIRONMENT_TYPE_NOT_SUPPORTEDCMS Metadata targeting is only supported for video line items.
                                 SKIPPABLE_AD_TYPE_NOT_ALLOWEDThe SkippableAdTypeis not allowed.
                                 CUSTOM_PACING_CURVE_START_TIME_MUST_MATCH_LINE_ITEM_START_TIMECustom pacing curve start time must match the line item's start time.
                                 CUSTOM_PACING_CURVE_START_TIME_PAST_LINE_ITEM_END_TIMECustom pacing curve goal start time must be before line item end time.
                                 INVALID_LINE_ITEM_TYPE_FOR_DELIVERY_FORECAST_SOURCEThe line item type is invalid for the specified delivery forecast source.
                                 INVALID_TOTAL_CUSTOM_PACING_GOAL_AMOUNTSThe sum of the custom pacing goal amounts is invalid.
                                 COPY_LINE_ITEM_WITH_CUSTOM_PACING_CURVE_FULLY_IN_PAST_NOT_ALLOWEDCopying line items with custom pacing curves that are totally in the past is not allowed.
                                 LAST_CUSTOM_PACING_GOAL_AMOUNT_CANNOT_BE_ZEROThe last custom pacing goal cannot be zero.
                                 GRP_PACED_LINE_ITEM_CANNOT_HAVE_ABSOLUTE_CUSTOM_PACING_CURVE_GOALSGRP paced line items cannot have absolute custom pacing curve goals.
                                 INVALID_MAX_VIDEO_CREATIVE_DURATION
                                 line item has invalid video creative duration.
                                 INVALID_NATIVE_SIZENative size types must by 1x1.
                                 INVALID_TARGETED_REQUEST_PLATFORM_FOR_WEB_PROPERTY_CODEFor AdExchange Line Items, the targeted request platform must match the syndication type of
                the web property code.
                                 REPEATED_CREATIVE_SERVING_NOT_ALLOWEDThe line item is not allowed to enable repeated creative serving.
                                 UNKNOWNThe 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-13 UTC.
  
  
  
    
      [null,null,["Last updated 2025-08-13 UTC."],[],[]]