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\u003eThe \u003ccode\u003eTimeUnit\u003c/code\u003e enumeration defines the possible time units used for frequency capping within the Google Ad Manager API.\u003c/p\u003e\n"],["\u003cp\u003eAvailable time units include \u003ccode\u003eMINUTE\u003c/code\u003e, \u003ccode\u003eHOUR\u003c/code\u003e, \u003ccode\u003eDAY\u003c/code\u003e, \u003ccode\u003eWEEK\u003c/code\u003e, \u003ccode\u003eMONTH\u003c/code\u003e, \u003ccode\u003eLIFETIME\u003c/code\u003e, \u003ccode\u003ePOD\u003c/code\u003e, and \u003ccode\u003eSTREAM\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePOD\u003c/code\u003e and \u003ccode\u003eSTREAM\u003c/code\u003e time units are specific to video environments, designated by \u003ccode\u003eEnvironmentType.VIDEO_PLAYER\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUNKNOWN\u003c/code\u003e value is returned when the API version does not expose the actual time unit value.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTimeUnit\u003c/code\u003e feature appears within multiple services such as \u003ccode\u003eForecastService\u003c/code\u003e, \u003ccode\u003eInventoryService\u003c/code\u003e, \u003ccode\u003eLineItemService\u003c/code\u003e, and \u003ccode\u003eProposalLineItemService\u003c/code\u003e.\u003c/p\u003e\n"]]],["The content defines the `TimeUnit` enumeration within the ad management API, which specifies time units for frequency capping. It includes `MINUTE`, `HOUR`, `DAY`, `WEEK`, `MONTH`, and `LIFETIME`. Specific video stream units `POD` and `STREAM` are also listed, valid only in a `VIDEO_PLAYER` environment. An `UNKNOWN` value is returned if the value isn't in the current API version. This information appears to be used in the `LineItemService` and is found in the `v202411` version.\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** [ProposalLineItemService](/ad-manager/api/reference/v202411/ProposalLineItemService.TimeUnit) **Dependencies** \n[FrequencyCap](/ad-manager/api/reference/v202411/LineItemService.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/LineItemService.EnvironmentType#VIDEO_PLAYER) environment. |\n| `STREAM` | Per video stream. Only valid for entities in a [EnvironmentType.VIDEO_PLAYER](/ad-manager/api/reference/v202411/LineItemService.EnvironmentType#VIDEO_PLAYER) environment. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]