Hello,

 Okay, sorry about that. It looks like the engineering team snuck in a
few changes to the v200902 Sandbox, including some fields that were
added to the response message you're getting back. The Java client
library doesn't know how to deserialize them properly, and that's
leading to the exception you're seeing.

 An upcoming release of the Java client library (and the other client
libraries as well) will support these changes to v200902, and we'll
post about that when it's ready. In the meantime, if you feel so
inclined, you can re-run the build script for the Java client library
so that it picks up the latest version of the WSDLs, which should
contain the information needed to properly deserialize.

Cheers,
-Jeff Posnick, AdWords API Team


On Jun 2, 12:50 am, "qme...@gmail.com" <qme...@gmail.com> wrote:
> Hi Jeff,
>
> I downloaded the new version 4.0.1 of the v200902 Java client library.
>
> Here are my steps :
> - I created a new campaign with success
> - I created a new adgroup with success
> - I tried to create a new ImageAd... it failed with the same error.
> Even with the TextAd, it didn't succeed.
>
> When I tried to run the GetAllAdsDemo class with my adgroup id, I have
> the same error. But with the adgroup id from the adwords-api-4.0.1 I
> have the following message : "No ads were returned."
>
> --------------------------------------------------------------------------- 
> -----
> Error message :
>
> AxisFault
>  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> Server.userException
>  faultSubcode:
>  faultString: org.xml.sax.SAXException: Invalid element in
> com.google.api.adwords.v200902.AdId - AdId.Type
>  faultActor:
>  faultNode:
>  faultDetail:
>         {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException:
> Invalid element in com.google.api.adwords.v200902.AdId - AdId.Type
>         at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild
> (BeanDeserializer.java:258)
>         at org.apache.axis.encoding.DeserializationContext.startElement
> (DeserializationContext.java:1035)
>         at org.apache.axis.message.SAX2EventRecorder.replay
> (SAX2EventRecorder.java:165)
>         at org.apache.axis.message.MessageElement.publishToHandler
> (MessageElement.java:1141)
>         at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:
> 236)
>         at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>         at org.apache.axis.client.Call.invoke(Call.java:2467)
>         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.v200902.AdGroupAdServiceSoapBindingStub.mutate
> (AdGroupAdServiceSoapBindingStub.java:1062)
>         at v200902.AddImageAdDemo.main(AddImageAdDemo.java:74)
>
> --------------------------------------------------------------------------- 
> -----
>
> Is it possible that the response message from the sandbox didn't match
> to the java client object ?
>
> Thanks for your help.
>
> Cheers mate.
> Qmepop
>
> On Jun 2, 1:31 am, AdWords API Advisor <adwordsapiadvi...@google.com>
> wrote:
>
>
>
> > Hello,
>
> >  Could you try giving the v200902 code in the Java client library a
> > try?
>
> >  http://code.google.com/p/google-api-adwords-java/
>
> > I'm told by the person who maintains the Java code samples and
> > libraries on our team that the code in the client library might be
> > more up to date than the sample code that was previously published.
>
> >  FYI, we're anticipating one or more releases with breaking changes
> > for the v200902 Sandbox within the next few weeks. We plan on
> > releasing new sample code and client libraries to address these
> > breaking changes soon after they're made on the server.
>
> > Cheers,
> > -Jeff Posnick, AdWords API Team
>
> > On May 31, 9:59 pm, "qme...@gmail.com" <qme...@gmail.com> wrote:
>
> > > I just tried to run the original AddTextAd class with my login details
> > > and the adGroupId which was already created and I've got the same
> > > error :
>
> > > ---------------------------------------------------------------------------
> > >  ----
> > > AxisFault
> > >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> > > Server.userException
> > >  faultSubcode:
> > >  faultString: org.xml.sax.SAXException: Invalid element in
> > > com.google.api.adwords.v200902.AdId - AdId.Type
> > > ---------------------------------------------------------------------------
> > >  ----
>
> > > Sometimes I have this error too (same for GetAllAds) :
>
> > > AxisFault
> > >  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
> > >  faultSubcode:
> > >  faultString: Fault occurred while processing.
>
> > > On Jun 1, 10:47 am, "qme...@gmail.com" <qme...@gmail.com> wrote:
>
> > > > I'm using the v200902 and the java samples.
>
> > > > I tried the GetAllAds class and the AddImageAd class. Both don't work
> > > > as well.
>
> > > > On May 30, 2:31 am, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > > wrote:
>
> > > > > Hello Qmepop,
>
> > > > >  Which version of the AdWords API are you trying to use? Which client
> > > > > library, if any, are you using? The error message you're getting is
> > > > > associated with v200902 of the AdWords API. I just tried creating an
> > > > > image ad in the v200902 Sandbox environment and it succeeded, so I
> > > > > think there's some underlying issue here.
>
> > > > > Cheers,
> > > > > -Jeff Posnick, AdWords API Team
>
> > > > > On May 29, 12:55 am, "qme...@gmail.com" <qme...@gmail.com> wrote:
>
> > > > > > Hi,
>
> > > > > > Since wednesday, I can't create any ImageAd to the Sandbox and even 
> > > > > > if
> > > > > > to run the GetAllAds class.
>
> > > > > > I changed nothing in my classes, so...
>
> > > > > > Here is the error message :
> > > > > > "Invalid element in com.google.api.adwords.v200902.AdId - AdId.Type"
>
> > > > > > Cheers,
> > > > > > Qmepop
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to