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 specifies the eligible date and time ranges for a line item to serve.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes DateTimeRange to define these periods.\u003c/p\u003e\n"],["\u003cp\u003eThis targeting feature is relevant to various services in Ad Manager, such as AdRuleService, AdjustmentService, and others listed.\u003c/p\u003e\n"],["\u003cp\u003eDateTimeRangeTargeting is defined within the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etargetedDateTimeRanges\u003c/code\u003e field contains an array of DateTimeRange objects to represent the specific time frames.\u003c/p\u003e\n"]]],["The content outlines services related to ad management, including AdRule, Adjustment, Forecast, LineItem, NativeStyle, ProposalLineItem, Proposal, PublisherQueryLanguage, TargetingPreset, and YieldGroup services. It focuses on the `DateTimeRangeTargeting`, which specifies the timeframes when a line item can serve. This targeting depends on a list of `DateTimeRange` objects, defined in the Forecast service, within the `targetedDateTimeRanges` field, under the given namespace.\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** [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](/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/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/v202411`\n\n| Field ----- ||\n|------------------------------|------------------------------------------------------------------------------------------------|\n| ### `targetedDateTimeRanges` | ` `[DateTimeRange](/ad-manager/api/reference/v202411/ForecastService.DateTimeRange)`[]` \u003cbr /\u003e |"]]