enum ImageDensity (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Image densities.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
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 within CreativeService defines the ratio between raw image dimensions and display dimensions in device-independent pixels.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three specific ratios: 1:1 (\u003ccode\u003eONE_TO_ONE\u003c/code\u003e), 3:2 (\u003ccode\u003eTHREE_TO_TWO\u003c/code\u003e), and 2:1 (\u003ccode\u003eTWO_TO_ONE\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eUNKNOWN\u003c/code\u003e value is returned if the API version doesn't expose the actual value.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for this service is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content defines the `ImageDensity` enumeration within the `CreativeService` dependency, part of the Google Ad Manager API (v202408). It specifies image density ratios: `ONE_TO_ONE` (1:1), `THREE_TO_TWO` (3:2), and `TWO_TO_ONE` (2:1), representing the relationship between raw image dimensions and display dimensions in device-independent pixels. `UNKNOWN` is returned if the API version doesn't expose the actual value. The namespace is `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# enum ImageDensity (v202408)\n\n**Service** \n**CreativeService** **Dependencies** \n[CreativeAsset](/ad-manager/api/reference/v202408/CreativeService.CreativeAsset) \n▼\n**ImageDensity**\n\nImage densities.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\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. |"]]