기간
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Google Ads 쿼리 언어를 사용하면 다음과 같은 방법으로 기간을 지정할 수 있습니다.
맞춤 기간
ISO 8601 확장(YYYY-MM-DD
) 또는 기본 (YYYYMMDD
) 형식으로 날짜를 지정할 수 있습니다. 예를 들면 다음과 같습니다.
segments.date BETWEEN '2024-01-01' AND '2024-01-31'
segments.date >= '20241001' AND segments.date <= '20241031'
사전 정의된 기간
유효한 사전 정의된 기간 목록은 다음과 같습니다.
기간 |
보고서는 다음을 위해 생성됩니다. |
TODAY |
오늘만 |
YESTERDAY |
어제만 |
LAST_7_DAYS |
오늘을 제외한 지난 7일 |
LAST_BUSINESS_WEEK
|
이전 영업주의 5일 영업주(월요일~금요일)입니다. |
THIS_MONTH |
이번 달의 모든 날짜입니다. |
LAST_MONTH |
지난달의 모든 날짜입니다. |
LAST_14_DAYS |
오늘을 제외한 지난 14일 |
LAST_30_DAYS |
오늘을 제외한 지난 30일 |
THIS_WEEK_SUN_TODAY
|
이전 일요일과 현재 날짜 사이의 기간입니다. |
THIS_WEEK_MON_TODAY
|
이전 월요일부터 현재 날짜까지의 기간입니다. |
LAST_WEEK_SUN_SAT |
이전 일요일부터 시작하는 7일 기간입니다. |
LAST_WEEK_MON_SUN |
이전 월요일부터 시작되는 7일 기간입니다. |
예:
segments.date DURING LAST_30_DAYS
사전 정의된 기간
일부 날짜 필드는 사전 정의된 기간을 나타냅니다. 구체적으로는 다음과 같습니다.
segments.week
segments.month
segments.quarter
이러한 세그먼트를 필터링할 때는 기간의 첫날인 날짜와 함께 =
연산자를 사용할 수 있습니다. 기간의 첫날이 아닌 날짜를 지정하면 MISALIGNED_DATE_FOR_FILTER
오류가 반환됩니다.
예를 들어 2024년 5월을 지정하려면 해당 월의 첫날을 지정하는 다음 조건을 사용합니다.
segments.month = '2024-05-01'
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-27(UTC)
[null,null,["최종 업데이트: 2025-08-27(UTC)"],[[["\u003cp\u003eGoogle Ads Query Language allows you to specify date ranges using custom dates, predefined date ranges like \u003ccode\u003eTODAY\u003c/code\u003e or \u003ccode\u003eLAST_30_DAYS\u003c/code\u003e, and predefined time periods for week, month, or quarter.\u003c/p\u003e\n"],["\u003cp\u003eCustom date ranges can be defined using ISO 8601 format, either extended (\u003ccode\u003eYYYY-MM-DD\u003c/code\u003e) or basic (\u003ccode\u003eYYYYMMDD\u003c/code\u003e), within a \u003ccode\u003eBETWEEN\u003c/code\u003e or \u003ccode\u003e>=\u003c/code\u003e and \u003ccode\u003e<=\u003c/code\u003e clause.\u003c/p\u003e\n"],["\u003cp\u003ePredefined date ranges provide shortcuts for common timeframes, such as \u003ccode\u003eLAST_BUSINESS_WEEK\u003c/code\u003e or \u003ccode\u003eTHIS_MONTH\u003c/code\u003e, simplifying date selection in queries.\u003c/p\u003e\n"],["\u003cp\u003eWhen filtering by predefined time periods (week, month, quarter), use the \u003ccode\u003e=\u003c/code\u003e operator with the first day of the period to avoid errors.\u003c/p\u003e\n"]]],[],null,["# Date Ranges\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe Google Ads Query Language lets you specify the date range in these ways:\n\n- [Custom date range](#custom)\n- [Predefined date range](#date-range)\n- [Predefined time period](#time-period)\n\nCustom date range\n-----------------\n\nYou can specify dates in [ISO 8601](//en.wikipedia.org/wiki/ISO_8601) extended\n(`YYYY-MM-DD`) or basic (`YYYYMMDD`) format, for example: \n\n segments.date BETWEEN '2024-01-01' AND '2024-01-31'\n\n segments.date \u003e= '20241001' AND segments.date \u003c= '20241031'\n\nPredefined date range\n---------------------\n\nThe list of valid predefined date ranges is as follows:\n\n| Date range | Reports are generated for... |\n|-----------------------|--------------------------------------------------------------------------------|\n| `TODAY` | Today only. |\n| `YESTERDAY` | Yesterday only. |\n| `LAST_7_DAYS` | The last 7 days not including today. |\n| `LAST_BUSINESS_WEEK` | The 5 day business week, Monday through Friday, of the previous business week. |\n| `THIS_MONTH` | All days in the current month. |\n| `LAST_MONTH` | All days in the previous month. |\n| `LAST_14_DAYS` | The last 14 days not including today. |\n| `LAST_30_DAYS` | The last 30 days not including today. |\n| `THIS_WEEK_SUN_TODAY` | The period between the previous Sunday and the current day. |\n| `THIS_WEEK_MON_TODAY` | The period between the previous Monday and the current day. |\n| `LAST_WEEK_SUN_SAT` | The 7-day period starting with the previous Sunday. |\n| `LAST_WEEK_MON_SUN` | The 7-day period starting with the previous Monday. |\n\nExample: \n\n segments.date DURING LAST_30_DAYS\n\nPredefined time period\n----------------------\n\nSome date fields refer to a predefined period of time, specifically:\n\n- `segments.week`\n- `segments.month`\n- `segments.quarter`\n\nWhen filtering on these segments, you can use the `=` operator with the date\nthat is the first day of the time period. If you specify a date that isn't the\nfirst day of a period, a `MISALIGNED_DATE_FOR_FILTER` error is returned.\n\nFor example, to specify the month of May in the year 2024, use the\nfollowing condition, specifying the first day of that month: \n\n segments.month = '2024-05-01'"]]