The following limits and quotas apply to the Data API.
Как применяются квоты
All requests to the Google Analytics Data API v1 require a Google Cloud project and are subject to the quotas outlined on this page. Quotas are consumed regardless of the method used to identify the calling project, including:
- Requests authenticated with OAuth 2.0 credentials.
- Запросы аутентифицируются с использованием только ключа API.
API keys are used to associate a request with a specific Google Cloud project for quota and billing purposes. All API calls made using credentials or an API key from your project will count against your project's and the Google Analytics property's applicable quotas.
Категории квот
API данных имеет три категории квот запросов: Core, Realtime и Funnel. Запросы к методам Core используют квоты Core. Запросы к методам Realtime используют квоты Realtime. Каждый запрос потребляет только один тип квоты.
| Категория квоты | Методы API |
|---|---|
| Основной | runReport , runPivotReport , batchRunReports , batchRunPivotReports , runAccessReport , getMetadata , checkCompatibility , createAudienceExports |
| В реальном времени | runRealtimeReport |
| Воронка | runFunnelReport |
Квоты на аналитические данные
Все запросы расходуют квоты на использование ресурсов.
| Название квоты | Стандартный лимит собственности | Ограничение на использование недвижимости Analytics 360 |
|---|---|---|
| Основные токены на объект недвижимости в день | 200 000 | 2 000 000 |
| Основные токены за объект недвижимости в час | 40 000 | 400 000 |
| Основные токены за проект, за объект недвижимости, за час работы | 14 000 | 140 000 |
| Основные одновременные запросы для каждого объекта | 10 | 50 |
| Core Server Errors Per Project Per Property Per Hour | 10 | 50 |
| Токены в реальном времени на объект недвижимости в день | 200 000 | 2 000 000 |
| Токены в реальном времени за объект недвижимости в час | 40 000 | 400 000 |
| Realtime Tokens Per Project Per Property Per Hour | 14 000 | 140 000 |
| Одновременные запросы в режиме реального времени для каждого объекта недвижимости | 10 | 50 |
| Realtime Server Errors Per Project Per Property Per Hour | 10 | 50 |
| Токены воронки продаж на один объект недвижимости в день | 200 000 | 2 000 000 |
| Токены воронки продаж за объект недвижимости в час | 40 000 | 400 000 |
| Токены воронки продаж за проект, за объект недвижимости, за час работы | 14 000 | 140 000 |
| Направление одновременных запросов по каждому объекту недвижимости | 10 | 50 |
| Funnel Server Errors Per Project Per Property Per Hour | 10 | 50 |
- Concurrent requests are measured by the number of requests being simultaneously executed. To reduce your request concurrency, wait for previous requests to complete before sending additional requests.
- Ошибки сервера обозначаются кодами 500 и 503. Квота на обработку ошибок сервера взимается только в том случае, если запрос приводит к ошибке сервера. Когда квота на обработку ошибок сервера исчерпана для пары проект-объект, все запросы к объекту из этого проекта блокируются.
- Each request consumes quota for both Tokens Per Property Per Hour and Tokens Per Project Per Property Per Hour. This means that one property must be accessed by more than 3 projects before the "Tokens Per Property Per Hour" quota could be exhausted before the "Tokens Per Project Per Property Per Hour" quota.
Properties are allowed 120 potentially thresholded requests per hour. The dimensions userAgeBracket , userGender , brandingInterest , audienceId , and audienceName are potentially thresholded. Thresholds are applied to prevent anyone viewing a report from inferring the demographics or interests of individual users.
квота токенов недвижимости
Токены расходуются при каждом запросе к API данных Google Analytics версии 1. Количество списанных токенов зависит от сложности запроса. Хотя большинство запросов потребляют 10 или менее токенов, более сложные запросы потребляют больше.
Факторы, влияющие на потребление токенов
The exact token cost for a request is determined at the time of execution, making precise pre-calculation challenging. The cost is influenced by a combination of factors related to the request itself and the underlying data in the Google Analytics property. These factors can result in higher costs:
- Number of rows: Requesting a larger number of rows.
- Number of dimensions and metrics: Including a greater number of dimensions and metrics.
- Filter complexity: Employing complex filter expressions.
- Date range length: Querying over longer date periods.
- Data cardinality: Dimensions with high cardinality (many unique values, such as
pagePath, custom dimensions) can significantly increase token cost. - Property event volume: Queries on properties with a higher volume of events may consume more tokens than the same query on a property with less data.
Мониторинг использования токенов
Наиболее эффективный способ определить стоимость токенов для конкретных вызовов API — добавить параметр "returnPropertyQuota": true в тело запроса. В ответе API будет содержаться объект PropertyQuota , в котором подробно указано количество токенов, потребленных конкретным запросом, и оставшийся баланс квоты.