type RequiredSizeError (v202411)

  • The RequiredSizeError object signifies issues related to the dimensions of creatives or creative placeholders in Google Ad Manager.

  • It can occur when the size is missing, not allowed, or unknown based on the context of the service being used.

  • This error is relevant to various services like CreativeService, CreativeSetService, and others, impacting operations like creating or updating line items and creatives.

  • The reason field within the RequiredSizeError object provides specific details about the cause of the error, such as REQUIRED, NOT_ALLOWED, or UNKNOWN.

  • Developers should refer to the documentation for the respective service and the RequiredSizeError.Reason enumeration for troubleshooting and resolution guidance.

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.