Skip to content

Commit 7f6fb9d

Browse files
authored
Support for Google Ads API v0_7 (#33)
1 parent d9f6f93 commit 7f6fb9d

File tree

569 files changed

+28922
-14933
lines changed

Some content is hidden

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

569 files changed

+28922
-14933
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
* 0.7.0:
2+
- Google Ads v0_7 release.
3+
14
* 0.6.0:
25
- Add configurable logging functionality.
36

examples/v0/campaign_management/add_bid_modifiers.py renamed to examples/v0/campaign_management/add_campaign_bid_modifier.py

File renamed without changes.

examples/v0/campaign_management/add_campaign_groups.py

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

examples/v0/recommendations/apply_recommendation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
def main(client, customer_id, recommendation_id):
2929
recommendation_service = client.get_service('RecommendationService')
30-
partial_failure = False
3130

3231
apply_recommendation_operation = client.get_type(
3332
'ApplyRecommendationOperation')
@@ -39,7 +38,6 @@ def main(client, customer_id, recommendation_id):
3938
try:
4039
recommendation_response = recommendation_service.apply_recommendation(
4140
customer_id,
42-
partial_failure,
4341
[apply_recommendation_operation])
4442
except google.ads.google_ads.errors.GoogleAdsException as ex:
4543
print('Request with ID "%s" failed with status "%s" and includes the '

examples/v0/reporting/get_keyword_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def main(client, customer_id, page_size):
3636
'ad_group_criterion.keyword.text, '
3737
'ad_group_criterion.keyword.match_type, '
3838
'metrics.impressions, metrics.clicks, metrics.cost_micros '
39-
'FROM keyword_view WHERE date DURING LAST_7_DAYS '
39+
'FROM keyword_view WHERE segments.date DURING LAST_7_DAYS '
4040
'AND campaign.advertising_channel_type = \'SEARCH\' '
4141
'AND ad_group.status = \'ENABLED\' '
4242
'AND ad_group_criterion.status IN (\'ENABLED\', \'PAUSED\') '

google/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
#
13
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -17,4 +19,4 @@
1719
pkg_resources.declare_namespace(__name__)
1820
except ImportError:
1921
import pkgutil
20-
__path__ = pkgutil.extend_path(__path__, __name__)
22+
__path__ = pkgutil.extend_path(__path__, __name__)

google/ads/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
1516
try:
1617
import pkg_resources
1718
pkg_resources.declare_namespace(__name__)

google/ads/google_ads/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
1516
from __future__ import absolute_import
1617

18+
1719
import google.ads.google_ads.client
1820
import google.ads.google_ads.errors
1921

20-
21-
VERSION = '0.6.0'
22+
VERSION = '0.7.0'

0 commit comments

Comments
 (0)