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 mars 2018 kl. 17:37:46 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> 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 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 ':app@release/compileClasspath': 
>> Could not resolve com.google.api-ads:adwords-appengine:3.12.0.
>>
>> I even have the *adwords-appengine-3.12.0.jar* file under the app/libs 
>> folder...
>>
>> I have even invalided cache and done a restart, no luck...
>>
>> I miss the day of front-end development where I didn't have these 
>> problems...
>>
>> Kind regards
>> Richard
>>
>> Den fredag 9 mars 2018 kl. 16:42:08 UTC+1 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> 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 -> 
>>> AxisFault -> RemoteException*.
>>>
>>> One thing you could try would be to use the JAX-WS (AppEngine) modules 
>>> instead of the Axis modules. Those would be:
>>>
>>> 
>>>   com.google.api-ads
>>>   ads-lib
>>>   *RELEASE*
>>> 
>>> 
>>>   com.google.api-ads
>>>   adwords-appengine
>>>   *RELEASE*
>>> 
>>>
>>> I suspect you'll run into similar RMI dependencies there, but it's worth 
>>> a shot. :)
>>>
>>> Cheers,
>>> Josh, AdWords API Team
>>>
>>>
>>> On Thursday, March 8, 2018 at 4:39:14 PM UTC-5, goldenmaza wrote:
>>>>
>>>> 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 develop everything else in Android Studio? Currently, my 
>>>> problem to make
>>>> my code run is this ApiException class that seem to need 
>>>> RemoteException. If there is no default way of getting RMI for Android 
>>>> Studio, then I don't have
>>>> much options left.
>>>>
>>>> Why is it needed for ApiException with AdWords?
>>>>
>>>> Kind regards
>>>> Richard
>>>>
>>>> Den torsdag 8 mars 2018 kl. 15:28:34 UTC+1 skrev Josh Radcliff (AdWords 
>>>> API Team):
>>>>>
>>>>> Hi Richard,
>>>>>
>>>>> This StackOverflow post 
>>>>> <https://stackoverflow.com/questions/12091791/eclipse-cannot-find-java-rmi-remote-class>
>>>>>  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 jCenter, you're absolutely correct. :)
>>>>>
>>>>> Thanks,
>>>>> Josh, AdWords API Team
>>>>>
>>>>> On Thursday, March 8, 2018 at 3:23:26 AM UTC-5, goldenmaza wrote:
>>>>>>
>>>>>> Hi Josh
>>>>>>
>>>>>> Wasn't jcenter replacing mavenCentral?
>>>>>>
>>>>>> But why do I still get RemoteException and why is the ApiException 
>>>>

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 ':app@release/compileClasspath': 
Could not resolve com.google.api-ads:adwords-appengine:3.12.0.

I even have the *adwords-appengine-3.12.0.jar* file under the app/libs 
folder...

I have even invalided cache and done a restart, no luck...

I miss the day of front-end development where I didn't have these 
problems...

Kind regards
Richard

Den fredag 9 mars 2018 kl. 16:42:08 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> 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 -> AxisFault -> 
> RemoteException*.
>
> One thing you could try would be to use the JAX-WS (AppEngine) modules 
> instead of the Axis modules. Those would be:
>
> 
>   com.google.api-ads
>   ads-lib
>   *RELEASE*
> 
> 
>   com.google.api-ads
>   adwords-appengine
>   *RELEASE*
> 
>
> I suspect you'll run into similar RMI dependencies there, but it's worth a 
> shot. :)
>
> Cheers,
> Josh, AdWords API Team
>
>
> On Thursday, March 8, 2018 at 4:39:14 PM UTC-5, goldenmaza wrote:
>>
>> 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 develop everything else in Android Studio? Currently, my 
>> problem to make
>> my code run is this ApiException class that seem to need RemoteException. 
>> If there is no default way of getting RMI for Android Studio, then I don't 
>> have
>> much options left.
>>
>> Why is it needed for ApiException with AdWords?
>>
>> Kind regards
>> Richard
>>
>> Den torsdag 8 mars 2018 kl. 15:28:34 UTC+1 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> Hi Richard,
>>>
>>> This StackOverflow post 
>>> <https://stackoverflow.com/questions/12091791/eclipse-cannot-find-java-rmi-remote-class>
>>>  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 jCenter, you're absolutely correct. :)
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Thursday, March 8, 2018 at 3:23:26 AM UTC-5, goldenmaza wrote:
>>>>
>>>> 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 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 
>>>>> <https://docs.gradle.org/current/userguide/declaring_dependencies.html#sub:declaring_dependency_with_version>
>>>>> ?
>>>>>
>>>>> Thanks,
>>>>> Josh, AdWords API Team
>>>>>
>>>>> On Wednesday, March 7, 2018 at 1:15:57 PM UTC-5, goldenmaza wrote:
>>>>>>
>>>>>> 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 'com.goog

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 develop everything else in Android Studio? Currently, my 
problem to make
my code run is this ApiException class that seem to need RemoteException. 
If there is no default way of getting RMI for Android Studio, then I don't 
have
much options left.

