AdWords API Re: AuthenticationError.CLIENT_EMAIL_INVALID

2010-03-16 Thread Achal Rastogi
Hi Eric,

I just upgraded our java client lib to 7.1.0. It resolved the memory
issue but I am still seeing a lot of
AuthenticationError.CLIENT_EMAIL_INVALID errors which failed our bid
update. Any suggestion on a workaround?

thanks
Jeff

On Mar 15, 7:17 am, AdWords API Advisor 
wrote:
> Hi Jeff,
>
> We recently pushed out an update that should help resolve these types
> of errors.  Please run your test again and let us know if you run into
> any problems.
>
> Best,
> - Eric Koleda, AdWords API Team
>
> On Mar 12, 6:29 pm, jeff  wrote:
>
> > got the error below during bid value update while we were stress
> > testing api 2009 migration. weird thing is it is intermittent for the
> > same email/account.
>
> > Caused by: AuthenticationError.CLIENT_EMAIL_INVALID@ ; trigger:'sam
> > +go...@...
>
> > we simply propagate the email to the credentials map like this:
> > credentials.put("clientId", clientMail);
>
> > any idea on what might be wrong?
>
> > thanks
> > Jeff
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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 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


AdWords API ssl broken pipe | connection reset by peer

2009-06-07 Thread Achal Rastogi

Hi,

Just checking to see if anyone is experiencing ssl connection failures
as well.

Here is the stack trace our logs are dumping out -

2009-06-07 22:28:38,263 ERROR [Thread-13486] (GoogleBidUploader.java:
202)- javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
2009-06-07 22:28:46,427 ERROR [Thread-13486] (GoogleBidUploader.java:
202)- One or more input elements failed validation.
2009-06-07 22:28:51,836 ERROR [Thread-13486] (Message.java:541)-
java.io.IOException:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer
(OutputRecord.java:283)
at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:
272)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord
(SSLSocketImpl.java:666)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write
(AppOutputStream.java:59)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
at org.apache.axis.utils.ByteArray.writeTo(ByteArray.java:375)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:265)
at org.apache.axis.Message.writeTo(Message.java:539)
at org.apache.axis.transport.http.HTTPSender.writeToSocket
(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:
138)
at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at
com.google.api.adwords.v13.CriterionServiceSoapBindingStub.updateCriteria_aroundBody16
(CriterionServiceSoapBindingStub.java:748)
at
com.google.api.adwords.v13.CriterionServiceSoapBindingStub.updateCriteria_aroundBody17$advice
(CriterionServiceSoapBindingStub.java:142)
at
com.google.api.adwords.v13.CriterionServiceSoapBindingStub.updateCriteria
(CriterionServiceSoapBindingStub.java:1)
at com.ojos.server.sem.entity.AdWords.updateCriteria(AdWords.java:
158)
at com.ojos.server.semversiontwo.upload.GoogleBidUploader.tryBatch
(GoogleBidUploader.java:225)
at
com.ojos.server.semversiontwo.upload.GoogleBidUploader.tryDifferentBatchSize
(GoogleBidUploader.java:197)
at
com.ojos.server.semversiontwo.upload.GoogleBidUploader.updateBidsAtGoogle
(GoogleBidUploader.java:104)
at
com.ojos.server.sem.commandhandlers.ModifyAttributesGoogleSearch.execute
(ModifyAttributesGoogleSearch.java:31)
at com.ojos.framework.queue.NetServerThread.run(NetServerThread.java:
85)
2009-06-07 22:28:51,839 ERROR [Thread-13486] (GoogleBidUploader.java:
202)- javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLException: java.net.SocketException: Broken pipe
2009-06-07 22:28:58,955 ERROR [Thread-13486] (GoogleBidUploader.java:
202)- One or more input elements failed validation.
2009-06-07 22:29:04,636 ERROR [Thread-13486] (Message.java:541)-
java.io.IOException:
java.net.SocketException: Broken pipe
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer
(OutputRecord.java:283)
at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:
272)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord
(SSLSocketImpl.java:666)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write
(AppOutputStream.java:59)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
at org.apache.axis.utils.ByteArray.writeTo(ByteArray.java:375)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:265)
at org.apache.axis.Message.writeTo(Message.java:539)
at org.apache.axis.transport.http.HTTPSender.writeToSocket
(HTTPSender.java:511)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:
138)
at org.apache.axis.strategies.InvocationStrategy.visit
(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(

AdWords API Re: Java Client Library Updated (v2.1.0)

2008-08-31 Thread Achal Rastogi

j2ee dependency might be removed but it still exist in includelib
folder and become part of full jar when built from source.

On Aug 28, 10:54 am, AdWords API Advisor
<[EMAIL PROTECTED]> wrote:
> An updated version of Java client library is available 
> fromhttp://code.google.com/p/google-api-adwords-java/. This is a minor
> release and includes the following changes,
>
>   - Removed j2ee dependency.
>   - Fixed dependencies in build.xml.
>   - Reduced size of the jar by 3x.
>
> Thanks to everyone who reported bugs and feature requests 
> athttp://code.google.com/p/google-api-adwords-java/issues/list.
>
> --Stan Grinberg
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~--~~~~--~~--~--~---



AdWords API Re: source code and compiled .jar do not appear to be the same in awapi_java_lib_1.0.1

2008-08-31 Thread Achal Rastogi

I compiled the source on my own and am successfully using it right
now. I faced similar issues, quick summary below:

1) Problem is this line :   ((AdWordsService)
obj).setServiceAccountant(new ServiceAccountant((Stub) obj));

this is line 173 of BaseCredentials.java - if you are not aware of
aspectj you might think that this is a bug and there is no such method
as setServiceAccountant on any of the stubs.

setServiceAccountant is defined on each stub using AspectJ ( look in
src/com/google/api/adwords/lib/WebServiceWrapper.aj for more
details) , also look at iajc target @ build.xml

2) I was facing similar issues because i was using loner jar ( i
already have other dependencies in my classpath), the full jar has all
dependencies so even aspectjrt.jar is part of it and if you built the
full jar on your own and use it , you will not face this issue. But
very few people would want to use full jar because of other
dependencies in it and higher chances of breaking xml parsing,
conflicting with jar files of tomcat, resin etc etc ( i tried and
immediately gave up :-) )

