Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,36 @@ again.

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
[GitHub Docs](https://docs.github.com/en/pull-requests/reference/pull-requests) for more
information on using pull requests.

## Community Guidelines

This project follows [Google's Open Source Community
Guidelines](https://opensource.google.com/conduct/).
Guidelines](https://opensource.google/conduct/).

## Code Style

This library conforms to [PEP 8](https://www.python.org/dev/peps/pep-0008/)
style guidelines and enforces an 80 character line width. It's recommended
that any contributor run the auto-formatter [`black`](https://github.com/psf/black),
version 19.10b0 on the non-generated codebase whenever making changes. To get
started, first install the appropriate version of `black`:
style guidelines and enforces an 80 character line width. Run the auto-formatter [`black`](https://github.com/psf/black) on the
non-generated codebase whenever making changes. First, install `black`:

```
python -m pip install black==19.10b0
```bash
python -m pip install black
```

You can manually run the formatter on all non-generated code with the following
command:

```
```bash
python -m black -l 80 --exclude "/(v[0-9]+|\.eggs|\.git|_cache|\.nox|\.tox|\.venv|\.svn|_build|buck-out|build|dist)/" .
```

Alternatively, if you intend to contribute regularly, it might be easier to
append this script to the `.git/hooks/pre-commit` file:
Alternatively, if you intend to contribute regularly, you can append the
following script to `.git/hooks/pre-commit`:

```
FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.py" | grep -v "google/ads/google_ads/v.*")
```bash
FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.py" | grep -v "google/ads/googleads/v.*")
echo "${FILES}" | xargs python -m black -l 80
echo "${FILES}" | xargs git add
```
12 changes: 2 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Requirements

Installation
------------
.. code-block::
.. code-block:: bash

pip install google-ads

Expand All @@ -25,7 +25,7 @@ Features

Documentation
-------------
Please refer to our `Developer Site`_ for documentation on how to install,
See the `Developer Site`_ for documentation on how to install,
configure, and use this client library.

Miscellaneous
Expand All @@ -38,21 +38,13 @@ Miscellaneous
Authors
-------

* `Mark Saniscalchi`_
* `David Wihl`_
* `Ben Karl`_
* `Andrew Burke`_
* `Laura Chevalier`_
* `Bob Hancock`_

.. |build-status| image:: https://storage.googleapis.com/gaa-clientlibs/badges/google-ads-python/buildstatus_ubuntu.svg
.. _Developer Site: https://developers.google.com/google-ads/api/docs/client-libs/python/
.. _Issue tracker: https://github.com/googleads/google-ads-python/issues
.. _API documentation: https://developers.google.com/google-ads/api/
.. _API Support: https://developers.google.com/google-ads/api/support
.. _Mark Saniscalchi: https://github.com/msaniscalchi
.. _David Wihl: https://github.com/wihl
.. _Ben Karl: https://github.com/BenRKarl
.. _Andrew Burke: https://github.com/AndrewMBurke
.. _Laura Chevalier: https://github.com/laurachevalier4
.. _Bob Hancock: https://github.com/bobhancock
6 changes: 3 additions & 3 deletions google-ads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ refresh_token: INSERT_REFRESH_TOKEN_HERE
# configuration parameters and remove the three OAuth2 credentials above. The #
# "json_key_file_path" value should be a path to your local private key json file, and #
# "impersonated_email" should be the email address that is being used to impersonate the #
# credentials making requests. for more information on service accounts, see: #
# https://developers.google.com/google-ads/api/docs/oauth/service-accounts. #
# credentials making requests. For more information on service accounts, see: #
# https://developers.google.com/google-ads/api/docs/oauth/service-accounts #
# If you're authorizing with direct account access, then the "impersonated_email" #
# configuration is optional. #
##########################################################################################
Expand Down Expand Up @@ -77,6 +77,6 @@ login_customer_id: INSERT_LOGIN_CUSTOMER_ID_HERE
##########################################################################################
# Below you can specify whether to initialize the library using Application Default #
# Credentials (ADC). To understand how ADC discovers credentials in a given environment, #
# see: https://developers.google.com/identity/protocols/application-default-credentials #
# see: https://cloud.google.com/docs/authentication/application-default-credentials #
# ########################################################################################
# use_application_default_credentials: True