Skip to content

Commit 5b4844d

Browse files
author
Joseph DiLallo
committed
Fixing problems with a DFA example
1 parent 14de75b commit 5b4844d

File tree

199 files changed

+1037
-48
lines changed

Some content is hidden

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

199 files changed

+1037
-48
lines changed

ChangeLog

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1+
1.0.3 - 04/02/2014
2+
==================
3+
* The common module's LoadFromStorage method now parses the yaml file with
4+
safe_load rather than load.
5+
* Fixed a typo in examples/dfa/authentication/create_dfa_client_without_yaml.py
6+
(the service was 'CampaignService' instead of 'campaign'). This resolves
7+
issue #4.
8+
* Changed examples/dfa/authentication/create_dfa_client_without_yaml.py to run
9+
against the DFA test environment in order to match all other DFA examples.
10+
* Changed common._PackForSuds to force suds to serialize empty objects into XML.
11+
There are many use cases for this in Google's Ads APIs, such as passing empty
12+
search criteria into DFA search methods in order to select everything.
13+
114
1.0.2 - 03/20/2014
215
==================
3-
- Fixed a typo in examples/dfp/auth/generate_refresh_token.py (there was a
4-
trailing comma after the scope).
16+
* Fixed a typo in examples/dfp/authentication/generate_refresh_token.py (there
17+
was a trailing comma after the scope).
518

619
1.0.1 - 03/13/2014
720
==================
8-
- Fixed a bug with the AdWords ReportDownloader failing to decode unicode
21+
* Fixed a bug with the AdWords ReportDownloader failing to decode unicode
922
characters in reports. This resolves issue #1.
1023

1124
1.0.0 - 03/05/2014

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ in the fields for the API you plan to use. The library's `LoadFromStorage`
3737
methods default to looking for a file with this name in your home directory,
3838
but you can pass in a path to any file with the correct yaml contents.
3939

40+
```python
41+
# Use the default location - your home directory:
42+
adwords_client = adwords.AdWordsClient.LoadFromStorage()
43+
44+
# Alternatively, pass in the location of the file:
45+
dfp_client = dfp.DfpClient.LoadFromStorage('C:\My\Directory\googleads.yaml')
46+
```
47+
4048
##Where do I submit bug reports and/or feature requests?
4149

4250
Use the issue tracker at:
@@ -93,7 +101,6 @@ suds_client.set_options(
93101
suds_client.service.mutate([operation])
94102
```
95103

96-
97104
##External Dependencies:
98105

99106

examples/adwords/v201402/account_management/create_account.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
Note: this code example won't work with test accounts. See
2222
https://developers.google.com/adwords/api/docs/test-accounts
2323
24+
The LoadFromStorage method is pulling credentials and properties from a
25+
"googleads.yaml" file. By default, it looks for this file in your home
26+
directory. For more information, see the "Caching authentication information"
27+
section of our README.
28+
2429
Tags: CreateAccountService.mutate
2530
Api: AdWordsOnly
2631
"""

examples/adwords/v201402/account_management/get_account_alerts.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
Note: this code example won't work with test accounts. See
2222
https://developers.google.com/adwords/api/docs/test-accounts
2323
24+
The LoadFromStorage method is pulling credentials and properties from a
25+
"googleads.yaml" file. By default, it looks for this file in your home
26+
directory. For more information, see the "Caching authentication information"
27+
section of our README.
28+
2429
Tags: AlertService.get
2530
Api: AdWordsOnly
2631
"""

examples/adwords/v201402/account_management/get_account_changes.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
"""This example gets the changes in the account during the last 24 hours.
1818
19+
The LoadFromStorage method is pulling credentials and properties from a
20+
"googleads.yaml" file. By default, it looks for this file in your home
21+
directory. For more information, see the "Caching authentication information"
22+
section of our README.
23+
1924
Tags: CustomerSyncService.get
2025
"""
2126

examples/adwords/v201402/account_management/get_account_hierarchy.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
Note: this code example won't work with test accounts. See
2020
https://developers.google.com/adwords/api/docs/test-accounts
2121
22+
The LoadFromStorage method is pulling credentials and properties from a
23+
"googleads.yaml" file. By default, it looks for this file in your home
24+
directory. For more information, see the "Caching authentication information"
25+
section of our README.
26+
2227
Tags: ServicedAccountService.get
2328
Api: AdWordsOnly
2429
"""

examples/adwords/v201402/advanced_operations/add_ad_group_bid_modifier.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
1919
To get your ad groups, run get_ad_groups.py.
2020
21+
The LoadFromStorage method is pulling credentials and properties from a
22+
"googleads.yaml" file. By default, it looks for this file in your home
23+
directory. For more information, see the "Caching authentication information"
24+
section of our README.
25+
2126
Tags: AdGroupBidModifierService.mutate
2227
"""
2328

examples/adwords/v201402/advanced_operations/add_click_to_download_ad.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
This type of ad is also known as an app promotion ad. To list ad groups, run
2020
get_ad_groups.py.
2121
22+
The LoadFromStorage method is pulling credentials and properties from a
23+
"googleads.yaml" file. By default, it looks for this file in your home
24+
directory. For more information, see the "Caching authentication information"
25+
section of our README.
26+
2227
Tags: AdGroupAdService.mutate
2328
Api: AdWordsOnly
2429
"""

examples/adwords/v201402/advanced_operations/add_places_location_extensions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
2020
This example associates the feed with a customer.
2121
22+
The LoadFromStorage method is pulling credentials and properties from a
23+
"googleads.yaml" file. By default, it looks for this file in your home
24+
directory. For more information, see the "Caching authentication information"
25+
section of our README.
26+
2227
Tags: CustomerFeedService.mutate, FeedService.mutate
2328
"""
2429

examples/adwords/v201402/advanced_operations/add_site_links.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
"""This example adds a sitelinks feed and associates it with a campaign.
1818
19+
The LoadFromStorage method is pulling credentials and properties from a
20+
"googleads.yaml" file. By default, it looks for this file in your home
21+
directory. For more information, see the "Caching authentication information"
22+
section of our README.
23+
1924
Tags: CampaignFeedService.mutate, FeedItemService.mutate
2025
Tags: FeedMappingService.mutate, FeedService.mutate
2126
Api: AdWordsOnly

0 commit comments

Comments
 (0)