type DeviceCategoryTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents device categories that are being targeted or excluded by the LineItem.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
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\u003eDeviceCategoryTargeting allows you to target or exclude specific device categories in your line items.\u003c/p\u003e\n"],["\u003cp\u003eYou can include (\u003ccode\u003etargetedDeviceCategories\u003c/code\u003e) or exclude (\u003ccode\u003eexcludedDeviceCategories\u003c/code\u003e) device categories like mobile devices, operating systems, browsers and more.\u003c/p\u003e\n"],["\u003cp\u003eDeviceCategoryTargeting is used within various Google Ad Manager services to refine ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eIt leverages a namespace located at \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"]]],["DeviceCategoryTargeting allows targeting or excluding specific device categories for a LineItem. It utilizes services like AdRuleService and ForecastService. Key actions include defining `targetedDeviceCategories` and `excludedDeviceCategories`. These fields allow targeting/excluding based on technology, bandwidth, browser, device features, manufacturers, carriers, operating systems, and more. This targeting is achieved through a list of eleven distinct targeting criteria. The namespace for these operations is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type DeviceCategoryTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.DeviceCategoryTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.DeviceCategoryTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.DeviceCategoryTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.DeviceCategoryTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.DeviceCategoryTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.DeviceCategoryTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.DeviceCategoryTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.DeviceCategoryTargeting) **TargetingPresetService** [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.DeviceCategoryTargeting) **Dependencies** \n[TechnologyTargeting](/ad-manager/api/reference/v202411/TargetingPresetService.TechnologyTargeting) \n▼\n**DeviceCategoryTargeting**\n\nRepresents device categories that are being targeted or excluded by the [LineItem](/ad-manager/api/reference/v202411/ForecastService.LineItem).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `targetedDeviceCategories` | 1. ` `[Technology](/ad-manager/api/reference/v202411/TargetingPresetService.Technology)`[]` 1. ` `[BandwidthGroup](/ad-manager/api/reference/v202411/TargetingPresetService.BandwidthGroup)` ` 2. ` `[Browser](/ad-manager/api/reference/v202411/TargetingPresetService.Browser)` ` 3. ` `[BrowserLanguage](/ad-manager/api/reference/v202411/TargetingPresetService.BrowserLanguage)` ` 4. ` `[DeviceCapability](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceCapability)` ` 5. ` `[DeviceCategory](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceCategory)` ` 6. ` `[DeviceManufacturer](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceManufacturer)` ` 7. ` `[MobileCarrier](/ad-manager/api/reference/v202411/TargetingPresetService.MobileCarrier)` ` 8. ` `[MobileDevice](/ad-manager/api/reference/v202411/TargetingPresetService.MobileDevice)` ` 9. ` `[MobileDeviceSubmodel](/ad-manager/api/reference/v202411/TargetingPresetService.MobileDeviceSubmodel)` ` 10. ` `[OperatingSystem](/ad-manager/api/reference/v202411/TargetingPresetService.OperatingSystem)` ` 11. ` `[OperatingSystemVersion](/ad-manager/api/reference/v202411/TargetingPresetService.OperatingSystemVersion)` ` \u003cbr /\u003e Device categories that are being targeted by the [LineItem](/ad-manager/api/reference/v202411/ForecastService.LineItem). |\n| ### `excludedDeviceCategories` | 1. ` `[Technology](/ad-manager/api/reference/v202411/TargetingPresetService.Technology)`[]` 1. ` `[BandwidthGroup](/ad-manager/api/reference/v202411/TargetingPresetService.BandwidthGroup)` ` 2. ` `[Browser](/ad-manager/api/reference/v202411/TargetingPresetService.Browser)` ` 3. ` `[BrowserLanguage](/ad-manager/api/reference/v202411/TargetingPresetService.BrowserLanguage)` ` 4. ` `[DeviceCapability](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceCapability)` ` 5. ` `[DeviceCategory](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceCategory)` ` 6. ` `[DeviceManufacturer](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceManufacturer)` ` 7. ` `[MobileCarrier](/ad-manager/api/reference/v202411/TargetingPresetService.MobileCarrier)` ` 8. ` `[MobileDevice](/ad-manager/api/reference/v202411/TargetingPresetService.MobileDevice)` ` 9. ` `[MobileDeviceSubmodel](/ad-manager/api/reference/v202411/TargetingPresetService.MobileDeviceSubmodel)` ` 10. ` `[OperatingSystem](/ad-manager/api/reference/v202411/TargetingPresetService.OperatingSystem)` ` 11. ` `[OperatingSystemVersion](/ad-manager/api/reference/v202411/TargetingPresetService.OperatingSystemVersion)` ` \u003cbr /\u003e Device categories that are being excluded by the [LineItem](/ad-manager/api/reference/v202411/ForecastService.LineItem). |"]]