Hi S*,

The error is due to an incorrect namespace on the dateRange element.
This element must be in the /info/ namespace, although the child min
and max elements must be in the /cm/ namespace.

  <get xmlns="https://adwords.google.com/api/adwords/info/v200909";>
     <selector xsi:type="InfoSelector">
        <dateRange>
           <min xmlns="https://adwords.google.com/api/adwords/cm/
v200909" xsi:type="string">20081111</min>
           <max xmlns="https://adwords.google.com/api/adwords/cm/
v200909" xsi:type="string">20081112</max>
        </dateRange>
        <apiUsageType xsi:type="ApiUsageType">UNIT_COUNT</
apiUsageType>
     </selector>
  </get>

Best,
- Eric Koleda, AdWords API Team

On Nov 30, 5:52 am, sm1 <smita.gaw...@gmail.com> wrote:
> Hello support,
>
> I am trying to invoke the get in Infoservice with the following SOAP
> request.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:ns1="https://adwords.google.com/api/adwords/info/v200909";
> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v200909"; >
> <SOAP-ENV:Header>
> <ns1:RequestHeader SOAP-ENC:arrayType="xsd:string[4]">
> <ns2:authToken xsi:type="xsd:string">**********</ns2:authToken>
> <ns2:useragent xsi:type="xsd:string">*********</ns2:useragent>
> <ns2:developerToken xsi:type="xsd:string">********************</
> ns2:developerToken>
> <ns2:applicationToken xsi:type="xsd:string">******************</
> ns2:applicationToken>
> </ns1:RequestHeader>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <get xmlns ="https://adwords.google.com/api/adwords/info/v200909";>
> <selector xmlns ="https://adwords.google.com/api/adwords/info/v200909";
> xsi:type="InfoSelector">
> <dateRange xmlns="https://adwords.google.com/api/adwords/cm/v200909";>
> <min xsi:type="string">20081111</min>
> <max xsi:type="string">20081112</max>
> </dateRange>
> <apiUsageType xmlns ="https://adwords.google.com/api/adwords/info/
> v200909" xsi:type="ApiUsageType">UNIT_COUNT</apiUsageType>
> </selector>
> </get>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> Each time I m getting the error :
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
> envelope/"><soap:Header><ResponseHeader xmlns:ns2="https://
> adwords.google.com/api/adwords/cm/v200909" xmlns="https://
> adwords.google.com/api/adwords/info/
> v200909"><ns2:requestId>b7a4446177a748ad8fbc461b7150707a</
> ns2:requestId><ns2:operations>1</ns2:operations><ns2:responseTime>278</
> ns2:responseTime><ns2:units>1</ns2:units></ResponseHeader></
> soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</
> faultcode><faultstring>[ApiUsageError.INVALID_DATE_RANGE @
> selector.infoSelector]</faultstring><detail><ApiExceptionFault
> xmlns="https://adwords.google.com/api/adwords/info/v200909";
> xmlns:ns2="https://adwords.google.com/api/adwords/cm/
> v200909"><ns2:message>[ApiUsageError.INVALID_DATE_RANGE @
> selector.infoSelector]</
> ns2:message><ns2:ApplicationException.Type>ApiException</
> ns2:ApplicationException.Type><ns2:errors xmlns:xsi="http://www.w3.org/
> 2001/XMLSchema-instance"
> xsi:type="ApiUsageError"><ns2:fieldPath>selector.infoSelector</
> ns2:fieldPath><ns2:trigger></
> ns2:trigger><ns2:ApiError.Type>ApiUsageError</
> ns2:ApiError.Type><reason>INVALID_DATE_RANGE</reason></ns2:errors></
> ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
>
> Kindly let me know where it is going wrong.
>
> Thanks in advance.
>
> Regards,
> S*

--

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