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 during which a line item is eligible to serve ads.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes DateTimeRange objects to specify these periods, allowing for flexible scheduling and delivery control.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is applicable to various services within Google Ad Manager, including AdRuleService, AdjustmentService, and NativeStyleService.\u003c/p\u003e\n"],["\u003cp\u003eDateTimeRangeTargeting is an essential component of \u003ccode\u003eTargeting\u003c/code\u003e within the NativeStyleService, enabling precise ad delivery based on temporal criteria.\u003c/p\u003e\n"]]],["The core content outlines `DateTimeRangeTargeting`, which specifies the time ranges a line item can serve. It's utilized by various services including AdRuleService, AdjustmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. `DateTimeRangeTargeting` depends on `Targeting`, and it uses the `targetedDateTimeRanges` field, containing an array of `DateTimeRange` objects, to define these time ranges. It is part of the namespace: `https://www.google.com/apis/ads/publisher/v202411`.\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** [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.DateTimeRangeTargeting) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.DateTimeRangeTargeting) [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/NativeStyleService.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/NativeStyleService.DateTimeRange)`[]` \u003cbr /\u003e |"]]