enum ImageDensity (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Image densities.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
ONE_TO_ONE
|
Indicates that there is a 1:1 ratio between the dimensions of the raw image and the dimensions
that it should be displayed at in device-independent pixels.
|
THREE_TO_TWO
|
Indicates that there is a 3:2 ratio between the dimensions of the raw image and the dimensions
that it should be displayed at in device-independent pixels.
|
TWO_TO_ONE
|
Indicates that there is a 2:1 ratio between the dimensions of the raw image and the dimensions
that it should be displayed at in device-independent pixels.
|
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\u003eImageDensity, under CreativeService, defines the ratio between an image's raw dimensions and its display dimensions in device-independent pixels.\u003c/p\u003e\n"],["\u003cp\u003eIt includes enumerations like ONE_TO_ONE, THREE_TO_TWO, and TWO_TO_ONE representing different image density ratios.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for ImageDensity is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNKNOWN\u003c/code\u003e enumeration is used when the actual value is not exposed by the requested API version.\u003c/p\u003e\n"]]],["The core content describes `ImageDensity` within the `CreativeService`'s `CreativeAsset` dependency, specifically in the `v202411` API version. It defines different image density ratios for display, including `ONE_TO_ONE` (1:1), `THREE_TO_TWO` (3:2), and `TWO_TO_ONE` (2:1), specifying the relationship between raw image dimensions and display dimensions in device-independent pixels. An `UNKNOWN` value is provided for cases where the actual ratio is unavailable in the requested API version.\n"],null,["# enum ImageDensity (v202411)\n\n**Service** \n**CreativeService** **Dependencies** \n[CreativeAsset](/ad-manager/api/reference/v202411/CreativeService.CreativeAsset) \n▼\n**ImageDensity**\n\nImage densities.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `ONE_TO_ONE` | Indicates that there is a 1:1 ratio between the dimensions of the raw image and the dimensions that it should be displayed at in device-independent pixels. |\n| `THREE_TO_TWO` | Indicates that there is a 3:2 ratio between the dimensions of the raw image and the dimensions that it should be displayed at in device-independent pixels. |\n| `TWO_TO_ONE` | Indicates that there is a 2:1 ratio between the dimensions of the raw image and the dimensions that it should be displayed at in device-independent pixels. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]