Why is it needed for ApiException with AdWords?

Kind regards
Richard

Den torsdag 8 mars 2018 kl. 15:28:34 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> Hi Richard,
>
> This StackOverflow post 
> <https://stackoverflow.com/questions/12091791/eclipse-cannot-find-java-rmi-remote-class>
>  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 jCenter, you're absolutely correct. :)
>
> Thanks,
> Josh, AdWords API Team
>
> On Thursday, March 8, 2018 at 3:23:26 AM UTC-5, goldenmaza wrote:
>>
>> 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 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 
>>> <https://docs.gradle.org/current/userguide/declaring_dependencies.html#sub:declaring_dependency_with_version>
>>> ?
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Wednesday, March 7, 2018 at 1:15:57 PM UTC-5, goldenmaza wrote:
>>>>
>>>> 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 'com.google.api-ads:adwords-axis:3.12.0'
>>>>
>>>> I still have the RemoteException problem..
>>>>
>>>> Kind regards
>>>> Richard
>>>>
>>>> Den onsdag 7 mars 2018 kl. 15:10:42 UTC+1 skrev Josh Radcliff (AdWords 
>>>> API Team):
>>>>>
>>>>> 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 'com.google.api-ads:adwords-axis:1.38.0'
>>>>>
>>>>> Was that intentional, and was that the state of the config when you 
>>>>> tried to run the example? With those two lines commented out, none of the 
>>>>> library's classes will be on the classpath.
>>>>>
>>>>> 2. The versions specified for the two Google Ads APIs Client Library 
>>>>> for Java do not match. For example, if you're using *3.10.0* for 
>>>>> *ads-lib*, you should also use *3.10.0* for *adwords-axis*. Although 
>>>>> Maven requires separate versions for each dependency, in practice we 
>>>>> always 
>>>>> keep all of our Maven artifacts on the same version. The latest version 
>>>>> for 
>>>>> the library is 3.12.0 
>>>>> <https://github.com/googleads/googleads-java-lib/releases>.
>>>>>
>>>>> Thanks,
>>>>> Josh, AdWords API Team
>>>>>
>>>>> On Wednesday, March 7, 2018 at 3:07:15 AM UTC-5, goldenmaza wrote:
>>>>>>
>>>>>> Hi Josh
>>>>>>
>>>>>> According to the controlpanel I have Java 8 Update 162.
>>>>>>
>>>>>> build.gradle under app folder:
>>>>>> apply plugin: 'com.android.application&#x

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 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 
> <https://docs.gradle.org/current/userguide/declaring_dependencies.html#sub:declaring_dependency_with_version>
> ?
>
> Thanks,
> Josh, AdWords API Team
>
> On Wednesday, March 7, 2018 at 1:15:57 PM UTC-5, goldenmaza wrote:
>>
>> 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 'com.google.api-ads:adwords-axis:3.12.0'
>>
>> I still have the RemoteException problem..
>>
>> Kind regards
>> Richard
>>
>> Den onsdag 7 mars 2018 kl. 15:10:42 UTC+1 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> 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 'com.google.api-ads:adwords-axis:1.38.0'
>>>
>>> Was that intentional, and was that the state of the config when you 
>>> tried to run the example? With those two lines commented out, none of the 
>>> library's classes will be on the classpath.
>>>
>>> 2. The versions specified for the two Google Ads APIs Client Library for 
>>> Java do not match. For example, if you're using *3.10.0* for *ads-lib*, 
>>> you should also use *3.10.0* for *adwords-axis*. Although Maven 
>>> requires separate versions for each dependency, in practice we always keep 
>>> all of our Maven artifacts on the same version. The latest version for the 
>>> library is 3.12.0 
>>> <https://github.com/googleads/googleads-java-lib/releases>.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Wednesday, March 7, 2018 at 3:07:15 AM UTC-5, goldenmaza wrote:
>>>>
>>>> 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
>>>> targetSdkVersion 26
>>>> versionCode 1
>>>> versionName "1.0"
>>>> testInstrumentationRunner 
>>>> "android.support.test.runner.AndroidJUnitRunner"
>>>> }
>>>> buildTypes {
>>>> debug {
>>>> minifyEnabled false
>>>> proguardFiles getDefaultProguardFile('proguard-android.txt'
>>>> ), 'proguard-rules.pro'
>>>> }
>>>> release {
>>>> minifyEnabled false
>>>> proguardFiles getDefaultProguardFile('proguard-android.txt'
>>>> ), 'proguard-rules.pro'
>>>> }
>>>> }
>>>> }
>>>>
>>>> repositories {
>>>> jcenter()
>>>> google()
>>>> }
>>>>
>>>>
>>>> dependencies {
>>>> implementation fileTree(include: ['*.jar'], dir: 'libs')
>>>> implementation 'com.android.support:design:26.0.2'
>>>> implementation 'com.android.support:appcompat-v7:26.0.2'
>>>> implementation 'com.google.android.gms:play-services-maps:11.8.0'
>>>> //implementation 'com.google.api-ads:ads-lib:3.10.0'
>>>> //implementation 'com.google.api-ads:adwords-axis:1.38.0'
&g

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 'com.google.api-ads:adwords-axis:3.12.0'

I still have the RemoteException problem..

Kind regards
Richard

Den onsdag 7 mars 2018 kl. 15:10:42 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> 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 'com.google.api-ads:adwords-axis:1.38.0'
>
> Was that intentional, and was that the state of the config when you tried 
> to run the example? With those two lines commented out, none of the 
> library's classes will be on the classpath.
>
> 2. The versions specified for the two Google Ads APIs Client Library for 
> Java do not match. For example, if you're using *3.10.0* for *ads-lib*, 
> you should also use *3.10.0* for *adwords-axis*. Although Maven requires 
> separate versions for each dependency, in practice we always keep all of 
> our Maven artifacts on the same version. The latest version for the library 
> is 3.12.0 <https://github.com/googleads/googleads-java-lib/releases>.
>
> Thanks,
> Josh, AdWords API Team
>
> On Wednesday, March 7, 2018 at 3:07:15 AM UTC-5, goldenmaza wrote:
>>
>> 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
>> targetSdkVersion 26
>> versionCode 1
>> versionName "1.0"
>> testInstrumentationRunner 
>> "android.support.test.runner.AndroidJUnitRunner"
>> }
>> buildTypes {
>> debug {
>> minifyEnabled false
>> proguardFiles getDefaultProguardFile('proguard-android.txt'), 
>> 'proguard-rules.pro'
>> }
>> release {
>> minifyEnabled false
>> proguardFiles getDefaultProguardFile('proguard-android.txt'), 
>> 'proguard-rules.pro'
>> }
>> }
>> }
>>
>> repositories {
>> jcenter()
>> google()
>> }
>>
>>
>> dependencies {
>> implementation fileTree(include: ['*.jar'], dir: 'libs')
>> implementation 'com.android.support:design:26.0.2'
>> implementation 'com.android.support:appcompat-v7:26.0.2'
>> implementation 'com.google.android.gms:play-services-maps:11.8.0'
>> //implementation 'com.google.api-ads:ads-lib:3.10.0'
>> //implementation 'com.google.api-ads:adwords-axis:1.38.0'
>> implementation 'com.android.support:appcompat-v7:26.0.2'
>> implementation 
>> 'com.android.support.constraint:constraint-layout:1.0.2'
>> testImplementation 'junit:junit:4.12'
>> }
>>
>> Thank you for your time! :)
>>
>> Kind regards
>> Richard
>>
>> Den tisdag 6 mars 2018 kl. 22:36:16 UTC+1 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> 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, goldenmaza wrote:
>>>>
>>>> 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 about the archive I have done already (my other forum post 
>>>> with Dhanya Sundara

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
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner 
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-rules.pro'
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-rules.pro'
}
}
}

