Skip to content

Commit 984b1e9

Browse files
committed
Preparing release 3.2.0
1 parent ca72f0b commit 984b1e9

2,453 files changed

Lines changed: 230 additions & 389485 deletions

File tree

Some content is hidden

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

ChangeLog

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
3.2.0 - 3/17/2017
2+
-------------------
3+
AdWords:
4+
- Removed support and examples for v201605. See deprecation schedule at:
5+
https://developers.google.com/adwords/api/docs/sunset-dates
6+
- Fixed creation of the ReportDownloader object in the v201609
7+
DownloadCriteriaReport example for Axis.
8+
- Updated AddSiteLinksUsingFeeds examples to use field and
9+
constant names that are consistent with the field names
10+
of SitelinkFeedItem.
11+
- Moved log4j.properties and ads.properties to the `src` directory in
12+
non-maven example archive adwords-axis-jars-and-examples.tar.gz so
13+
log4j will function properly and the ads.properties in the user's
14+
home directory will take precedence over the sample in the archive.
15+
16+
DFP:
17+
- Moved log4j.properties and ads.properties to the `src` directory in
18+
non-maven example archive dfp-axis-jars-and-examples.tar.gz so
19+
log4j will function properly and the ads.properties in the user's
20+
home directory will take precedence over the sample in the archive.
21+
22+
Common:
23+
- Upgraded to version 2.6 of commons-lang in the ads_lib module.
24+
- Modified configuration loading to only look for
25+
google-ads-api-java-build.properties in the classpath, since there's no
26+
need to override this via a local file. In addition, modified the log
27+
message to something less alarming when an optional configuration file
28+
cannot be loaded. Fixes github issue:
29+
https://github.com/googleads/googleads-java-lib/issues/90
30+
131
3.1.1 - 3/02/2017
232
-------------------
333
AdWords:

examples/adwords_axis/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<groupId>com.google.api-ads.examples</groupId>
2525
<artifactId>adwords-axis-examples</artifactId>
26-
<version>3.1.1</version>
26+
<version>3.2.0</version>
2727

2828
<packaging>jar</packaging>
2929

@@ -110,12 +110,12 @@
110110
<dependency>
111111
<groupId>com.google.api-ads</groupId>
112112
<artifactId>ads-lib</artifactId>
113-
<version>3.1.1</version>
113+
<version>3.2.0</version>
114114
</dependency>
115115
<dependency>
116116
<groupId>com.google.api-ads</groupId>
117117
<artifactId>adwords-axis</artifactId>
118-
<version>3.1.1</version>
118+
<version>3.2.0</version>
119119
</dependency>
120120

121121
<!-- Third party dependencies -->

examples/adwords_axis/src/main/java/adwords/axis/auth/AdvancedCreateCredentialFromScratch.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
package adwords.axis.auth;
1616

1717
import com.google.api.ads.adwords.axis.factory.AdWordsServices;
18-
import com.google.api.ads.adwords.axis.v201605.cm.Campaign;
19-
import com.google.api.ads.adwords.axis.v201605.cm.CampaignPage;
20-
import com.google.api.ads.adwords.axis.v201605.cm.CampaignServiceInterface;
21-
import com.google.api.ads.adwords.axis.v201605.cm.Selector;
18+
import com.google.api.ads.adwords.axis.v201702.cm.Campaign;
19+
import com.google.api.ads.adwords.axis.v201702.cm.CampaignPage;
20+
import com.google.api.ads.adwords.axis.v201702.cm.CampaignServiceInterface;
21+
import com.google.api.ads.adwords.axis.v201702.cm.Selector;
2222
import com.google.api.ads.adwords.lib.client.AdWordsSession;
2323
import com.google.api.ads.adwords.lib.client.reporting.ReportingConfiguration;
2424
import com.google.api.ads.adwords.lib.factory.AdWordsServicesInterface;
25-
import com.google.api.ads.adwords.lib.jaxb.v201605.DownloadFormat;
26-
import com.google.api.ads.adwords.lib.jaxb.v201605.ReportDefinition;
27-
import com.google.api.ads.adwords.lib.jaxb.v201605.ReportDefinitionDateRangeType;
28-
import com.google.api.ads.adwords.lib.jaxb.v201605.ReportDefinitionReportType;
25+
import com.google.api.ads.adwords.lib.jaxb.v201702.DownloadFormat;
26+
import com.google.api.ads.adwords.lib.jaxb.v201702.ReportDefinition;
27+
import com.google.api.ads.adwords.lib.jaxb.v201702.ReportDefinitionDateRangeType;
28+
import com.google.api.ads.adwords.lib.jaxb.v201702.ReportDefinitionReportType;
2929
import com.google.api.ads.adwords.lib.utils.ReportDownloadResponse;
30-
import com.google.api.ads.adwords.lib.utils.v201605.ReportDownloader;
30+
import com.google.api.ads.adwords.lib.utils.v201702.ReportDownloader;
3131
import com.google.api.ads.common.lib.conf.ConfigurationLoadException;
3232
import com.google.api.ads.common.lib.exception.ValidationException;
3333
import com.google.api.ads.common.lib.utils.Streams;
@@ -160,8 +160,8 @@ public static void runExample(
160160
}
161161

162162
// Create selector.
163-
com.google.api.ads.adwords.lib.jaxb.v201605.Selector reportSelector =
164-
new com.google.api.ads.adwords.lib.jaxb.v201605.Selector();
163+
com.google.api.ads.adwords.lib.jaxb.v201702.Selector reportSelector =
164+
new com.google.api.ads.adwords.lib.jaxb.v201702.Selector();
165165
reportSelector.getFields().addAll(Lists.newArrayList(
166166
"CampaignId",
167167
"AdGroupId",

examples/adwords_axis/src/main/java/adwords/axis/auth/CreateAdWordsSessionWithoutPropertiesFile.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
package adwords.axis.auth;
1616

1717
import com.google.api.ads.adwords.axis.factory.AdWordsServices;
18-
import com.google.api.ads.adwords.axis.v201605.mcm.Customer;
19-
import com.google.api.ads.adwords.axis.v201605.mcm.CustomerServiceInterface;
18+
import com.google.api.ads.adwords.axis.v201702.mcm.Customer;
19+
import com.google.api.ads.adwords.axis.v201702.mcm.CustomerServiceInterface;
2020
import com.google.api.ads.adwords.lib.client.AdWordsSession;
2121
import com.google.api.ads.adwords.lib.factory.AdWordsServicesInterface;
2222
import com.google.api.ads.common.lib.auth.OfflineCredentials;
@@ -60,8 +60,10 @@ public static void runExample(AdWordsServicesInterface adWordsServices, AdWordsS
6060
throws Exception {
6161
CustomerServiceInterface customerService =
6262
adWordsServices.get(session, CustomerServiceInterface.class);
63-
Customer customer = customerService.get();
64-
System.out.printf("You are logged in as customer: %s", customer.getCustomerId());
63+
System.out.println("You are logged in as a user with access to the following customers:");
64+
for (Customer customer : customerService.getCustomers()) {
65+
System.out.printf(" %s%n", customer.getCustomerId());
66+
}
6567
}
6668

6769
public static void main(String[] args) throws Exception {

examples/adwords_axis/src/main/java/adwords/axis/v201605/accountmanagement/CreateAccount.java

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

examples/adwords_axis/src/main/java/adwords/axis/v201605/accountmanagement/GetAccountChanges.java

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

0 commit comments

Comments
 (0)