type DateTimeRange (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
- 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\u003eThis page provides documentation for the \u003ccode\u003eDateTimeRange\u003c/code\u003e object used in Google Ad Manager's API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDateTimeRange\u003c/code\u003e specifies a start and end time using the \u003ccode\u003estartDateTime\u003c/code\u003e and \u003ccode\u003eendDateTime\u003c/code\u003e fields respectively.\u003c/p\u003e\n"],["\u003cp\u003eThese fields utilize the \u003ccode\u003eDateTime\u003c/code\u003e object for their values, defining the temporal boundaries of the range within Ad Manager services like AdRuleService, AdjustmentService, etc.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDateTimeRange\u003c/code\u003e object is a crucial component of \u003ccode\u003eDateTimeRangeTargeting\u003c/code\u003e within the \u003ccode\u003eYieldGroupService\u003c/code\u003e, enabling the scheduling and targeting of ad delivery.\u003c/p\u003e\n"]]],["The document outlines several services related to ad management, including `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. These services utilize a `DateTimeRange` dependency, which defines a time period. `DateTimeRange` has two fields: `startDateTime` and `endDateTime`, both referencing the `DateTime` type. The namespace for these definitions is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type DateTimeRange (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.DateTimeRange) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.DateTimeRange) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.DateTimeRange) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.DateTimeRange) [NativeStyleService](/ad-manager/api/reference/v202411/NativeStyleService.DateTimeRange) [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.DateTimeRange) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.DateTimeRange) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.DateTimeRange) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.DateTimeRange) **YieldGroupService** **Dependencies** \n[DateTimeRangeTargeting](/ad-manager/api/reference/v202411/YieldGroupService.DateTimeRangeTargeting) \n▼\n**DateTimeRange**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|---------------------|---------------------------------------------------------------------------------------|\n| ### `startDateTime` | ` `[DateTime](/ad-manager/api/reference/v202411/YieldGroupService.DateTime)` ` \u003cbr /\u003e |\n| ### `endDateTime` | ` `[DateTime](/ad-manager/api/reference/v202411/YieldGroupService.DateTime)` ` \u003cbr /\u003e |"]]