Found the answer: http://code.google.com/apis/adwords/v2009/docs/reference/CampaignService.DateError.html
format should be yyyyMMdd and not yyyy-MM-dd as implied in documentation here: http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.StatsSelector.html On Nov 3, 2:48 pm, alal <ada...@etax.com.au> wrote: > Hi, > > I'm not sure why i am getting an DateError.INVALID_STRING_DATE error > when trying to get stats using the AdGroupCrierionService (v200906 > + .net lib 4.1.0). > > Below are the Soap Req. and Resp. for 3 variation on date range format > (using yyyy-mm-dd per the online documentation for daterange). > > Thanks > > -------------------------------------------------- > > -----SoapRequest at 3/11/2009 2:37:05 PM----- > POST /api/adwords/cm/v200906/AdGroupCriterionService HTTP/1.0 > Host: adwords.google.com:443 > User-agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 2.0.50727.4200) > Content-type: text/xml; charset=utf-8 > Content-length: 1027 > SOAPAction: "get" > -------------------------------------------------- > <?xml version="1.0" encoding="utf-8"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <soap:Header> > <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/ > v200906"> > <applicationToken>********HMMw</applicationToken> > <authToken>********</authToken> > <developerToken>********6vMA</developerToken> > </RequestHeader> > </soap:Header> > <soap:Body> > <get xmlns="https://adwords.google.com/api/adwords/cm/v200906"> > <selector> > <idFilters> > <adGroupId>293736192</adGroupId> > </idFilters> > <criterionUse>BIDDABLE</criterionUse> > <userStatuses>ACTIVE</userStatuses> > <userStatuses>PAUSED</userStatuses> > <statsSelector> > <dateRange> > <min>2009-11-2</min> > <max>2009-11-2</max> > </dateRange> > </statsSelector> > </selector> > </get> > </soap:Body> > </soap:Envelope> > -------------------------------------------------- > > -----SoapResponse at 3/11/2009 2:37:06 PM----- > Content-type: text/xml; charset=UTF-8 > Content-length: 842 > SOAPAction: "get" > -------------------------------------------------- > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>DateError.INVALID_STRING_DATE @ while invoking > public abstract > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.AdGroupCriterionPage > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.AdGroupCriterionServiceInterface.get > (com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v20090 > 6.jaxbgen.AdGroupCriterionSelector) > throws > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.ApiException_Exception > with params > [com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v20090 > 6.jaxbgen.adgroupcriterionselec...@137b7a4].</ > faultstring> > </soap:Fault> > </soap:Body> > </soap:Envelope> > -------------------------------------------------- > > -----SoapRequest at 3/11/2009 2:37:42 PM----- > POST /api/adwords/cm/v200906/AdGroupCriterionService HTTP/1.0 > Host: adwords.google.com:443 > User-agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 2.0.50727.4200) > Content-type: text/xml; charset=utf-8 > Content-length: 1045 > SOAPAction: "get" > -------------------------------------------------- > <?xml version="1.0" encoding="utf-8"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <soap:Header> > <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/ > v200906"> > <applicationToken>********HMMw</applicationToken> > <authToken>********</authToken> > <developerToken>********6vMA</developerToken> > </RequestHeader> > </soap:Header> > <soap:Body> > <get xmlns="https://adwords.google.com/api/adwords/cm/v200906"> > <selector> > <idFilters> > <adGroupId>293736192</adGroupId> > </idFilters> > <criterionUse>BIDDABLE</criterionUse> > <userStatuses>ACTIVE</userStatuses> > <userStatuses>PAUSED</userStatuses> > <statsSelector> > <dateRange> > <min>2009-11-2 00:00:00</min> > <max>2009-11-2 24:00:00</max> > </dateRange> > </statsSelector> > </selector> > </get> > </soap:Body> > </soap:Envelope> > -------------------------------------------------- > > -----SoapResponse at 3/11/2009 2:37:43 PM----- > Content-type: text/xml; charset=UTF-8 > Content-length: 841 > SOAPAction: "get" > -------------------------------------------------- > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>DateError.INVALID_STRING_DATE @ while invoking > public abstract > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.AdGroupCriterionPage > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.AdGroupCriterionServiceInterface.get > (com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v20090 > 6.jaxbgen.AdGroupCriterionSelector) > throws > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.ApiException_Exception > with params > [com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v20090 > 6.jaxbgen.adgroupcriterionselec...@538c33].</ > faultstring> > </soap:Fault> > </soap:Body> > </soap:Envelope> > -------------------------------------------------- > > -----SoapRequest at 3/11/2009 2:39:20 PM----- > POST /api/adwords/cm/v200906/AdGroupCriterionService HTTP/1.0 > Host: adwords.google.com:443 > User-agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client > Protocol 2.0.50727.4200) > Content-type: text/xml; charset=utf-8 > Content-length: 1027 > SOAPAction: "get" > -------------------------------------------------- > <?xml version="1.0" encoding="utf-8"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <soap:Header> > <RequestHeader xmlns="https://adwords.google.com/api/adwords/cm/ > v200906"> > <applicationToken>********HMMw</applicationToken> > <authToken>********</authToken> > <developerToken>********6vMA</developerToken> > </RequestHeader> > </soap:Header> > <soap:Body> > <get xmlns="https://adwords.google.com/api/adwords/cm/v200906"> > <selector> > <idFilters> > <adGroupId>293736192</adGroupId> > </idFilters> > <criterionUse>BIDDABLE</criterionUse> > <userStatuses>ACTIVE</userStatuses> > <userStatuses>PAUSED</userStatuses> > <statsSelector> > <dateRange> > <min>2009-11-2</min> > <max>2009-11-3</max> > </dateRange> > </statsSelector> > </selector> > </get> > </soap:Body> > </soap:Envelope> > -------------------------------------------------- > > -----SoapResponse at 3/11/2009 2:39:21 PM----- > Content-type: text/xml; charset=UTF-8 > Content-length: 841 > SOAPAction: "get" > -------------------------------------------------- > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soap:Body> > <soap:Fault> > <faultcode>soap:Server</faultcode> > <faultstring>DateError.INVALID_STRING_DATE @ while invoking > public abstract > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.AdGroupCriterionPage > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.AdGroupCriterionServiceInterface.get > (com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v20090 > 6.jaxbgen.AdGroupCriterionSelector) > throws > com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v200906 > .jaxbgen.ApiException_Exception > with params > [com.google.ads.api.services.campaignmgmt.criterion.adgroupcriterion.v20090 > 6.jaxbgen.adgroupcriterionselec...@faca09].</ > faultstring> > </soap:Fault> > </soap:Body> > </soap:Envelope> > -------------------------------------------------- -- 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-...@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.