|
21 | 21 |
|
22 | 22 | Tags: customchannels.list |
23 | 23 | """ |
| 24 | +from __future__ import print_function |
24 | 25 |
|
25 | 26 | __author__ = 'sgomes@google.com (Sérgio Gomes)' |
26 | 27 |
|
@@ -62,20 +63,20 @@ def main(argv): |
62 | 63 | result = request.execute() |
63 | 64 | custom_channels = result['items'] |
64 | 65 | for custom_channel in custom_channels: |
65 | | - print ('Custom channel with code "%s" and name "%s" was found. ' |
66 | | - % (custom_channel['code'], custom_channel['name'])) |
| 66 | + print(('Custom channel with code "%s" and name "%s" was found. ' |
| 67 | + % (custom_channel['code'], custom_channel['name']))) |
67 | 68 |
|
68 | 69 | if 'targetingInfo' in custom_channel: |
69 | | - print ' Targeting info:' |
| 70 | + print(' Targeting info:') |
70 | 71 | targeting_info = custom_channel['targetingInfo'] |
71 | 72 | if 'adsAppearOn' in targeting_info: |
72 | | - print ' Ads appear on: %s' % targeting_info['adsAppearOn'] |
| 73 | + print(' Ads appear on: %s' % targeting_info['adsAppearOn']) |
73 | 74 | if 'location' in targeting_info: |
74 | | - print ' Location: %s' % targeting_info['location'] |
| 75 | + print(' Location: %s' % targeting_info['location']) |
75 | 76 | if 'description' in targeting_info: |
76 | | - print ' Description: %s' % targeting_info['description'] |
| 77 | + print(' Description: %s' % targeting_info['description']) |
77 | 78 | if 'siteLanguage' in targeting_info: |
78 | | - print ' Site language: %s' % targeting_info['siteLanguage'] |
| 79 | + print(' Site language: %s' % targeting_info['siteLanguage']) |
79 | 80 |
|
80 | 81 | request = service.customchannels().list_next(request, result) |
81 | 82 |
|
|
0 commit comments