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\u003e\u003ccode\u003eStartDateTimeType\u003c/code\u003e determines how an entity with a start date and time, such as a LineItem or LineItemCreativeAssociation, begins serving.\u003c/p\u003e\n"],["\u003cp\u003eIt offers options for immediate start, start at a specific date and time, start one hour from the current time, and an unknown state for values not exposed by the API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUSE_START_DATE_TIME\u003c/code\u003e utilizes the provided \u003ccode\u003estartDateTime\u003c/code\u003e value, while \u003ccode\u003eIMMEDIATELY\u003c/code\u003e and \u003ccode\u003eONE_HOUR_FROM_NOW\u003c/code\u003e disregard it and set their own start times.\u003c/p\u003e\n"],["\u003cp\u003eThese options provide flexibility in scheduling when entities like LineItems begin serving within the Ad Manager system.\u003c/p\u003e\n"]]],["The content defines the `StartDateTimeType` for entities with a start date, such as LineItem or LineItemCreativeAssociation. It outlines four possible enumeration values: `USE_START_DATE_TIME`, which utilizes the provided start time; `IMMEDIATELY`, which starts serving the entity instantly, ignoring the provided start time; `ONE_HOUR_FROM_NOW`, which sets the start time one hour in the future; and `UNKNOWN` for cases where the API version does not expose the value. This type is used across multiple services.\n"],null,["# enum StartDateTimeType (v202408)\n\n**Service** \n**AdRuleService** [ForecastService](/ad-manager/api/reference/v202408/ForecastService.StartDateTimeType) [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[AdRule](/ad-manager/api/reference/v202408/AdRuleService.AdRule) \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/AdRuleService.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/AdRuleService.StartDateTimeType#USE_START_DATE_TIME). |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]