type RequiredSizeError (v202411)

  • The LineItemTemplateService.RequiredSizeError object signifies an error related to the dimensions of ad creatives or creative placeholders.

  • It commonly arises when required size information is missing, or when specified sizes for a Line Item Creative Association are not within the allowed range defined by the Line Item's creative placeholders.

  • LineItemTemplateService.RequiredSizeError inherits from ApiError providing a framework for understanding the error context.

  • Specific reasons for this error are indicated by the reason field, which can be REQUIRED, NOT_ALLOWED, or UNKNOWN.

  • This error is relevant to services like CreativeService, CreativeSetService, ForecastService, LineItemCreativeAssociationService, LineItemService, LineItemTemplateService, NativeStyleService, OrderService, and PublisherQueryLanguageService.

A list of all errors to be used for validating Size.


Namespace
https://www.google.com/apis/ads/publisher/v202411

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.

RequiredSizeError

reason

RequiredSizeError.Reason


Enumerations
REQUIRED
Creative.size or LineItem.creativePlaceholders size is missing.
NOT_ALLOWED
LineItemCreativeAssociation.sizes must be a subset of LineItem.creativePlaceholders sizes.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.