type DateTimeRangeTargeting (v202408)
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/v202408
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 specifies the date and time ranges during which a line item is eligible to serve.\u003c/p\u003e\n"],["\u003cp\u003eIt is defined within the \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202408\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting utilizes an array of DateTimeRange objects to represent the specific periods for ad serving.\u003c/p\u003e\n"],["\u003cp\u003eDateTimeRangeTargeting is a dependency of services such as ForecastService, alongside other targeting options.\u003c/p\u003e\n"]]],["The core content outlines `DateTimeRangeTargeting`, a feature within various services like `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. It details the date and time ranges a line item can serve. `DateTimeRangeTargeting` is dependent on `Targeting`. The field `targetedDateTimeRanges` utilizes an array of `DateTimeRange` objects to define these specific time frames.\n"],null,["# type DateTimeRangeTargeting (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.DateTimeRangeTargeting) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.DateTimeRangeTargeting) **ForecastService** [LineItemService](/ad-manager/api/reference/v202408/LineItemService.DateTimeRangeTargeting) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.DateTimeRangeTargeting) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.DateTimeRangeTargeting) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.DateTimeRangeTargeting) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.DateTimeRangeTargeting) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.DateTimeRangeTargeting) [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.DateTimeRangeTargeting) **Dependencies** \n[Targeting](/ad-manager/api/reference/v202408/ForecastService.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/v202408`\n\n| Field ----- ||\n|------------------------------|------------------------------------------------------------------------------------------------|\n| ### `targetedDateTimeRanges` | ` `[DateTimeRange](/ad-manager/api/reference/v202408/ForecastService.DateTimeRange)`[]` \u003cbr /\u003e |"]]