Hi P.W.,

The format for v2009 should be yyyyMMdd.  For example:

  ('20091130','20091215')

Best,
- Eric Koleda, AdWords API Team

On Nov 26, 12:07 pm, phpoo <phpoo...@hotmail.com> wrote:
> Enjoying your answer above
>
> But the format that I'm walking in the correct format
> ('2009-11-30','2009-12-15'), and returns me this message
>
> "SoapFault Object ( [message:protected] =>
> DateError.INVALID_STRING_DATE @ while invoking public abstract
> com.google.ads.api.services.campaignmgmt.ad.adgroupad.AdGroupAdReturnValue
> com.google.ads.api.services.campaignmgmt.ad.adgroupad.AdGroupAdService.muta te
> (java.util.List) throws
> com.google.ads.api.services.common.error.ApiException with params"
>
> help-me
> P.W
>
> On Nov 3, 2:12 am, alal <ada...@etax.com.au> wrote:
>
>
>
> > Found the 
> > answer:http://code.google.com/apis/adwords/v2009/docs/reference/CampaignServ...
>
> > format should be yyyyMMdd and not yyyy-MM-dd as implied in
> > documentation here:  
> > http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCrite...
>
> > 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_DATEerror
> > > 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...
>
> read more »

--

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.


Reply via email to