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/v202408
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eUserDomainTargeting allows line items to target or exclude users based on the domains they visit.\u003c/p\u003e\n"],["\u003cp\u003eDomains or subdomains are used for targeting, with a maximum length of 67 characters per domain.\u003c/p\u003e\n"],["\u003cp\u003eTargeting can be set to include or exclude specific domains, with inclusion being the default behavior.\u003c/p\u003e\n"]]],["The core content describes `UserDomainTargeting`, which enables targeting or excluding users based on the domains they visit. This functionality is applicable to several services, including `AdRuleService`, `AdjustmentService`, `ForecastService`, and others, as well as the `TargetingPresetService`. Key information includes specifying a list of `domains` (maximum 67 characters each) and setting whether to target or exclude via the `targeted` boolean, which defaults to true. The relevant namespace for this is `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type UserDomainTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.UserDomainTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.UserDomainTargeting) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.UserDomainTargeting) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.UserDomainTargeting) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.UserDomainTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.UserDomainTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.UserDomainTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.UserDomainTargeting) **TargetingPresetService** [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.UserDomainTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/TargetingPresetService.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/v202408`\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/v202408/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`. |"]]