Skip to content

Commit c8b6c2b

Browse files
authored
Changes for release v1_2. (#94)
1 parent 6defceb commit c8b6c2b

File tree

1,120 files changed

+7715
-113824
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,120 files changed

+7715
-113824
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* 2.0.0:
2+
- Google Ads v1_2 release
3+
- Update example file names
4+
- Remove support for v0
5+
16
* 1.3.1:
27
- Add new planning examples add_keyword_plan and generate_forecast_metrics
38
- Add new example generate_keyword_ideas

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Features
1212
Requirements
1313
------------
1414
* Python 2.7.13+ / 3.5.3+
15+
- **NOTE:** Python 2 support will cease by the end of 2019. See this `blog post`_ for more detail.
1516
* `pip`_
1617

1718

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

8283
.. code-block:: python
8384
84-
google_ads_service = client.get_service('GoogleAdsService', version='v0')
85+
google_ads_service = client.get_service('GoogleAdsService', version='v1')
8586
8687
The currently available list of versions is:
8788

88-
* ``'v0'``
8989
* ``'v1'``
9090

9191
Enabling and Configuring logging
@@ -149,6 +149,7 @@ Authors
149149
* `Ben Karl`_
150150

151151
.. _pip: https://pip.pypa.io/en/stable/installing
152+
.. _blog post: https://ads-developers.googleblog.com/2019/04/python-2-deprecation-in-ads-api-client.html
152153
.. _template: https://github.com/googleads/google-ads-python/blob/master/google-ads.yaml
153154
.. _Authorization guide: https://developers.google.com/google-ads/api/docs/oauth/overview
154155
.. _authentication samples: https://github.com/googleads/google-ads-python/blob/master/examples/authentication

google/ads/google_ads/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
import google.ads.google_ads.util
2222

2323

24-
VERSION = '1.3.1'
24+
VERSION = '2.0.0'

google/ads/google_ads/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
_SERVICE_GRPC_TRANSPORT_TEMPLATE = '%sGrpcTransport'
3737
_PROTO_TEMPLATE = '%s_pb2'
3838
_DEFAULT_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'
39-
_VALID_API_VERSIONS = ['v1', 'v0']
39+
_VALID_API_VERSIONS = ['v1']
4040
_DEFAULT_VERSION = _VALID_API_VERSIONS[0]
4141

4242
class GoogleAdsClient(object):

google/ads/google_ads/v0/__init__.py

Lines changed: 0 additions & 986 deletions
This file was deleted.

google/ads/google_ads/v0/proto/__init__.py

Whitespace-only changes.

google/ads/google_ads/v0/proto/common/__init__.py

Whitespace-only changes.

google/ads/google_ads/v0/proto/common/ad_type_infos_pb2.py

Lines changed: 0 additions & 1301 deletions
This file was deleted.

0 commit comments

Comments
 (0)