3) So other then loner jar i added aspectjrt.jar in my classpath and
everything works good now.

It was hard to figure this out and it is expected to mention these
kinda non-trivial run-time dependencies  in the release notes.


[EMAIL PROTECTED]









On Jul 31, 10:36 am, AdWords API Advisor
<[EMAIL PROTECTED]> wrote:
> Robert,
>
> Can you try using ant build that is shipped with the project
> (build.xml), to compile the sources? The build should automatically
> generate two jars, regular one and loner.
>
> --Stan
>
> On Jul 27, 11:01 am, robertjw <[EMAIL PROTECTED]> wrote:
>
> > Our code does explicitly state the API version when we create the
> > AdWordsUser. We create AdWordsUser like the following:
>
> >                 Map credentials = new HashMap();
> >                 credentials.put("applicationToken", apptkn);
> >                 credentials.put("developerToken", dvltkn );
> >                 credentials.put("useragent", usragt );
> >                 credentials.put("email", email );
> >                 credentials.put("password", passwd );
> >                 credentials.put("version", "v12");
> >                 AdWordsUser myMCC = new AdWordsUser( credentials );
>
> > Furthermore this code DOES work with the compiled version 12 api
> > (adwords-api-1.0.1.jar). We get the classpath error when we try and
> > use the source (compiling it ourselves).
> > Line 172 of the source code of the class:
> > com.google.api.adwords.lib.BaseCredentials is:
>
> >       ((AdWordsService) obj).setServiceAccountant(new
> > ServiceAccountant((Stub) obj));
>
> > Which requires that the obj in question be an instance of
> > AdWordsService
> > obj in our case is an instance of:
> > com.google.api.adwords.v12.AccountServiceSoapBindingStub
> > Which I believe is NOT an instance AdWordsService (in the source
> > code).
>
> > However when we decompiled the AccountServiceSoapBindingStub.class
> > extracted from the binary source (.jar) we found that this class
> > implements com.google.api.adwords.v12.AccountService (i.e. is an
> > instance of AccountService)
>
> > Thanks
>
> > On Jul 25, 6:12 pm, AdWords API Advisor <[EMAIL PROTECTED]>
> > wrote:
>
> > > Hello Robert,
>
> > >  Hmmm, I'm not positive about mis-matches between the compiled .jar
> > > and the provided source (and can ask a colleague about that if need
> > > be), but I've seen that sort of error you describe when there is a
> > > version mismatch between the version of the API (11 or 12) you specify
> > > that you're using in your credentials and the corresponding version of
> > > API whose support libraries you're import-ing into your code. If
> > > you're not specifying an explicit version of the API in your
> > > credentials (either via a "version=1X" line in your ~/
> > > adwords.properties file or via the AdWordsUser() constructor) then
> > > it's going to default to the earliest supported version, 11.
>
> > >  Can you check to make sure your import-ed libraries match the version
> > > in your credentials?
>
> > > Cheers,
> > > -Jeff Posnick, AdWords API Team
>
> > > On Jul 24, 6:46 am, robertjw <[EMAIL PROTECTED]> wrote:
>
> > > > We were trying to use the source code of the class:
> > > > com.google.api.adwords.v12.AccountServiceSoapBindingStub
>
> > > > and noticed that it has this class definition:
>
> > > > public class AccountServiceSoapBindingStub extends
> > > > org.apache.axis.client.Stub implements
> > > > com.google.api.adwords.v12.AccountInterface
>
> > > > Compiling and using this class gives all sort of problems, esp this
> > > > type:
> > > > java.lang.ClassCastException:
> > > > com.google.api.adwords.v12.AccountServiceSoapBindingStub ...
>
> > > > This error does not occur when we use the adwords-api-1.0.1.jar
> > > > provided in the same distribution, so we decompiled the
> > > > AccountServiceSoapBindingStub.class and found that its definition was
> > > > different than