Well done Eric, the problem was due to my adwords-api jar. I added the latest one and now everything is much better.
Thanks for your help. Cheers, Qmeapi On Sep 18, 7:42 am, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Qmeapi, > > The SOAP XML response appears to be correctly formatted. My guess is > that your Java stub classes aren't aware of the stats field. Did you > generated the stub classes yourself using Axis? Have you tried re- > generating them again from the WSDL? > > Best, > - Eric > > On Sep 17, 7:41 am, Qmeapi <qme...@gmail.com> wrote: > > > > > Hi Eric, > > > I'm using v200906. > > > Here is the SOAP XML response : > > > <?xml version="1.0" encoding="UTF-8"?> > > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > > <soap:Header> > > <ResponseHeader > > xmlns="https://adwords.google.com/api/adwords/cm/ > > v200906"> > > > > <requestId>874c9a90feab1139938bbe2bcd588dfa</requestId> > > <operations>1</operations> > > <responseTime>192</responseTime> > > <units>1</units> > > </ResponseHeader> > > </soap:Header> > > <soap:Body> > > <getResponse > > xmlns="https://adwords.google.com/api/adwords/cm/ > > v200906"> > > <rval> > > <totalNumEntries>1</totalNumEntries> > > <Page.Type>AdGroupCriterionPage</Page.Type> > > <entries xsi:type="BiddableAdGroupCriterion" > > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > <adGroupId>1413627166</adGroupId> > > <criterion xsi:type="Keyword"> > > <id>10003970</id> > > > > <Criterion.Type>Keyword</Criterion.Type> > > <text>dog</text> > > <matchType>BROAD</matchType> > > </criterion> > > > > <AdGroupCriterion.Type>BiddableAdGroupCriterion > > </AdGroupCriterion.Type> > > <userStatus>ACTIVE</userStatus> > > > > <systemServingStatus>ELIGIBLE</systemServingStatus> > > > > <approvalStatus>APPROVED</approvalStatus> > > <bids > > xsi:type="BudgetOptimizerAdGroupCriterionBids"> > > > > <AdGroupCriterionBids.Type>BudgetOptimizerAdGroupCriterionBids > > </AdGroupCriterionBids.Type> > > <proxyBid> > > <amount> > > > > <ComparableValue.Type>Money</ComparableValue.Type> > > > > <microAmount>10000</microAmount> > > </amount> > > </proxyBid> > > </bids> > > <firstPageCpc> > > <amount> > > > > <ComparableValue.Type>Money</ComparableValue.Type> > > > > <microAmount>60000</microAmount> > > </amount> > > </firstPageCpc> > > <qualityInfo> > > > > <qualityScore>7</qualityScore> > > </qualityInfo> > > <stats> > > <network>SEARCH</network> > > > > <Stats.Type>Stats</Stats.Type> > > </stats> > > </entries> > > </rval> > > </getResponse> > > </soap:Body> > > </soap:Envelope> > > > Cheers, > > Qmeapi > > > On Sep 17, 2:37 am, AdWords API Advisor <adwordsapiadvi...@google.com> > > wrote: > > > > Hi Qmeapi, > > > > I assume you are using the AdWords API Java Client Library. If so, > > > which version? Also, could you post the SOAP XML response that is > > > received? It appears as if there is a problem unmarshaling the SOAP > > > XML objects back to Java objects. > > > > Best, > > > - Eric > > > > On Sep 16, 3:53 am, Qmeapi <qme...@gmail.com> wrote: > > > > > Hi Eric, thanks for your reply. > > > > > Concerning my error I think it comes from Java. > > > > > Here is my error information : > > > > > WARNING: AxisFault > > > > faultCode: {http://schemas.xmlsoap.org/soap/envelope/} > > > > Server.userException > > > > faultSubcode: > > > > faultString: org.xml.sax.SAXException: Invalid element in > > > > com.google.api.adwords.v200906.BiddableAdGroupCriterion - stats > > > > faultActor: > > > > faultNode: > > > > faultDetail: > > > > > > > > {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: > > > > Invalid element in > > > > com.google.api.adwords.v200906.BiddableAdGroupCriterion - stats > > > > 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.v200906.AdGroupCriterionServiceSoapBindingStub.get > > > > (AdGroupCriterionServiceSoapBindingStub.java:840) > > > > > Cheers. > > > > Qmeapi > > > > > On Sep 16, 8:05 am, AdWords API Advisor <adwordsapiadvi...@google.com> > > > > wrote: > > > > > > Hi Qmeapi, > > > > > > I tried using your exact code, and it worked correctly for me, as did > > > > > GetActiveCriteriaDemo. Is the error coming in through the SOAP XML > > > > > response or being generated by Java? > > > > > > Best, > > > > > - Eric Koleda, AdWords API Team > > > > > > On Sep 15, 4:14 am, Qmeapi <qme...@gmail.com> wrote: > > > > > > > Hi adwords team, > > > > > > > I have a problem with the Keyword Approval Status. I need to get > > > > > > this > > > > > > value from the adwords api. I'm using the v200906 with Java. > > > > > > > I defined an AdGroupCriterionSelector and I set an IdFilter and a > > > > > > CriterionUse. However I always get an error like : > > > > > > "Invalid element in > > > > > > com.google.api.adwords.v200906.BiddableAdGroupCriterion - stats". > > > > > > > Here is my code : > > > > > > // Set the selector > > > > > > AdGroupCriterionSelector selector = new AdGroupCriterionSelector(); > > > > > > AdGroupCriterionIdFilter adGroupCriterion = new > > > > > > AdGroupCriterionIdFilter(); > > > > > > adGroupCriterion.setAdGroupId(adGroupId); > > > > > > adGroupCriterion.setCriterionId(keywordId); > > > > > > selector.setIdFilters(new AdGroupCriterionIdFilter[] > > > > > > { adGroupCriterion }); > > > > > > selector.setCriterionUse(CriterionUse.BIDDABLE); > > > > > > > // Get the keyword. > > > > > > AdGroupCriterionPage adGroupCriterionPage = > > > > > > adGroupCriterionService.get > > > > > > (selector); > > > > > > BiddableAdGroupCriterion biddableAdGroupCriterion = > > > > > > (BiddableAdGroupCriterion) adGroupCriterionPage.getEntries(0); > > > > > > > I tried to use the sample GetActiveCriteriaDemo from your samples > > > > > > code > > > > > > but without success. I've got the same error : "Invalid element in > > > > > > com.google.api.adwords.v200906.BiddableAdGroupCriterion - stats". > > > > > > > Is there anything wrong I did or I missed ? or is it coming from > > > > > > v200906 services ? > > > > > > > Let me know please, this is important for my project. > > > > > > > Cheers, > > > > > > Qmeapi- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---