@@ -31,36 +31,18 @@ This project hosts the Java client library for the Google Ads API.
3131
3232 cd google-ads-java
3333
34+ Now run the following command to install the snapshot version of the library and examples
35+ project.
36+
37+ mvn clean install
38+
3439 You'll see a parent ` pom.xml ` for the project, as well as the following
3540 subdirectories:
3641
3742 * ` google-ads ` : source code for the library.
3843 * ` google-ads-examples ` : multiple examples that demonstrate how to use
3944 the library to execute common use cases via the Google Ads API.
4045
41- 3 . To run examples, you'll need to compile the ` google-ads ` and
42- ` google-ads-examples ` code.
43-
44- ** If you are using an IDE...**
45-
46- * Import the ` google-ads-examples ` project and confirm that your IDE
47- builds the project successfully.
48-
49- ** If you are using Maven from the command line...**
50-
51- * From the ` google-ads-java ` directory, install the snapshot version
52- of the library.
53-
54- mvn install
55-
56- * Change into the ` google-ads-examples ` directory.
57-
58- cd google-ads-examples
59-
60- * Compile the examples project via:
61-
62- mvn compile
63-
64464 . Setup your OAuth2 credentials.
6547
6648 The Google Ads API uses [ OAuth2] ( http://oauth.net/2/ ) as the authentication
@@ -107,7 +89,9 @@ This project hosts the Java client library for the Google Ads API.
10789 ** If using the command line:**
10890
10991 ```
110- $ mvn exec:java -Dexec.mainClass="com.google.ads.googleads.examples.authentication.AuthenticateInStandaloneApplication"
92+ $ cd google-ads-java
93+ $ mvn clean install
94+ $ mvn -f google-ads-examples/pom.xml exec:java -Dexec.mainClass="com.google.ads.googleads.examples.authentication.AuthenticateInStandaloneApplication"
11195 ```
11296
11397 * Copy the output from the last step of the example into a file named
@@ -137,6 +121,8 @@ This project hosts the Java client library for the Google Ads API.
137121 **If using the command line:**
138122
139123 ```
124+ $ cd google-ads-java
125+ $ mvn -f google-ads-examples/pom.xml
140126 $ mvn exec:java -Dexec.mainClass="com.google.ads.googleads.examples.authentication.AuthenticateInWebApplication"
141127 ```
142128
0 commit comments