We ran into the same issue after moving to the .NET 14.6 library. 

To fix this we had to edit source and recompile the Google.AdWords.dll. 
Line 45 in ReportUtilities.cs (Util\Reports) was updated:

from -

    private const string DEFAULT_REPORT_VERSION = "v201109";

to -

    private const string DEFAULT_REPORT_VERSION = "v201206"; //or to 
whichever version you are using... looks like v201109_1 in your case

Now we no longer receive the "invalid content" error. 

As for the other issue of code execution hanging we did not experience this 
enough to see a pattern or problem. For this type of issue maybe RX 
"ToObservable" could help if DownloadClientReport is run as a Task:

Add RX (System.Reactive.dll) and ExtensionMethod:

        public static Task TimeoutAfter(this Task task, int 
millisecondsTimeout) {
            return 
task.ToObservable().Timeout(TimeSpan.FromMilliseconds(millisecondsTimeout)).ToTask();
        }

I learned about this from here (credit to the first comment there) - 
http://blogs.msdn.com/b/pfxteam/archive/2011/11/10/10235834.aspx

On Wednesday, July 4, 2012 5:26:05 AM UTC-7, Alexander Nitschke wrote:
>
> I have a few problems since upgrading to the .NET 14.5.0 library (newest 
> version as of now):
>
> ReportUtilities.DownloadClientReport doesn't work when used with v201109_1 
> ReportDefinition. It gives the following error:
> Report contents are invalid. - !!!2|||-1|||cvc-complex-type.2.4.a: Invalid 
> content was found starting with element 'selector'. One of '{"
> https://adwords.google.com/api/adwords/cm/v201109":id, "
> https://adwords.google.com/api/adwords/cm/v201109":selector}' is 
> expected.???
>
> Ok, so I use the old v201109 ReportDefinition which works... actually, 
> only so far. The DownloadClientReport just hangs itself randomly in roughly 
> 1 out of 200 reports, no rhyme or reason to these reports. This is 
> happening without an exception, the code execution just hangs there and 
> never finishes (several hours at least, probably "never" is correct).
>
> This is very annoying since I have to stop the background process, reset a 
> date in our database and start it again, so that report downloading can 
> continue - and this is supposed to happen at 4:00 in the night, so that the 
> previous day data is up and running for our clients as soon as possible. 
> Not to mention that downloading and working with the report data (there is 
> a lot to be done with our bid automatization algorithms) slows down our 
> server, so it usually happens from 4 a.m. to 6 a.m. But since we have more 
> than 200 clients there is hardly a day since the upgrade when I have to 
> stop the process and start it again, and the first hours of the day are 
> running on a slower server.
>
> If DownloadClientReport would throw an exception at least, or allow for a 
> time limit, I could work out a workaround. But it doesn't, and the Try ... 
> Catch routine also doesn't allow for a time limit.
>
> Could you please look into this issue, and correct it soon? Also, any tips 
> for a workaround are very helpful, especially since I'm scheduled for a two 
> week vacation next Monday, and already see myself dealing every morining 
> with this issue.
>
>
On Wednesday, July 4, 2012 5:26:05 AM UTC-7, Alexander Nitschke wrote:
>
> I have a few problems since upgrading to the .NET 14.5.0 library (newest 
> version as of now):
>
> ReportUtilities.DownloadClientReport doesn't work when used with v201109_1 
> ReportDefinition. It gives the following error:
> Report contents are invalid. - !!!2|||-1|||cvc-complex-type.2.4.a: Invalid 
> content was found starting with element 'selector'. One of '{"
> https://adwords.google.com/api/adwords/cm/v201109":id, "
> https://adwords.google.com/api/adwords/cm/v201109":selector}' is 
> expected.???
>
> Ok, so I use the old v201109 ReportDefinition which works... actually, 
> only so far. The DownloadClientReport just hangs itself randomly in roughly 
> 1 out of 200 reports, no rhyme or reason to these reports. This is 
> happening without an exception, the code execution just hangs there and 
> never finishes (several hours at least, probably "never" is correct).
>
> This is very annoying since I have to stop the background process, reset a 
> date in our database and start it again, so that report downloading can 
> continue - and this is supposed to happen at 4:00 in the night, so that the 
> previous day data is up and running for our clients as soon as possible. 
> Not to mention that downloading and working with the report data (there is 
> a lot to be done with our bid automatization algorithms) slows down our 
> server, so it usually happens from 4 a.m. to 6 a.m. But since we have more 
> than 200 clients there is hardly a day since the upgrade when I have to 
> stop the process and start it again, and the first hours of the day are 
> running on a slower server.
>
> If DownloadClientReport would throw an exception at least, or allow for a 
> time limit, I could work out a workaround. But it doesn't, and the Try ... 
> Catch routine also doesn't allow for a time limit.
>
> Could you please look into this issue, and correct it soon? Also, any tips 
> for a workaround are very helpful, especially since I'm scheduled for a two 
> week vacation next Monday, and already see myself dealing every morining 
> with this issue.
>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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