repositories {
jcenter()
google()
}


dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:design:26.0.2'
implementation 'com.android.support:appcompat-v7:26.0.2'
implementation 'com.google.android.gms:play-services-maps:11.8.0'
//implementation 'com.google.api-ads:ads-lib:3.10.0'
//implementation 'com.google.api-ads:adwords-axis:1.38.0'
implementation 'com.android.support:appcompat-v7:26.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
}

Thank you for your time! :)

Kind regards
Richard

Den tisdag 6 mars 2018 kl. 22:36:16 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> 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, goldenmaza wrote:
>>
>> 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 about the archive I have done already (my other forum post with 
>> Dhanya Sundararaju (AdWords API Team) as he suggested the same). But that 
>> does not solve the issue I got
>> as a result of this inclusion of jar files.
>>
>> Thank you for your time! :)
>>
>> Kind regards
>> Richard
>>
>> Den måndag 5 mars 2018 kl. 17:57:57 UTC+1 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> 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 not in your 
>>> classpath indicates that you are missing some key dependencies. If it 
>>> helps, you can see the list of dependencies to add for Maven here in 
>>> the README 
>>> <https://github.com/googleads/googleads-java-lib#maven-artifacts>. If 
>>> you aren't using Maven, you can download the 
>>> *adwords-axis-jars-and-examples *archive on the releases page 
>>> <https://github.com/googleads/googleads-java-lib/releases>, which 
>>> contains a *lib* folder with all required dependencies.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Monday, March 5, 2018 at 9:41:33 AM UTC-5, goldenmaza wrote:
>>>>
>>>> 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) {
>>>> e.printStackTrace();
>>>> } catch (ApiException e) {
>>>> e.printStackTrace();
>>>> } catch (Exception e) {
>>>> e.printStackTrace();
>>>> }
>>>>
>>>> public void callAdWordsAPI() throws Exception, ApiException {
>>>> ...
>>>> AdGroupAdPage en

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 about the archive I have done already (my other forum post with 
Dhanya Sundararaju (AdWords API Team) as he suggested the same). But that 
does not solve the issue I got
as a result of this inclusion of jar files.

Thank you for your time! :)

