# type UserDomainTargeting (v202602)

**Service** **AdRuleService** [AdjustmentService](https://developers.google.com/ad-manager/api/reference/v202602/AdjustmentService.UserDomainTargeting) [ForecastService](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.UserDomainTargeting) [LineItemService](https://developers.google.com/ad-manager/api/reference/v202602/LineItemService.UserDomainTargeting) [NativeStyleService](https://developers.google.com/ad-manager/api/reference/v202602/NativeStyleService.UserDomainTargeting) [ProposalLineItemService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalLineItemService.UserDomainTargeting) [ProposalService](https://developers.google.com/ad-manager/api/reference/v202602/ProposalService.UserDomainTargeting) [PublisherQueryLanguageService](https://developers.google.com/ad-manager/api/reference/v202602/PublisherQueryLanguageService.UserDomainTargeting) [TargetingPresetService](https://developers.google.com/ad-manager/api/reference/v202602/TargetingPresetService.UserDomainTargeting) [YieldGroupService](https://developers.google.com/ad-manager/api/reference/v202602/YieldGroupService.UserDomainTargeting) **Dependencies** [Targeting](https://developers.google.com/ad-manager/api/reference/v202602/AdRuleService.Targeting) ▼ **UserDomainTargeting**

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/v202602`

| ## Field ||
|---|---|
| ### `domains` | ` xsd:string[]` The domains or subdomains that are being targeted or excluded by the [LineItem](https://developers.google.com/ad-manager/api/reference/v202602/ForecastService.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`. |