AI-generated Key Takeaways
-
The PlacementError class defines validation errors related to placements.
-
It inherits from ApiError and includes fields such as
fieldPath,trigger, anderrorString. -
Specific placement error reasons are provided as enumerations, including
INVALID_ENTITY_TYPE,SHARED_INVENTORY_ASSIGNED, and others. -
Placement errors can occur when assigning shared or local inventory in certain configurations.
Class defining all validation errors for a placement.
- 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
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.
PlacementError
reason
Enumerations
-
INVALID_ENTITY_TYPE - Entity type is something other than inventory or content.
-
SHARED_INVENTORY_ASSIGNED - Shared inventory cannot be assigned to a placement.
-
PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS - Shared inventory from one distributor network cannot be in the same placement with inventory from another distributor.
-
PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY - Shared inventory and local inventory cannot be in the same placement.
-
UNKNOWN - The value returned if the actual value is not exposed by the requested API version.

