type PlacementError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
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
|
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.
|
PlacementError
|
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.
|
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."],[[["\u003cp\u003ePlacementError is a class used for defining validation errors that can occur when working with placements in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from ApiError, providing access to general error information like field path, trigger, and error string.\u003c/p\u003e\n"],["\u003cp\u003ePlacementError includes a specific "reason" field to indicate the cause of the validation error, like using shared inventory with local inventory in the same placement.\u003c/p\u003e\n"],["\u003cp\u003ePossible reasons for PlacementError are outlined in the PlacementError.Reason enumeration with detailed explanations.\u003c/p\u003e\n"],["\u003cp\u003eThis information is crucial for developers to understand and handle potential errors during placement management through the Ad Manager API.\u003c/p\u003e\n"]]],["The core content outlines the `PlacementError` class within the `PlacementService`, detailing its structure and validation rules. `PlacementError` inherits from `ApiError` and includes fields like `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`. It defines specific error reasons such as `INVALID_ENTITY_TYPE`, `SHARED_INVENTORY_ASSIGNED`, `PLACEMENTS_CANNOT_INCLUDE_INVENTORY_FROM_MULTIPLE_DISTRIBUTOR_NETWORKS`, `PLACEMENTS_CANNOT_INCLUDE_BOTH_LOCAL_AND_SHARED_INVENTORY` and `UNKNOWN`. Other potential errors are also available, like `ApiVersionError`, `AuthenticationError` and `InternalApiError`. It is part of the ContentBundleService.\n"],null,["# type PlacementError (v202411)\n\n**Service** \n[ContentBundleService](/ad-manager/api/reference/v202411/ContentBundleService.PlacementError) **PlacementService** **Inheritance** \n[ApiError](/ad-manager/api/reference/v202411/PlacementService.ApiError) \n▼\n[ApiVersionError](/ad-manager/api/reference/v202411/PlacementService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202411/PlacementService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202411/PlacementService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202411/PlacementService.CommonError) [EntityChildrenLimitReachedE...](/ad-manager/api/reference/v202411/PlacementService.EntityChildrenLimitReachedError \"EntityChildrenLimitReachedError\") [EntityLimitReachedError](/ad-manager/api/reference/v202411/PlacementService.EntityLimitReachedError) [FeatureError](/ad-manager/api/reference/v202411/PlacementService.FeatureError) [InternalApiError](/ad-manager/api/reference/v202411/PlacementService.InternalApiError) [NotNullError](/ad-manager/api/reference/v202411/PlacementService.NotNullError) [NullError](/ad-manager/api/reference/v202411/PlacementService.NullError) [ParseError](/ad-manager/api/reference/v202411/PlacementService.ParseError) [PermissionError](/ad-manager/api/reference/v202411/PlacementService.PermissionError) **PlacementError** [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202411/PlacementService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202411/PlacementService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202411/PlacementService.QuotaError) [RangeError](/ad-manager/api/reference/v202411/PlacementService.RangeError) [RegExError](/ad-manager/api/reference/v202411/PlacementService.RegExError) [RequiredCollectionError](/ad-manager/api/reference/v202411/PlacementService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202411/PlacementService.RequiredError) [ServerError](/ad-manager/api/reference/v202411/PlacementService.ServerError) [StatementError](/ad-manager/api/reference/v202411/PlacementService.StatementError) [StringFormatError](/ad-manager/api/reference/v202411/PlacementService.StringFormatError) [StringLengthError](/ad-manager/api/reference/v202411/PlacementService.StringLengthError) [TypeError](/ad-manager/api/reference/v202411/PlacementService.TypeError) [UniqueError](/ad-manager/api/reference/v202411/PlacementService.UniqueError)\n\nClass defining all validation errors for a placement.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **`ApiError` (inherited)** ||\n| ### `fieldPath` | ` `xsd:`string` The OGNL field path to identify cause of error. |\n| ### `fieldPathElements` | ` `[FieldPathElement](/ad-manager/api/reference/v202411/PlacementService.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)}. |\n| ### `trigger` | ` `xsd:`string` The data that caused the error. |\n| ### `errorString` | ` `xsd:`string` A simple string representation of the error and reason. |\n| **`PlacementError`** ||\n| ### `reason` | ` `[PlacementError.Reason](/ad-manager/api/reference/v202411/PlacementService.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. \u003cbr /\u003e |"]]