Kind regards
Richard

Den måndag 5 mars 2018 kl. 17:57:57 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> 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 not in your 
> classpath indicates that you are missing some key dependencies. If it 
> helps, you can see the list of dependencies to add for Maven here in the 
> README <https://github.com/googleads/googleads-java-lib#maven-artifacts>. 
> If you aren't using Maven, you can download the 
> *adwords-axis-jars-and-examples *archive on the releases page 
> <https://github.com/googleads/googleads-java-lib/releases>, which 
> contains a *lib* folder with all required dependencies.
>
> Thanks,
> Josh, AdWords API Team
>
> On Monday, March 5, 2018 at 9:41:33 AM UTC-5, goldenmaza wrote:
>>
>> 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) {
>> e.printStackTrace();
>> } catch (ApiException e) {
>> e.printStackTrace();
>> } catch (Exception e) {
>> e.printStackTrace();
>> }
>>
>> public void callAdWordsAPI() throws Exception, ApiException {
>> ...
>> AdGroupAdPage entries = adService.get(selector);
>> ...
>> }
>>
>> Error:(104, 9) error: cannot access RemoteException
>> class file for java.rmi.RemoteException not found
>>
>> Error:(61, 52) error: incompatible types: ApiException cannot be 
>> converted to Throwable
>>
>> Error:(89, 46) error: cannot access Remote
>> class file for java.rmi.Remote not found
>>
>> Take care! :)
>>
>> Kind regards
>> Richard
>>
>>
>> Den måndag 5 mars 2018 kl. 15:06:46 UTC+1 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> 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 wrote:
>>>>
>>>> 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 this classpath issue? What file(s)? I also sit 
>>>> with Android Studio.
>>>>
>>>> Kind regards
>>>> Richard
>>>>
>>>> Den tisdag 12 maj 2015 kl. 15:47:23 UTC+2 skrev Josh Radcliff (AdWords 
>>>> API Team):
>>>>>
>>>>> Hi,
>>>>>
>>>>> That error suggests that your classpath is not configured correctly. 
>>>>> Please check out the section of our README on configuring dependencies 
>>>>> <https://github.com/googleads/googleads-java-lib#for-using-jars> and 
>>>>> let me know if you still have questions.
>>>>>
>>>>> Thanks,
>>>>> Josh, AdWords API Team
>>>>>
>>>>>>
>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/7ba0380d-1f50-4df6-8214-f826c4d4939b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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) {
e.printStackTrace();
} catch (ApiException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}

public void callAdWordsAPI() throws Exception, ApiException {
...
AdGroupAdPage entries = adService.get(selector);
...
}

Error:(104, 9) error: cannot access RemoteException
class file for java.rmi.RemoteException not found

Error:(61, 52) error: incompatible types: ApiException cannot be converted 
to Throwable

Error:(89, 46) error: cannot access Remote
class file for java.rmi.Remote not found

Take care! :)

Kind regards
Richard


