type DateTimeRangeTargeting (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
The date time ranges that the line item is eligible to serve.
- 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\u003eDateTimeRangeTargeting defines the specific date and time ranges when a line item is eligible for ad serving.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting utilizes DateTimeRange objects to specify the start and end points of these eligible periods.\u003c/p\u003e\n"],["\u003cp\u003eIt is used within ProposalService and related services for scheduling and controlling ad delivery.\u003c/p\u003e\n"],["\u003cp\u003eDateTimeRangeTargeting is part of the Google Ad Manager API and is defined within the specified namespace.\u003c/p\u003e\n"]]],["The content outlines the `DateTimeRangeTargeting` feature within a service namespace at `https://www.google.com/apis/ads/publisher/v202411`. It details that this feature, a dependency of `Targeting`, specifies the date and time ranges for which a line item is eligible to run. This feature can be used by multiple services, including `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. The core data structure is `targetedDateTimeRanges`, which is an array of `DateTimeRange` objects.\n"],null,["# type DateTimeRangeTargeting (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.DateTimeRangeTargeting) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.DateTimeRangeTargeting) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.DateTimeRangeTargeting) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.DateTimeRangeTargeting) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.DateTimeRangeTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.DateTimeRangeTargeting) **ProposalService** [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.DateTimeRangeTargeting) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.DateTimeRangeTargeting) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.DateTimeRangeTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202411/ProposalService.Targeting) \n▼\n**DateTimeRangeTargeting**\n\nThe date time ranges that the line item is eligible to serve.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|------------------------------|------------------------------------------------------------------------------------------------|\n| ### `targetedDateTimeRanges` | ` `[DateTimeRange](/ad-manager/api/reference/v202411/ProposalService.DateTimeRange)`[]` \u003cbr /\u003e |"]]