type TimeOfDay (v202408)
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/v202408
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\u003eThe \u003ccode\u003eTimeOfDay\u003c/code\u003e object in Google Ad Manager represents a specific time of day, using hour and minute fields.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTimeOfDay\u003c/code\u003e is used within various services like AdRuleService, AdjustmentService, and TargetingPresetService.\u003c/p\u003e\n"],["\u003cp\u003eHour values range from 0 to 24, and minute values are limited to 0, 15, 30, and 45, represented by enumerations like \u003ccode\u003eZERO\u003c/code\u003e, \u003ccode\u003eFIFTEEN\u003c/code\u003e, \u003ccode\u003eTHIRTY\u003c/code\u003e, and \u003ccode\u003eFORTY_FIVE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003ehour\u003c/code\u003e and \u003ccode\u003eminute\u003c/code\u003e are required fields for defining a \u003ccode\u003eTimeOfDay\u003c/code\u003e instance.\u003c/p\u003e\n"]]],["The content defines `TimeOfDay`, a data structure representing a specific time. It's used by multiple services: `AdRuleService`, `AdjustmentService`, `ForecastService`, `LineItemService`, `NativeStyleService`, `ProposalLineItemService`, `ProposalService`, `PublisherQueryLanguageService`, `TargetingPresetService`, and `YieldGroupService`. `TimeOfDay` includes `hour` (0-24) and `minute`, supporting only 0, 15, 30, or 45. The namespace is `https://www.google.com/apis/ads/publisher/v202408`.\n"],null,["# type TimeOfDay (v202408)\n\n**Service** \n[AdRuleService](/ad-manager/api/reference/v202408/AdRuleService.TimeOfDay) [AdjustmentService](/ad-manager/api/reference/v202408/AdjustmentService.TimeOfDay) [ForecastService](/ad-manager/api/reference/v202408/ForecastService.TimeOfDay) [LineItemService](/ad-manager/api/reference/v202408/LineItemService.TimeOfDay) [NativeStyleService](/ad-manager/api/reference/v202408/NativeStyleService.TimeOfDay) [ProposalLineItemService](/ad-manager/api/reference/v202408/ProposalLineItemService.TimeOfDay) [ProposalService](/ad-manager/api/reference/v202408/ProposalService.TimeOfDay) [PublisherQueryLanguageService](/ad-manager/api/reference/v202408/PublisherQueryLanguageService.TimeOfDay) **TargetingPresetService** [YieldGroupService](/ad-manager/api/reference/v202408/YieldGroupService.TimeOfDay) **Dependencies** \n[DayPart](/ad-manager/api/reference/v202408/TargetingPresetService.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/v202408`\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/v202408/TargetingPresetService.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 |"]]