Skip to content

Commit

Permalink
Changes for release v1_2. (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenRKarl authored May 1, 2019
1 parent 6defceb commit c8b6c2b
Show file tree
Hide file tree
Showing 1,120 changed files with 7,715 additions and 113,824 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* 2.0.0:
- Google Ads v1_2 release
- Update example file names
- Remove support for v0

* 1.3.1:
- Add new planning examples add_keyword_plan and generate_forecast_metrics
- Add new example generate_keyword_ideas
Expand Down
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Features
Requirements
------------
* Python 2.7.13+ / 3.5.3+
- **NOTE:** Python 2 support will cease by the end of 2019. See this `blog post`_ for more detail.
* `pip`_


Expand Down Expand Up @@ -76,16 +77,15 @@ With the release of Google Ads API v1_0 it's now possible to specify an API
version when getting services and types. The ``get_service`` and ``get_type``
client methods accept a second named parameter, ``version`` that refers to a
valid API version. For example, to request an instance of the
``GoogleAdsService`` that uses Google Ads API version ``v0`` use the
``GoogleAdsService`` that uses Google Ads API version ``v1`` use the
following:

.. code-block:: python
google_ads_service = client.get_service('GoogleAdsService', version='v0')
google_ads_service = client.get_service('GoogleAdsService', version='v1')
The currently available list of versions is:

* ``'v0'``
* ``'v1'``

Enabling and Configuring logging
Expand Down Expand Up @@ -149,6 +149,7 @@ Authors
* `Ben Karl`_

.. _pip: https://pip.pypa.io/en/stable/installing
.. _blog post: https://ads-developers.googleblog.com/2019/04/python-2-deprecation-in-ads-api-client.html
.. _template: https://github.com/googleads/google-ads-python/blob/master/google-ads.yaml
.. _Authorization guide: https://developers.google.com/google-ads/api/docs/oauth/overview
.. _authentication samples: https://github.com/googleads/google-ads-python/blob/master/examples/authentication
Expand Down
2 changes: 1 addition & 1 deletion google/ads/google_ads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
import google.ads.google_ads.util


VERSION = '1.3.1'
VERSION = '2.0.0'
2 changes: 1 addition & 1 deletion google/ads/google_ads/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
_SERVICE_GRPC_TRANSPORT_TEMPLATE = '%sGrpcTransport'
_PROTO_TEMPLATE = '%s_pb2'
_DEFAULT_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'
_VALID_API_VERSIONS = ['v1', 'v0']
_VALID_API_VERSIONS = ['v1']
_DEFAULT_VERSION = _VALID_API_VERSIONS[0]

class GoogleAdsClient(object):
Expand Down
986 changes: 0 additions & 986 deletions google/ads/google_ads/v0/__init__.py

This file was deleted.

Empty file.
Empty file.
1,301 changes: 0 additions & 1,301 deletions google/ads/google_ads/v0/proto/common/ad_type_infos_pb2.py

This file was deleted.

Loading

0 comments on commit c8b6c2b

Please sign in to comment.