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 refers to the device categories, like mobile devices or desktops, that are either targeted or excluded by a LineItem.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting feature allows advertisers to refine the audience for their ads based on the devices users are using.\u003c/p\u003e\n"],["\u003cp\u003eDeviceCategoryTargeting includes two main fields: \u003ccode\u003etargetedDeviceCategories\u003c/code\u003e and \u003ccode\u003eexcludedDeviceCategories\u003c/code\u003e to specify which categories to include or exclude, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe device categories are represented by various technologies like bandwidth groups, browsers, operating systems, and device capabilities.\u003c/p\u003e\n"]]],["DeviceCategoryTargeting specifies device categories for ad targeting or exclusion within the LineItem service. It is used across several services, including AdRuleService, ForecastService, and LineItemService. Key actions involve defining `targetedDeviceCategories` and `excludedDeviceCategories`. These categories encompass various technological aspects, such as bandwidth groups, browsers, device manufacturers, operating systems, and mobile carriers. Each of these fields allows targeting or excluding a list of device criteria.\n"],null,["# type DeviceCategoryTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.DeviceCategoryTargeting) **AdjustmentService** [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](/ad-manager/api/reference/v202411/TargetingPresetService.DeviceCategoryTargeting) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.DeviceCategoryTargeting) **Dependencies** \n[TechnologyTargeting](/ad-manager/api/reference/v202411/AdjustmentService.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/AdjustmentService.Technology)`[]` 1. ` `[BandwidthGroup](/ad-manager/api/reference/v202411/AdjustmentService.BandwidthGroup)` ` 2. ` `[Browser](/ad-manager/api/reference/v202411/AdjustmentService.Browser)` ` 3. ` `[BrowserLanguage](/ad-manager/api/reference/v202411/AdjustmentService.BrowserLanguage)` ` 4. ` `[DeviceCapability](/ad-manager/api/reference/v202411/AdjustmentService.DeviceCapability)` ` 5. ` `[DeviceCategory](/ad-manager/api/reference/v202411/AdjustmentService.DeviceCategory)` ` 6. ` `[DeviceManufacturer](/ad-manager/api/reference/v202411/AdjustmentService.DeviceManufacturer)` ` 7. ` `[MobileCarrier](/ad-manager/api/reference/v202411/AdjustmentService.MobileCarrier)` ` 8. ` `[MobileDevice](/ad-manager/api/reference/v202411/AdjustmentService.MobileDevice)` ` 9. ` `[MobileDeviceSubmodel](/ad-manager/api/reference/v202411/AdjustmentService.MobileDeviceSubmodel)` ` 10. ` `[OperatingSystem](/ad-manager/api/reference/v202411/AdjustmentService.OperatingSystem)` ` 11. ` `[OperatingSystemVersion](/ad-manager/api/reference/v202411/AdjustmentService.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/AdjustmentService.Technology)`[]` 1. ` `[BandwidthGroup](/ad-manager/api/reference/v202411/AdjustmentService.BandwidthGroup)` ` 2. ` `[Browser](/ad-manager/api/reference/v202411/AdjustmentService.Browser)` ` 3. ` `[BrowserLanguage](/ad-manager/api/reference/v202411/AdjustmentService.BrowserLanguage)` ` 4. ` `[DeviceCapability](/ad-manager/api/reference/v202411/AdjustmentService.DeviceCapability)` ` 5. ` `[DeviceCategory](/ad-manager/api/reference/v202411/AdjustmentService.DeviceCategory)` ` 6. ` `[DeviceManufacturer](/ad-manager/api/reference/v202411/AdjustmentService.DeviceManufacturer)` ` 7. ` `[MobileCarrier](/ad-manager/api/reference/v202411/AdjustmentService.MobileCarrier)` ` 8. ` `[MobileDevice](/ad-manager/api/reference/v202411/AdjustmentService.MobileDevice)` ` 9. ` `[MobileDeviceSubmodel](/ad-manager/api/reference/v202411/AdjustmentService.MobileDeviceSubmodel)` ` 10. ` `[OperatingSystem](/ad-manager/api/reference/v202411/AdjustmentService.OperatingSystem)` ` 11. ` `[OperatingSystemVersion](/ad-manager/api/reference/v202411/AdjustmentService.OperatingSystemVersion)` ` \u003cbr /\u003e Device categories that are being excluded by the [LineItem](/ad-manager/api/reference/v202411/ForecastService.LineItem). |"]]