Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-14 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi, The Gradle Maven Plugin will generate a pom.xml for your project based on your Gradle configuration. Could you give that a try? Another option is to use a Gradle plugin for Eclipse, such as Eclipse Buildship

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-13 Thread goldenmaza
Hi Josh I tried both, no change. I'm trying to configure Eclipse to use my old project files but the problems with dependencies are even worse in this environment. There is no convert project from Gradle/Android to Maven/Eclipse functionality in Eclipse? Kind regards Richard Den måndag 12

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-12 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, Could you try removing the line for *adwords-axis*? The idea is that you'll either use *adwords-axis* *or** adwords-appengine*, but not both. Thanks, Josh, AdWords API Team On Monday, March 12, 2018 at 3:52:24 AM UTC-4, goldenmaza wrote: > > Hi Josh > > By having the following in

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-12 Thread goldenmaza
Hi Josh By having the following in the build.gradle file: implementation 'com.google.api-ads:ads-lib:3.12.0' implementation 'com.google.api-ads:adwords-axis:3.12.0' implementation 'com.google.api-ads:adwords-appengine:3.12.0' I get the classpath errors: Error:Unable to resolve dependency for

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-09 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, The RMI package is needed because the objects generated for the Axis SOAP toolkit are all based on that package. For example, *ApiException* in the library ultimately extends *java.rmi.RemoteException* via the inheritance hierarchy of *ApiException -> ApplicationException ->

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-08 Thread goldenmaza
Hi Josh Wonderful, that would set me back alittle... Yes, I'm using Android Studio for my first Android app. It uses not only Google AdWords API but also Google Maps API. I felt like Android Studio would be a good starting point. Do I need to get Eclipse with Maven just for AdWords and

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-08 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, This StackOverflow post suggests that RMI may not be packaged with Android. Are you developing an Android application, or are you just using Android Developer Studio as your IDE? Regarding

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-08 Thread goldenmaza
Hi Josh Wasn't jcenter replacing mavenCentral? But why do I still get RemoteException and why is the ApiException still a problem (underlined red and something about Throwable)? Kind regards Richard Den onsdag 7 mars 2018 kl. 21:26:10 UTC+1 skrev Josh Radcliff (AdWords API Team): > > Hi

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-07 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, My knowledge of Gradle is pretty limited, I'm afraid, but did you try adding *mavenCentral()* to your list of *repositories* as shown here ? Thanks, Josh, AdWords API Team

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-07 Thread goldenmaza
Hi Josh 1) Yes, it is intentional as I first believed that by placing the jar files under the libs folder that they would get their respective classpath automatically. 2) I've updated the build file as follows: implementation 'com.google.api-ads:ads-lib:3.12.0' implementation

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-07 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, Thanks for sending over that info. I noticed two things about your *dependencies* section: 1. The dependencies for the Google Ads APIs Client Library for Java are commented out: //implementation 'com.google.api-ads:ads-lib:3.10.0' //implementation

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-07 Thread goldenmaza
Hi Josh According to the controlpanel I have Java 8 Update 162. build.gradle under app folder: apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.2" defaultConfig { applicationId "yada.yada" minSdkVersion 23

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-06 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, Would you mind sharing your Gradle config so I can see how you're bringing in the library dependencies? Also, just to rule certain things out, could you let me know which version of Java you're using? Thanks, Josh, AdWords API Team On Tuesday, March 6, 2018 at 3:26:52 AM UTC-5,

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-06 Thread goldenmaza
Hi Josh As I currently sit with Android Studio/Gradle, I would prefer continuing using these, I can skip Gradle for the next project but for now I would like to learn how to solve this Gradle issue. Oh, by placing the files under the libs folder you set the classpath(s) manually? The part

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-05 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, Thanks - that definitely helps! Could you let me know how you're managing your dependencies? For example, are you using Maven, Gradle, or just setting your classpath manually (e.g., by copying dependencies to a lib folder)? I ask because the error that java.rmi.RemoteException is

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-05 Thread goldenmaza
Hi Josh Thank you for your time! :) Code and errors are as follows: try { adWordsHandler = new AdWordsHandler(context); adWordsHandler.callAdWordsAPI(); sales = adWordsHandler.getEntries(); resourceHandler.addResources(Sale.class.getName(), sales); } catch (RemoteException e) {

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-05 Thread 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
Hi Richard, Could you share the error you're getting from the compiler? I want to make sure this is the same issue as mentioned below, so it would be helpful to have more details for your particular case. Thanks, Josh, AdWords API Team On Sunday, March 4, 2018 at 5:03:59 PM UTC-5, goldenmaza

Re: GetIdeas example - ApiException not instance of Throwable?

2018-03-04 Thread goldenmaza
Hello Josh I know you answered this a while ago but I have the same problem. I've read https://docs.oracle.com/javase/8/docs/technotes/tools/windows/classpath.html and even if this page explains what a classpath is, it was not written for Google AdWords API. So what do I need to do regarding

Re: GetIdeas example - ApiException not instance of Throwable?

2016-06-13 Thread P G
Hello, I'll try to answer, hoping to remember correctly from one year ago. As for me, it was a problem of importing packages. I was trying to import only a subset of the packages in adwords.axis.(etc.) to create a smaller project. When I included the whole jar. (with all sub-jar), it worked. I

Re: GetIdeas example - ApiException not instance of Throwable?

2016-06-13 Thread Greg Snider
Josh, I'm having the issue as OP. I have tried troubleshooting my classpath, but have been unsuccessful. I am using Android Studio and the line I am using which generates an unhandled exception is straight from the GetCampaigns.java sample code: "page = campaignService.get(selector);" I am

GetIdeas example - ApiException not instance of Throwable?

2015-05-11 Thread p9gran
Hi all, I have a compilation problem while trying to execute this example https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201502/optimization/GetKeywordIdeas.java The line 118 TargetingIdeaPage page =