Den måndag 5 mars 2018 kl. 15:06:46 UTC+1 skrev Josh Radcliff (AdWords API 
Team):
>
> 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 wrote:
>>
>> 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 this classpath issue? What file(s)? I also sit 
>> with Android Studio.
>>
>> Kind regards
>> Richard
>>
>> Den tisdag 12 maj 2015 kl. 15:47:23 UTC+2 skrev Josh Radcliff (AdWords 
>> API Team):
>>>
>>> Hi,
>>>
>>> That error suggests that your classpath is not configured correctly. 
>>> Please check out the section of our README on configuring dependencies 
>>> <https://github.com/googleads/googleads-java-lib#for-using-jars> and 
>>> let me know if you still have questions.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>>>
>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/8ad0725f-46a4-4315-901d-d8cf8bbc1ea5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 this classpath issue? What file(s)? I also sit with 
Android Studio.

Kind regards
Richard

Den tisdag 12 maj 2015 kl. 15:47:23 UTC+2 skrev Josh Radcliff (AdWords API 
Team):
>
> Hi,
>
> That error suggests that your classpath is not configured correctly. 
> Please check out the section of our README on configuring dependencies 
>  and let 
> me know if you still have questions.
>
> Thanks,
> Josh, AdWords API Team
>
>>
>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/6dfb9589-a708-4fa8-9f67-2dda661620d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Android Studio, Google Adwords API and dependencies

2018-03-04 Thread goldenmaza
Hello Dhanya

Thank you for helping me! :)

Do I really need everything in this 'jars and examples' archive? I just 
want to be able to load data from the AdWords API (AdWordsSession, 
AdWordsServicesInterface,
Credential, OfflineCredentials.Builder, AdWordsSession.Builder, 
AdGroupAdServiceInterface, SelectorBuilder, Selector, AdCampaign, AdGroup, 
AdGroupAd etc). I have no
need/interest in updating/removing data under AdWords API, or other API 
services for that matter.

I've no longer problems with my dependencies, but with these files, do I 
still need any of the stated *dependencies* under the *gradle.build* file?

Why am I not using Eclipse? In my career I develop with IntelliJ and with 
my private Android projects I sit with Android Studio. When I started on my 
second
project, as I prefer working on projects in parallel (not to get bored or 
stumped at times), I just created another Android Studio project instead of 
getting a third IDE
on the same workstation and for the time being Android Studio is enough for 
what I have to do.

Thank you for your help! =o]

Kind regards
Richard

Den fredag 2 mars 2018 kl. 20:37:10 UTC+1 skrev Dhanya Sundararaju (AdWords 
API Team):
>
> Hi,
>
> Since the issue you are facing is around dependencies, could you please 
> download the 'AdWords jars and examples' download(which already contains 
> the dependencies) in this 
>  section of the 
> client library and retry installation? Also, is there any specific reason 
> that you are using Android Studio and not eclipse/maven 
> 
> ?
>
> Regards,
> Dhanya, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/67eeb2ab-616d-4dd6-9ae7-63efd0c88d66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Android Studio, Google Adwords API and dependencies

2018-03-02 Thread goldenmaza
I have a problem resolving my dependencies and as always the official 
sources lack the details required to solve this problem and/or why certain
things might occur. Online guides have given examples of Eclipse and Maven, 
but since I neither sit with Eclipse or deal with Maven that
often I have no clue what to do.

In my project I would like to use the Google AdWords API, and I'm sitting 
with Android Studio 3.0.1, to do this I have tried the following:


1) Placed the Google API Client (+ Android, just incase) jar files under 
app/libs directory (name.jar + name-sources.jar).


2) The *build.gradle* file, under the *app* directory, have the following 
line under dependencies: *implementation 
'com.google.api-client:google-api-client:1.23.0'*


3) Same gradle file has the following as well, as that seemed to have 
solved a similar issue before:

android {
buildTypes {
debug { ... } // same content...
release { ... } // ...under both
}
}


4) Both build.gradle files (app and project) have the following in their 
respective locations (three different locations):

repositories {
jcenter()
google()
}


I continue having this problem regardless of what I try, once the third 
bullet above fixed a similar issue however, but not in this case and I 
still get the following:

Unable to resolve dependency for ':app@debug/compileClasspath': Could not 
resolve com.google.api-client:google-api-client:1.23.0. Open File Show 
Details

Unable to resolve dependency for ':app@release/compileClasspath': Could not 
resolve com.google.api-client:google-api-client:1.23.0. Open File Show 
Details


Under my class, as a result of the above, it can not find the following 
(one of many):

import com.google.api.ads.adwords.axis.v201710.cm.AdGroupAdServiceInterface;


I followed this guide for setting up my class: 
https://developers.google.com/adwords/api/docs/samples/java/basic-operations#get-expanded-text-ads


*What am I missing in this case?*

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/0f1185c1-a6c6-43a5-be29-f18c1250494d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.