type DateTimeRange (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
- 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\u003eDateTimeRange specifies a timeframe using start and end DateTime values within the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eIt's used within various services like AdRuleService, AdjustmentService, and YieldGroupService for scheduling and targeting purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe DateTimeRange object has two fields: startDateTime and endDateTime, both represented as DateTime objects.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize DateTimeRange to define periods for ad rules, adjustments, forecasts, line items, and more within their Ad Manager workflows.\u003c/p\u003e\n"]]],["The core content outlines several services, including AdRuleService, AdjustmentService, ForecastService, LineItemService, NativeStyleService, ProposalLineItemService, ProposalService, PublisherQueryLanguageService, TargetingPresetService, and YieldGroupService. These services utilize `DateTimeRange`, which is defined with a namespace (`https://www.google.com/apis/ads/publisher/v202408`) and has two fields: `startDateTime` and `endDateTime`. Each of these fields uses the `DateTime` type, according to the context. `DateTimeRangeTargeting` depends on `DateTimeRange`.\n"],null,["# type DateTimeRange (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.DateTimeRange) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.DateTimeRange) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.DateTimeRange) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.DateTimeRange) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.DateTimeRange) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.DateTimeRange) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.DateTimeRange) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.DateTimeRange) [TargetingPresetService](/ad-manager/api/reference/v202408/TargetingPresetService.DateTimeRange) **YieldGroupService** **Dependencies** \n[DateTimeRangeTargeting](/ad-manager/api/reference/v202408/YieldGroupService.DateTimeRangeTargeting) \n▼\n**DateTimeRange**\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Field ----- ||\n|---------------------|---------------------------------------------------------------------------------------|\n| ### `startDateTime` | ` `[DateTime](/ad-manager/api/reference/v202408/YieldGroupService.DateTime)` ` \u003cbr /\u003e |\n| ### `endDateTime` | ` `[DateTime](/ad-manager/api/reference/v202408/YieldGroupService.DateTime)` ` \u003cbr /\u003e |"]]