Hi,
The new java library does indeed support the ClientLogin method of
authentication - although it is currently deprecated and we do recommend
using OAuth2 if you are building a new application.
The error you are seeing most commonly happens when there is a dependency
missing or if you have the wrong version of a dependency. Which version of
the java library are you using? Are you using maven? Do you have other
dependencies managed by maven?
If not using maven, did you add all the dependency jars to your classpath?
It's possible one of them uses an older version of a dependency our library
is using, which doesn't provide the required class.
- Kevin Winter
AdWords API Team
On Tuesday, January 15, 2013 8:42:22 AM UTC-5, Stamatina Thomaidou wrote:
>
> Confirmed also by me. I have the exact same problem. Now I will try only
> with OAuth 2.0.
>
> On Wednesday, October 31, 2012 9:14:01 PM UTC+1, Perry wrote:
>>
>> I have searched for answers to the this question all over the
>> documentation and web and was unable to find anything helpful. I am using
>> the Adwords API and migrating to version V201209, using the Java libraries.
>>
>> When I setup an AdWordsSession like so:
>>
>> String clientLoginToken = new
>> ClientLoginTokens.Builder().forApi(ClientLoginTokens.Api.ADWORDS).withEmailAndPassword(sEmail,
>>
>> sPassword).build().requestToken()
>> AdWordsSession session = new
>> AdWordsSession.Builder().withClientCustomerId(sClientId).withUserAgent("Custom").withClientLoginToken(clientLoginToken).withDeveloperToken(sDevToken).withEnvironment(AdWordsSession.Environment.PRODUCTION).build()
>>
>>
>> And then try to access my account like so:
>> InfoServiceInterface infoServiceInterface = new
>> AdWordsServices().get(session, InfoServiceInterface.class)
>>
>> I get a list of nasty errors with no explanation, including:
>> com.google.api.ads.common.lib.exception.ServiceException: Unexpected
>> Exception.
>> ...
>> Caused by: java.lang.reflect.InvocationTargetException
>> ...
>> Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for
>> javax.xml.parsers.DocumentBuilderFactory cannot be found
>>
>>
>> According to the documentation this should be possible, so I am not sure
>> why it continues to error against me. I have even tried filling in a
>> properties file and using the identical calls as in
>> https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/java/adwords/axis/v201209/accountmanagement/GetClientCustomerId.javabut
>> it still refuses to work. Any help at all would be appreciated.
>>
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en