enum DateRangeType (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
Represents a period of time.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Enumeration |
Description |
TODAY
|
The current day.
|
YESTERDAY
|
The previous day.
|
LAST_WEEK
|
The last week, from monday to sunday.
|
LAST_MONTH
|
The previous month.
|
LAST_3_MONTHS
|
The last 3 full months. For example, if today is May 5, 2017, then LAST_3_MONTHS would go from
February 1 to April 30.
|
REACH_LIFETIME
|
This will report on the last 93 days for the following columns: Column.UNIQUE_REACH_IMPRESSIONS, Column.UNIQUE_REACH_FREQUENCY, and Column.UNIQUE_REACH.
|
CUSTOM_DATE
|
Specifying this value will enable the user to specify
ReportQuery.startDate and ReportQuery.endDate.
|
NEXT_DAY
|
The next day.
|
NEXT_90_DAYS
|
The next ninety days.
|
NEXT_WEEK
|
The next week, from monday to sunday.
|
NEXT_MONTH
|
The next month.
|
CURRENT_AND_NEXT_MONTH
|
Beginning of the next day until the end of the next month.
|
NEXT_QUARTER
|
The next quarter.
|
NEXT_3_MONTHS
|
The next three months.
|
NEXT_12_MONTHS
|
The next twelve months.
|
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\u003eDateRangeType\u003c/code\u003e in the Google Ad Manager API represents a specific time period for reporting.\u003c/p\u003e\n"],["\u003cp\u003eIt offers various predefined date ranges like \u003ccode\u003eTODAY\u003c/code\u003e, \u003ccode\u003eYESTERDAY\u003c/code\u003e, \u003ccode\u003eLAST_WEEK\u003c/code\u003e, \u003ccode\u003eLAST_MONTH\u003c/code\u003e, and more for easy selection.\u003c/p\u003e\n"],["\u003cp\u003eFor custom date ranges, use \u003ccode\u003eCUSTOM_DATE\u003c/code\u003e and define the start and end dates using \u003ccode\u003eReportQuery.startDate\u003c/code\u003e and \u003ccode\u003eReportQuery.endDate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eREACH_LIFETIME\u003c/code\u003e specifically reports on the last 93 days for unique reach metrics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDateRangeType\u003c/code\u003e is essential when making report queries using the \u003ccode\u003eReportService\u003c/code\u003e in the Ad Manager API to specify the desired timeframe for data retrieval.\u003c/p\u003e\n"]]],["The `DateRangeType` enumeration within the `ReportService` defines various time periods for reporting. These include single-day options like `TODAY`, `YESTERDAY`, and `NEXT_DAY`, and predefined ranges like `LAST_WEEK`, `LAST_MONTH`, `NEXT_WEEK`, and `NEXT_MONTH`. `REACH_LIFETIME` covers the last 93 days, and `CUSTOM_DATE` allows user-defined start and end dates. There are also more extended periods available such as `NEXT_90_DAYS`, `NEXT_3_MONTHS`, `NEXT_12_MONTHS`, `LAST_3_MONTHS` and `NEXT_QUARTER`.\n"],null,["# enum DateRangeType (v202411)\n\n**Service** \n**ReportService** **Dependencies** \n[ReportQuery](/ad-manager/api/reference/v202411/ReportService.ReportQuery) \n▼\n**DateRangeType**\n\nRepresents a period of time.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202411`\n\n| Enumeration | Description |\n|--------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `TODAY` | The current day. |\n| `YESTERDAY` | The previous day. |\n| `LAST_WEEK` | The last week, from monday to sunday. |\n| `LAST_MONTH` | The previous month. |\n| `LAST_3_MONTHS` | The last 3 full months. For example, if today is May 5, 2017, then LAST_3_MONTHS would go from February 1 to April 30. |\n| `REACH_LIFETIME` | This will report on the last 93 days for the following columns: [Column.UNIQUE_REACH_IMPRESSIONS](/ad-manager/api/reference/v202411/ReportService.Column#UNIQUE_REACH_IMPRESSIONS), [Column.UNIQUE_REACH_FREQUENCY](/ad-manager/api/reference/v202411/ReportService.Column#UNIQUE_REACH_FREQUENCY), and [Column.UNIQUE_REACH](/ad-manager/api/reference/v202411/ReportService.Column#UNIQUE_REACH). |\n| `CUSTOM_DATE` | Specifying this value will enable the user to specify [ReportQuery.startDate](/ad-manager/api/reference/v202411/ReportService.ReportQuery#startDate) and [ReportQuery.endDate](/ad-manager/api/reference/v202411/ReportService.ReportQuery#endDate). |\n| `NEXT_DAY` | The next day. |\n| `NEXT_90_DAYS` | The next ninety days. |\n| `NEXT_WEEK` | The next week, from monday to sunday. |\n| `NEXT_MONTH` | The next month. |\n| `CURRENT_AND_NEXT_MONTH` | Beginning of the next day until the end of the next month. |\n| `NEXT_QUARTER` | The next quarter. |\n| `NEXT_3_MONTHS` | The next three months. |\n| `NEXT_12_MONTHS` | The next twelve months. |"]]