enum AdSenseSettings.AdType (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Specifies the type of ads that can be served through this AdUnit.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
TEXT
|
Allows text-only ads.
|
IMAGE
|
Allows image-only ads.
|
TEXT_AND_IMAGE
|
Allows both text and image ads.
|
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."],[],["The `InventoryService` uses `AdSenseSettings` to define ad types for an `AdUnit`. `AdSenseSettings.AdType` specifies allowed ad types, which can be `TEXT` (text-only), `IMAGE` (image-only), or `TEXT_AND_IMAGE` (both). These settings are found within the `https://www.google.com/apis/ads/publisher/v202502` namespace. These ad-types determine what kind of ads can be displayed in the `AdUnit` location.\n"],null,["# enum AdSenseSettings.AdType (v202502)\n\n**Service** \n**InventoryService** **Dependencies** \n[AdSenseSettings](/ad-manager/api/reference/v202502/InventoryService.AdSenseSettings) \n▼\n**AdSenseSettings.AdType**\n\nSpecifies the type of ads that can be served through this [AdUnit](/ad-manager/api/reference/v202502/InventoryService.AdUnit).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|------------------|---------------------------------|\n| `TEXT` | Allows text-only ads. |\n| `IMAGE` | Allows image-only ads. |\n| `TEXT_AND_IMAGE` | Allows both text and image ads. |"]]