enum StartDateTimeType (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Specifies the start type to use for an entity with a start date time field.
For example, a LineItem or LineItemCreativeAssociation.
- 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\u003eStartDateTimeType specifies how an entity with a start date and time field, such as a LineItem or LineItemCreativeAssociation, should begin its operation.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three main options: using a specific startDateTime, starting immediately, or starting one hour from the current time.\u003c/p\u003e\n"],["\u003cp\u003eWhen "immediately" or "one hour from now" is selected, the provided startDateTime is ignored and automatically set to the respective time, with startDateTimeType internally changed to USE_START_DATE_TIME.\u003c/p\u003e\n"],["\u003cp\u003eThe UNKNOWN value is returned if the requested API version doesn't expose the actual value.\u003c/p\u003e\n"]]],["The core content details the `StartDateTimeType` enumeration, which defines how an entity's start time is handled within the Ad Manager API. Entities like `LineItem` use this. Key actions include using a specified start date/time (`USE_START_DATE_TIME`), starting immediately (`IMMEDIATELY`), or starting one hour from the current time (`ONE_HOUR_FROM_NOW`). The enumeration also includes an `UNKNOWN` value for cases where the actual value is not accessible. The services involved are `AdRuleService`, `ForecastService`, `LineItemCreativeAssociationService`, `LineItemService`, and `LiveStreamEventService`.\n"],null,["# enum StartDateTimeType (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.StartDateTimeType) **ForecastService** [LineItemCreativeAssociationService](/ad-manager/api/reference/v202408/LineItemCreativeAssociationService.StartDateTimeType) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.StartDateTimeType) [LiveStreamEventService](/ad-manager/api/reference/v202408/LiveStreamEventService.StartDateTimeType) **Dependencies** \n[LineItemSummary](/ad-manager/api/reference/v202408/ForecastService.LineItemSummary) \n▼\n**StartDateTimeType**\n\nSpecifies the start type to use for an entity with a start date time field.\nFor example, a [LineItem](/ad-manager/api/reference/v202408/ForecastService.LineItem) or [LineItemCreativeAssociation](/ad-manager/api/reference/v202408/LineItemCreativeAssociationService.LineItemCreativeAssociation).\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Enumeration | Description |\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `USE_START_DATE_TIME` | Use the value in [startDateTime](#startDateTime). |\n| `IMMEDIATELY` | The entity will start serving immediately. [startDateTime](#startDateTime) in the request is ignored and will be set to the current time. Additionally, [startDateTimeType](#startDateTimeType) will be set to [StartDateTimeType.USE_START_DATE_TIME](/ad-manager/api/reference/v202408/ForecastService.StartDateTimeType#USE_START_DATE_TIME). |\n| `ONE_HOUR_FROM_NOW` | The entity will start serving one hour from now. [startDateTime](#startDateTime) in the request is ignored and will be set to one hour from the current time. Additionally, [startDateTimeType](#startDateTimeType) will be set to [StartDateTimeType.USE_START_DATE_TIME](/ad-manager/api/reference/v202408/ForecastService.StartDateTimeType#USE_START_DATE_TIME). |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]