Python Client for Analytics Admin API¶
Quick Start¶
In order to use this library, you first need to go through the following steps:
Installation¶
Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.
With virtualenv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.
Mac/Linux¶
pip install virtualenv virtualenv <your-env> source <your-env>/bin/activate <your-env>/bin/pip install google-analytics-admin
Windows¶
pip install virtualenv virtualenv <your-env> <your-env>\Scripts\activate <your-env>\Scripts\pip.exe install google-analytics-admin
Next Steps¶
Read the Client Library Documentation for Analytics Admin API to see other available methods on the client.
Read the Analytics Admin API Product documentation to learn more about the product and see How-to Guides.
Note
Because this client uses grpc
library, it is safe to share instances across threads. In multiprocessing scenarios, the best practice is to create client instances after the invocation of os.fork()
by multiprocessing.pool.Pool
or multiprocessing.Process
.
This package includes clients for multiple versions of Analytics Admin. By default, you will get version admin_v1alpha
.
API Reference¶
API Reference¶
Changelog¶
For a list of all google-analytics-admin
releases:
- Changelog
- 0.25.0 (2025-08-29)
- 0.24.1 (2025-06-19)
- 0.24.0 (2025-04-17)
- 0.23.6 (2025-03-15)
- 0.23.5 (2025-03-06)
- 0.23.4 (2025-02-12)
- 0.23.3 (2024-12-12)
- 0.23.2 (2024-10-31)
- 0.23.1 (2024-10-24)
- 0.23.0 (2024-08-08)
- 0.22.9 (2024-07-30)
- 0.22.8 (2024-07-08)
- 0.22.7 (2024-03-05)
- 0.22.6 (2024-02-22)
- 0.22.5 (2024-02-06)
- 0.22.4 (2024-02-01)
- 0.22.3 (2024-01-26)
- 0.22.2 (2024-01-04)
- 0.22.1 (2023-12-07)
- 0.22.0 (2023-10-19)
- 0.21.0 (2023-10-10)
- 0.20.0 (2023-08-10)
- 0.19.0 (2023-07-27)
- 0.18.1 (2023-07-04)
- 0.18.0 (2023-06-21)
- 0.17.0 (2023-05-31)
- 0.16.0 (2023-03-24)
- 0.15.0 (2023-02-28)
- 0.14.1 (2023-01-20)
- 0.14.0 (2023-01-10)
- 0.13.0 (2022-12-14)
- 0.12.0 (2022-11-07)
- 0.11.2 (2022-10-10)
- 0.11.1 (2022-10-03)
- 0.11.0 (2022-09-12)
- 0.10.1 (2022-08-11)
- 0.10.0 (2022-08-05)
- 0.9.0 (2022-07-20)
- 0.8.2 (2022-06-03)
- 0.8.1 (2022-05-13)
- 0.8.0 (2022-03-07)
- 0.7.2 (2021-11-01)
- 0.7.1 (2021-10-19)
- 0.7.0 (2021-10-12)
- 0.6.0 (2021-10-08)
- 0.5.2 (2021-10-07)
- 0.5.1 (2021-09-24)
- 0.5.0 (2021-08-25)
- 0.4.3 (2021-07-27)
- 0.4.2 (2021-07-20)
- 0.4.1 (2021-06-30)
- 0.4.0 (2021-06-23)
- 0.3.2 (2021-06-16)
- 0.3.1 (2021-06-16)
- 0.3.0 (2021-06-09)
- 0.2.0 (2021-01-20)
- 0.1.0 (2020-07-23)