enum TimeUnit (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represent the possible time units for frequency capping.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
MINUTE
|
|
HOUR
|
|
DAY
|
|
WEEK
|
|
MONTH
|
|
LIFETIME
|
|
POD
|
Per pod of ads in a video stream. Only valid for entities in a
EnvironmentType.VIDEO_PLAYER environment.
|
STREAM
|
Per video stream. Only valid for entities in a
EnvironmentType.VIDEO_PLAYER environment.
|
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version.
|
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\u003eTimeUnit represents the various time units that can be used for setting frequency caps in advertising.\u003c/p\u003e\n"],["\u003cp\u003eThese units range from minutes to the entire lifetime and include options specific to video advertising like pods and streams.\u003c/p\u003e\n"],["\u003cp\u003eTimeUnit is defined within the namespace \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e and is used by services like ForecastService, InventoryService, LineItemService, and ProposalLineItemService.\u003c/p\u003e\n"],["\u003cp\u003eWhile most TimeUnit enumerations are self-explanatory, 'POD' and 'STREAM' are specifically designed for video advertising environments, representing frequency caps per ad pod or per video stream respectively.\u003c/p\u003e\n"]]],["The core content details the `TimeUnit` enumeration within the `ProposalLineItemService` of an advertising API. This defines time units for frequency capping. The available units include `MINUTE`, `HOUR`, `DAY`, `WEEK`, `MONTH`, and `LIFETIME`. Additionally, `POD` and `STREAM` are available specifically for `VIDEO_PLAYER` environments. `UNKNOWN` indicates an unsupported value in the current API version. This system is part of `ForecastService`, `InventoryService`, `LineItemService`.\n"],null,["# enum TimeUnit (v202411)\n\n**Service** \n[ForecastService](/ad-manager/api/reference/v202411/ForecastService.TimeUnit) [InventoryService](/ad-manager/api/reference/v202411/InventoryService.TimeUnit) [LineItemService](/ad-manager/api/reference/v202411/LineItemService.TimeUnit) **ProposalLineItemService** **Dependencies** \n[FrequencyCap](/ad-manager/api/reference/v202411/ProposalLineItemService.FrequencyCap) \n▼\n**TimeUnit**\n\nRepresent the possible time units for frequency capping.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `MINUTE` | |\n| `HOUR` | |\n| `DAY` | |\n| `WEEK` | |\n| `MONTH` | |\n| `LIFETIME` | |\n| `POD` | Per pod of ads in a video stream. Only valid for entities in a [EnvironmentType.VIDEO_PLAYER](/ad-manager/api/reference/v202411/ProposalLineItemService.EnvironmentType#VIDEO_PLAYER) environment. |\n| `STREAM` | Per video stream. Only valid for entities in a [EnvironmentType.VIDEO_PLAYER](/ad-manager/api/reference/v202411/ProposalLineItemService.EnvironmentType#VIDEO_PLAYER) environment. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]