Whether you're installing the library from PyPI or cloning it from GitHub, we recommended that you conduct the below steps using an active virtual environment. For information on how to create and activate a virtual environment, see the Virtual Environment documentation.
Install the module from PyPI
python -m pip install google-ads
Install the library from GitHub
The source code for the library can be cloned from GitHub onto your local machine. It's useful to clone the source code in order to easily execute the examples or to develop the library itself. For reference, running one of the authentication examples is a required step in configuring the library for use.
python3.6or greater is present in your environment. The simplest way is to use
pyenv global 3.6
Clone the client library from GitHub:
git clone email@example.com:googleads/google-ads-python.git
Enter the repository and install it:
python -m pip install .
If you intend to develop the library, run the unit tests before and after making any changes:
Ensure you have both
python3.7available in your environment. Using
pyenv, as mentioned above:
pyenv global 3.6 3.7
Run the unit tests to ensure the library is functioning properly: