type TimeOfDay (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents a specific time in a day.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
hour
|
xsd:int
Hour in 24 hour time (0..24). This field must be between 0 and 24,
inclusive. This field is required.
|
minute
|
MinuteOfHour
Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This
field is required.
Enumerations
-
ZERO
- Zero minutes past hour.
-
FIFTEEN
- Fifteen minutes past hour.
-
THIRTY
- Thirty minutes past hour.
-
FORTY_FIVE
- Forty-five minutes past hour.
|
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\u003eTimeOfDay objects represent specific times within a 24-hour day, specified by an hour and minute.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ehour\u003c/code\u003e field accepts values between 0 and 24, inclusive, and is mandatory for creating a TimeOfDay object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eminute\u003c/code\u003e field can only be set to 0, 15, 30, or 45, representing specific minute intervals within the hour, and is also required.\u003c/p\u003e\n"],["\u003cp\u003eTimeOfDay objects utilize a namespace from the Google Ad Manager API, version v202411.\u003c/p\u003e\n"]]],["The core content describes the `TimeOfDay` data structure used across various services like `AdRuleService`, `AdjustmentService`, `ForecastService`, and others. `TimeOfDay` represents a specific time, defined by two required fields: `hour` (0-24) and `minute`. The `minute` field only supports values: 0, 15, 30, or 45, which are specified by the `MinuteOfHour` enumeration options `ZERO`, `FIFTEEN`, `THIRTY`, and `FORTY_FIVE`. The namespace for these services is `https://www.google.com/apis/ads/publisher/v202411`.\n"],null,["# type TimeOfDay (v202411)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202411/AdRuleService.TimeOfDay) [AdjustmentService](/ad-manager/api/reference/v202411/AdjustmentService.TimeOfDay) [ForecastService](/ad-manager/api/reference/v202411/ForecastService.TimeOfDay) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.TimeOfDay) **NativeStyleService** [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.TimeOfDay) [ProposalService](/ad-manager/api/reference/v202411/ProposalService.TimeOfDay) [PublisherQueryLanguageService](/ad-manager/api/reference/v202411/PublisherQueryLanguageService.TimeOfDay) [TargetingPresetService](/ad-manager/api/reference/v202411/TargetingPresetService.TimeOfDay) [YieldGroupService](/ad-manager/api/reference/v202411/YieldGroupService.TimeOfDay) **Dependencies** \n[DayPart](/ad-manager/api/reference/v202411/NativeStyleService.DayPart) \n▼\n**TimeOfDay**\n\nRepresents a specific time in a day.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Field ----- ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `hour` | ` `xsd:`int` Hour in 24 hour time (0..24). This field must be between 0 and 24, inclusive. This field is required. |\n| ### `minute` | ` `[MinuteOfHour](/ad-manager/api/reference/v202411/NativeStyleService.MinuteOfHour)` ` Minutes in an hour. Currently, only 0, 15, 30, and 45 are supported. This field is required. *** ** * ** *** **Enumerations** `ZERO` : Zero minutes past hour. `FIFTEEN` : Fifteen minutes past hour. `THIRTY` : Thirty minutes past hour. `FORTY_FIVE` : Forty-five minutes past hour. \u003cbr /\u003e |"]]