type UserDomainTargeting (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
Provides line items the ability to target or exclude users visiting their websites from a list of
domains or subdomains.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Field
|
domains
|
xsd:string[]
The domains or subdomains that are being targeted or excluded by the LineItem. This
attribute is required and the maximum length of each domain is 67 characters.
|
targeted
|
xsd:boolean
Indicates whether domains should be targeted or excluded. This attribute is optional and
defaults to true .
|
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 content details `UserDomainTargeting`, which allows line items to target or exclude users based on website domains or subdomains. Key actions include defining a list of `domains` (up to 67 characters each) for targeting and specifying whether the domains should be `targeted` (included) or excluded. The `domains` field is mandatory. The `targeted` field is optional. It defaults to `true`, if not specified. This feature is a dependency for several services.\n"],null,["# type UserDomainTargeting (v202502)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202502/AdRuleService.UserDomainTargeting) [AdjustmentService](/ad-manager/api/reference/v202502/AdjustmentService.UserDomainTargeting) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.UserDomainTargeting) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.UserDomainTargeting) [NativeStyleService](/ad-manager/api/reference/v202502/NativeStyleService.UserDomainTargeting) **ProposalLineItemService** [ProposalService](/ad-manager/api/reference/v202502/ProposalService.UserDomainTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202502/PublisherQueryLanguageService.UserDomainTargeting) [TargetingPresetService](/ad-manager/api/reference/v202502/TargetingPresetService.UserDomainTargeting) [YieldGroupService](/ad-manager/api/reference/v202502/YieldGroupService.UserDomainTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202502/ProposalLineItemService.Targeting) \n▼\n**UserDomainTargeting**\n\nProvides line items the ability to target or exclude users visiting their websites from a list of\ndomains or subdomains.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Field ----- ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `domains` | ` `xsd:`string[]` The domains or subdomains that are being targeted or excluded by the [LineItem](/ad-manager/api/reference/v202502/ForecastService.LineItem). This attribute is required and the maximum length of each domain is 67 characters. |\n| ### `targeted` | ` `xsd:`boolean` Indicates whether domains should be targeted or excluded. This attribute is optional and defaults to `true`. |"]]