Skip to content

Commit 39d40b9

Browse files
committed
AdWords v201702 Release
1 parent 25bbbb9 commit 39d40b9

File tree

129 files changed

+10193
-78
lines changed

Some content is hidden

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

129 files changed

+10193
-78
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
5.2.0 -- 3/1/17:
2+
* Added support for AdWords v201702.
3+
* Resolved issues:
4+
- Issue 110: https://github.com/googleads/googleads-python-lib/issues/110
5+
- Issue 180: https://github.com/googleads/googleads-python-lib/issues/180
6+
7+
18
5.1.0 -- 2/13/17:
29
* Added support for DFP v201702.
310
* Removed examples for DFP v201605.

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,16 @@ import socket
199199
socket.setdefaulttimeout(15 * 60)
200200
```
201201

202-
##External Dependencies:
202+
##Requirements
203203

204+
###Python Versions
204205

206+
This library supports both Python 2 and 3. To use this library, you will need to
207+
have Python 2.7.9 (or higher) or Python 3.4 (or higher) installed.
208+
209+
###External Dependencies:
210+
211+
- httplib2 -- https://pypi.python.org/pypi/httplib2/
205212
- oauth2client -- https://pypi.python.org/pypi/oauth2client/
206213
- suds-jurko -- https://pypi.python.org/pypi/suds-jurko/
207214
- pysocks -- https://pypi.python.org/pypi/PySocks/

examples/adwords/adwords_appengine_demo/README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,3 @@ Submit bug reports or feature requests to our
107107
* [App Engine SDK v1.9.11+](https://developers.google.com/appengine/downloads)
108108
* [Google Ads Python Client Library v2.1.0+](https://github.com/googleads/googleads-python-lib)
109109
* [Google Account](https://www.google.com/accounts/NewAccount)
110-
111-
112-
### Author:
113-
114-
[email protected] (Mark Saniscalchi)

examples/adwords/v201605/advanced_operations/add_ad_customizer.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def CreateAdsWithCustomizations(client, adgroup_ids, feed_name):
4949
GoogleAdsError: if no TextAds were added.
5050
"""
5151
# Get the AdGroupAdService
52-
adgroup_ad_service = client.GetService('AdGroupAdService')
52+
adgroup_ad_service = client.GetService('AdGroupAdService', 'v201605')
5353

5454
text_ad = {
5555
'xsi_type': 'TextAd',
@@ -91,7 +91,8 @@ def CreateCustomizerFeed(client, feed_name):
9191
The new AdCustomizerFeed.
9292
"""
9393
# Get the AdCustomizerFeedService
94-
ad_customizer_feed_service = client.GetService('AdCustomizerFeedService')
94+
ad_customizer_feed_service = client.GetService('AdCustomizerFeedService',
95+
'v201605')
9596

9697
customizer_feed = {
9798
'feedName': feed_name,
@@ -141,7 +142,7 @@ def CreateCustomizerFeedItems(client, adgroup_ids, ad_customizer_feed):
141142
GoogleAdsError: if no FeedItems were added.
142143
"""
143144
# Get the FeedItemService
144-
feed_item_service = client.GetService('FeedItemService')
145+
feed_item_service = client.GetService('FeedItemService', 'v201605')
145146
now = datetime.now()
146147
mars_date = datetime(now.year, now.month, 1, 0, 0)
147148
venus_date = datetime(now.year, now.month, 15, 0, 0)

examples/adwords/v201605/reporting/download_criteria_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def main(client):
5353
# we use sys.stdout to write the report to the screen.
5454
report_downloader.DownloadReport(
5555
report, sys.stdout, skip_report_header=False, skip_column_header=False,
56-
skip_report_summary=False)
56+
skip_report_summary=False, include_zero_impressions=True)
5757

5858

5959
if __name__ == '__main__':

examples/adwords/v201605/reporting/download_criteria_report_as_stream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def main(client):
5858
report_data = StringIO.StringIO()
5959
stream_data = report_downloader.DownloadReportAsStream(
6060
report, skip_report_header=False, skip_column_header=False,
61-
skip_report_summary=False)
61+
skip_report_summary=False, include_zero_impressions=True)
6262

6363
try:
6464
while True:

examples/adwords/v201605/reporting/download_criteria_report_as_stream_with_awql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def main(client):
5555

5656
print report_downloader.DownloadReportAsStringWithAwql(
5757
report_query, 'CSV', skip_report_header=False, skip_column_header=False,
58-
skip_report_summary=False)
58+
skip_report_summary=False, include_zero_impressions=True)
5959

6060
# Retrieve the report stream and print it out
6161
report_data = StringIO.StringIO()

examples/adwords/v201605/reporting/download_criteria_report_as_string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main(client):
5151
# Print out the report as a string
5252
print report_downloader.DownloadReportAsString(
5353
report, skip_report_header=False, skip_column_header=False,
54-
skip_report_summary=False)
54+
skip_report_summary=False, include_zero_impressions=True)
5555

5656

5757
if __name__ == '__main__':

examples/adwords/v201605/reporting/download_criteria_report_as_string_with_awql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def main(client):
4545

4646
print report_downloader.DownloadReportAsStringWithAwql(
4747
report_query, 'CSV', skip_report_header=False, skip_column_header=False,
48-
skip_report_summary=False)
48+
skip_report_summary=False, include_zero_impressions=True)
4949

5050

5151
if __name__ == '__main__':

examples/adwords/v201605/reporting/download_criteria_report_with_awql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ def main(client, path):
4646
with open(path, 'w') as output_file:
4747
report_downloader.DownloadReportWithAwql(
4848
report_query, 'CSV', output_file, skip_report_header=False,
49-
skip_column_header=False, skip_report_summary=False)
49+
skip_column_header=False, skip_report_summary=False,
50+
include_zero_impressions=True)
5051

5152
print 'Report was downloaded to \'%s\'.' % path
5253

0 commit comments

Comments
 (0)