Hi Subrata,

What report type is it that you are running? Did you see if the column 
names remain unchanged in the new version (v201306) as well?

Cheers,
Anash P. Oommen,
AdWords API Advisor

On Monday, September 30, 2013 7:40:00 PM UTC+5:30, Subrata Sarkar wrote:
>
> Hi,
> Till Friday everything was working but suddenly since this morning I have 
> started getting this error. Nothing has been changed, nothing has been 
> updated (I am using .NET client library v201306, migration from v201209 was 
> done 2 months back).
>
>
> *The order of fields in ReportDefinition is like this:*
>
> var reportDefinition = new ReportDefinition
> {
>     reportName = ReportName,
>     reportType = ReportType,
>     dateRangeType = ReportDefinitionDateRangeType.CUSTOM_DATE,
>     includeZeroImpressions = true,
>     downloadFormat = DownloadFormat.XML,
>     selector = selector
> };
>
> *And the selector has been defined like this:*
>
> selector.fields = new[]
> {    PerformanceSelector.Date,
>     PerformanceSelector.KeywordId,
>     PerformanceSelector.KeywordText,
>     PerformanceSelector.AccountName,
>     PerformanceSelector.CampaignId,
>     PerformanceSelector.CampaignName,
>     PerformanceSelector.AdGroupId,
>     PerformanceSelector.AdGroupName,
>     PerformanceSelector.KeywordMatchType,
>     PerformanceSelector.Impressions,
>     PerformanceSelector.Clicks,
>     PerformanceSelector.AveragePosition,
>     PerformanceSelector.Cost,
>     PerformanceSelector.AverageCpc,
>     PerformanceSelector.ClickThroughRate,
>     PerformanceSelector.Conversions,
>     PerformanceSelector.ConversionRate,
>     PerformanceSelector.CostPerConversion,
> };
>  
> dates = new DateRange { min = String.Format("{0:yyyyMMdd}", StartDate), max = 
> String.Format("{0:yyyyMMdd}", EndDate) };
> selector.dateRange = dates;
>
> Completely screwed up!! Please tell me what's gone wrong suddenly :(
>
>
>
> On Tuesday, 23 October 2012 14:13:13 UTC+5:30, Timothy Klim wrote:
>>
>> Yes, right. I need sleep before question posting :).
>> Thank you.
>>
>> On Tuesday, October 23, 2012 9:11:43 AM UTC+4, Takeshi Hagikura wrote:
>>>
>>> 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 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

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to