Hi, I am working on a Maven project, so I have both dependencies: <dependency> <groupId>com.google.apis</groupId> <artifactId>google-api-services-analyticsreporting</artifactId> <version>v4-rev116-1.23.0</version> </dependency> <dependency> <groupId>com.google.api-ads</groupId> <artifactId>adwords-axis</artifactId> <version>3.9.0</version> </dependency>
My Adwords API project was working correctly until I added my code to the main project which has the Analytics API. Now, I am getting this error: Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkNotNull(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; at com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<init>(OfflineCredentials.java:89) at com.google.api.ads.common.lib.auth.OfflineCredentials$Api.<clinit>(OfflineCredentials.java:81) at aleph.dataconnectors.google.adwords.AdwordsArchiver.getCredentials(AdwordsArchiver.java:108) at aleph.dataconnectors.google.adwords.AdwordsArchiver.processReports(AdwordsArchiver.java:191) at aleph.dataconnectors.google.adwords.Runner.main(Runner.java:14) If I comment out the "analytics" API then it works correctly. So I assume there is a conflict between both APIs. BTW I got the error when my code is in this section: Credential oAuth2Credential = new OfflineCredentials.Builder() .forApi(Api.ADWORDS) .fromFile() .build() .generateCredential(); Also I tried replacing the "credentials file" with "strings" (just for testing) but I am still having the same problem .withClientSecrets(clientId, clientSecret) .withRefreshToken(refreshToken) Any ideas how to solve this conflict? Thanks -David -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d724f89b-891b-4e5f-9641-4e1df6766c3f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.