Hi Timothy,

Please try adding "dateRangeType" tag after the "reportType",
like this <dateRangeType>CUSTOM_DATE</dateRangeType>.

Best,
- Takeshi, AdWords API team

On Tuesday, October 23, 2012 1:12:02 PM UTC+9, Timothy Klim wrote:
>
> Hi!
>
> I have request xml like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <reportDefinition xmlns="https://adwords.google.com/api/adwords/cm/v201209
> ">
>   <selector>
>     <fields>AdGroupId</fields>
>     <fields>Id</fields>
>     <fields>Status</fields>
>     <fields>AveragePosition</fields>
>     <fields>Clicks</fields>
>     <fields>Cost</fields>
>     <fields>Date</fields>
>     <fields>DisplayUrl</fields>
>     <fields>Impressions</fields>
>     <predicates>
>       <field>CampaignId</field>
>       <operator>IN</operator>
>       <values>775149</values>
>       <values>775154</values>
>     </predicates>
>     <dateRange>
>       <min>20121023</min>
>       <max>20121023</max>
>     </dateRange>
>   </selector>
>   <reportName>Report</reportName>
>   <reportType>AD_PERFORMANCE_REPORT</reportType>
>   <downloadFormat>GZIPPED_XML</downloadFormat>
>   <includeZeroImpressions>false</includeZeroImpressions>
> </reportDefinition>
>
> on `post` 
> https://adwords-sandbox.google.com/api/adwords/reportdownload/v201209
>
> but I got error:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <reportDownloadError>
>     <ApiError>
>         <type>ReportDownloadError.INVALID_REPORT_DEFINITION_XML</type>
>         <trigger>Invalid ReportDefinition Xml: cvc-complex-type.2.4.a: 
> Invalid content was found starting with element 'downloadFormat'. One of '{"
> https://adwords.google.com/api/adwords/cm/v201209":dateRangeType}' is 
> expected.</trigger>
>         <fieldPath></fieldPath>
>     </ApiError>
> </reportDownloadError>
>
> What I'm doing wrong? Thank you.
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to