type PlacementError (v202408)
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/v202408
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\u003eThe \u003ccode\u003ePlacementError\u003c/code\u003e class outlines validation errors specifically for placements in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eApiError\u003c/code\u003e, providing standard error properties like \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePlacementError\u003c/code\u003e introduces a \u003ccode\u003ereason\u003c/code\u003e field, an enumeration detailing specific placement validation issues, such as invalid entity types or shared inventory conflicts.\u003c/p\u003e\n"],["\u003cp\u003eThe provided namespace for this class is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `ContentBundleService` includes `PlacementService` and inherits from `ApiError`. It defines various error types, including `ApiVersionError`, `AuthenticationError`, `QuotaError`, and `PlacementError`, among others. The `ApiError` class contains fields like `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`. The `PlacementError` has a `reason` field with enumerations such as `INVALID_ENTITY_TYPE`, `SHARED_INVENTORY_ASSIGNED`, `UNKNOWN`, and others, detailing specific placement validation issues. The namespace for these services is `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type PlacementError (v202408)\n\n**Service** \n**ContentBundleService** [PlacementService](/ad-manager/api/reference/v202408/PlacementService.PlacementError) **Inheritance** \n[ApiError](/ad-manager/api/reference/v202408/ContentBundleService.ApiError) \n▼\n[ApiVersionError](/ad-manager/api/reference/v202408/ContentBundleService.ApiVersionError) [AuthenticationError](/ad-manager/api/reference/v202408/ContentBundleService.AuthenticationError) [CollectionSizeError](/ad-manager/api/reference/v202408/ContentBundleService.CollectionSizeError) [CommonError](/ad-manager/api/reference/v202408/ContentBundleService.CommonError) [ContentFilterError](/ad-manager/api/reference/v202408/ContentBundleService.ContentFilterError) [FeatureError](/ad-manager/api/reference/v202408/ContentBundleService.FeatureError) [InternalApiError](/ad-manager/api/reference/v202408/ContentBundleService.InternalApiError) [NotNullError](/ad-manager/api/reference/v202408/ContentBundleService.NotNullError) [ParseError](/ad-manager/api/reference/v202408/ContentBundleService.ParseError) [PermissionError](/ad-manager/api/reference/v202408/ContentBundleService.PermissionError) **PlacementError** [PublisherQueryLanguageConte...](/ad-manager/api/reference/v202408/ContentBundleService.PublisherQueryLanguageContextError \"PublisherQueryLanguageContextError\") [PublisherQueryLanguageSynta...](/ad-manager/api/reference/v202408/ContentBundleService.PublisherQueryLanguageSyntaxError \"PublisherQueryLanguageSyntaxError\") [QuotaError](/ad-manager/api/reference/v202408/ContentBundleService.QuotaError) [RequestError](/ad-manager/api/reference/v202408/ContentBundleService.RequestError) [RequiredCollectionError](/ad-manager/api/reference/v202408/ContentBundleService.RequiredCollectionError) [RequiredError](/ad-manager/api/reference/v202408/ContentBundleService.RequiredError) [ServerError](/ad-manager/api/reference/v202408/ContentBundleService.ServerError) [StatementError](/ad-manager/api/reference/v202408/ContentBundleService.StatementError) [StringFormatError](/ad-manager/api/reference/v202408/ContentBundleService.StringFormatError) [StringLengthError](/ad-manager/api/reference/v202408/ContentBundleService.StringLengthError) [UniqueError](/ad-manager/api/reference/v202408/ContentBundleService.UniqueError)\n\nClass defining all validation errors for a placement.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\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/v202408/ContentBundleService.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/v202408/ContentBundleService.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 |"]]