Hi,
I am running my application which uses adwords api "google-ads-api-1.38.0". While trying to get the product group tree for a given adgroup-id using following code,
partitionTree =
ProductPartitionTree.createAdGroupTree(
new AdWordsServices(),
SessionStore.getSession(),
adGroupId
);
There is an error being received in logs which seems to be from google api. The logs is as follows :
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.Ordering.allEqual()Lcom/google/common/collect/Ordering;
at com.google.api.ads.adwords.axis.utils.v201502.shopping.ProductDimensionComparator.<clinit>(ProductDimensionComparator.java:66)
at com.google.api.ads.adwords.axis.utils.v201502.shopping.ProductPartitionTree.createEmptyAdGroupTree(ProductPartitionTree.java:323)
at com.google.api.ads.adwords.axis.utils.v201502.shopping.ProductPartitionTree.createAdGroupTree(ProductPartitionTree.java:219)
at com.sokrati.offlineGoogleSearchUploader.communicator.GoogleCommunicatorLookup.getProductGroupTree(Unknown Source)
at com.sokrati.offlineGoogleSearchUploader.processor.ProductGroupProcessor.processProductGroup(Unknown Source)
at com.sokrati.offlineGoogleSearchUploader.processor.GooglePLACreateProcessor.process(Unknown Source)
at com.sokrati.offlineGoogleSearchUploader.processor.GoogleSearchProcessor.process(Unknown Source)
at com.sokrati.offlineGoogleSearchUploader.OfflineGoogleSearchUploader.main(Unknown Source)
The problem is I tried using both the ads api versions i.e. the version having guava jdk and one without guava jdk. In one of the servers, the app that uses ads api with guava jdk works fine and in one of the servers app that uses ads api without guava version works fine but vice versa is not possible.
Which ads api version should I use so that my app can work on both boxes?
Please let me know if more information is required.