type InventoryUnitSizesError (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
An error specifically for InventoryUnitSizes.
- 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.
|
InventoryUnitSizesError
|
reason
|
InventoryUnitSizesError.Reason
Enumerations
-
INVALID_SIZES
- A size in the ad unit is too large or too small.
-
INVALID_SIZE_FOR_PLATFORM
- A size is an aspect ratio, but the ad unit is not a mobile ad unit.
-
VIDEO_FEATURE_MISSING
- A size is video, but the video feature is not enabled.
-
VIDEO_MOBILE_LINE_ITEM_FEATURE_MISSING
- A size is video in a mobile ad unit,
but the mobile video feature is not enabled.
-
INVALID_SIZE_FOR_MASTER
- A size that has companions must have an environment of VIDEO_PLAYER.
-
INVALID_SIZE_FOR_COMPANION
- A size that is a companion must have an environment of BROWSER.
-
DUPLICATE_MASTER_SIZES
- Duplicate video master sizes are not allowed.
-
ASPECT_RATIO_NOT_SUPPORTED
- A size is an aspect ratio, but aspect ratio sizes are not enabled.
-
VIDEO_COMPANIONS_NOT_SUPPORTED
- A video size has companions, but companions are not allowed for the network
-
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\u003eInventoryUnitSizesError is an error type specifically related to the sizes of inventory units in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThis error can occur due to various reasons, including invalid size dimensions, unsupported aspect ratios, or missing features like video support.\u003c/p\u003e\n"],["\u003cp\u003eInventoryUnitSizesError provides detailed information about the error through its \u003ccode\u003ereason\u003c/code\u003e field, which specifies the cause of the error.\u003c/p\u003e\n"],["\u003cp\u003eThis error inherits from the \u003ccode\u003eApiError\u003c/code\u003e type, providing additional context and debugging information.\u003c/p\u003e\n"],["\u003cp\u003eThe error details can be accessed through fields like \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e to understand the context and cause of the error.\u003c/p\u003e\n"]]],["The document details error handling for `InventoryUnitSizes` within the `InventoryService`. It lists the `InventoryUnitSizesError` as a specific type of `ApiError`, inheriting its properties like `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`. The `InventoryUnitSizesError` has a `reason` field with various enumeration values indicating specific size-related issues, including `INVALID_SIZES`, `INVALID_SIZE_FOR_PLATFORM`, and `VIDEO_FEATURE_MISSING`, among others, thus providing specific reasons for errors that occur with inventory unit sizes.\n"],null,[]]