Hello,

 My guess would be that because Structure reports don't have an
associated start and end date, the .NET XML deserializer is unable to
convert that empty value to a DateTime object when trying to process
the results of the getAllJobs() call. If you could turn on SOAP
logging in your client and tell me what the value is for the requestId
SOAP response header in the getAllJobs() response, or just post the
XML response message you're receiving, it would be helpful by ways of
confirming that.

 Once you do that, if you want a workaround, you should just be able
to use the AdWords web interface to delete the Structure report from
your Report Center, and it will no longer be returned by getAllJobs().

 As an aside, how exactly did you schedule a Structure report against
your MCC account? It really should be run against each client AdWords
account, and Structure reports can't be run cross-client from an MCC.

Cheers,
-Jeff Posnick, AdWords API Team


On Nov 7, 1:20 pm, crozzer <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm running into an error where a previously scheduled and completed
> structure report is sitting and waiting in my account (happens to be
> an MCC account).  As long as that report is there, when I run
> GetAllJobs, i get the following error: (running .NET 3.5)
>
>  String was not recognized as a valid DateTime.
> Description: An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more
> information about the error and where it originated in the code.
>
> Exception Details: System.FormatException: String was not recognized
> as a valid DateTime.
>
> Source Error:
>
> Line 98:         [return:
> System.Xml.Serialization.XmlElementAttribute("getAllJobsReturn")]
> Line 99:         public ReportJob[] getAllJobs() {
> Line 100:            object[] results = this.Invoke("getAllJobs", new
> object[0]);
> Line 101:            return ((ReportJob[])(results[0]));
> Line 102:        }
>
> Source File: C:\inetpub\ppc-tools\lib\src\v12\ReportService.cs
> Line: 100
>
> Stack Trace:
>
> [FormatException: String was not recognized as a valid DateTime.]
>    System.DateTimeParse.ParseExactMultiple(String s, String[] formats,
> DateTimeFormatInfo dtfi, DateTimeStyles style) +2302870
>    System.DateTime.ParseExact(String s, String[] formats,
> IFormatProvider provider, DateTimeStyles style) +46
>    System.Xml.XmlConvert.ToDateTime(String s, String[] formats) +26
>    System.Xml.Serialization.XmlCustomFormatter.ToDateTime(String
> value, String[] formats) +8
>    System.Xml.Serialization.XmlCustomFormatter.ToDate(String value)
> +36
>    System.Xml.Serialization.XmlSerializationReader.ToDate(String
> value) +30
>
> Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderReportS 
> ervice.Read20_DefinedReportJob(Boolean
> isNullable, Boolean checkType) +1068
>
> Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderReportS 
> ervice.Read21_ReportJob(Boolean
> isNullable, Boolean checkType) +130
>
> Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderReportS 
> ervice.Read30_getAllJobsResponse()
> +300
>
> Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer17.Des 
> erialize(XmlSerializationReader
> reader) +40
>    System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
> xmlReader, String encodingStyle, XmlDeserializationEvents events) +161
>
> [InvalidOperationException: There is an error in XML document (511,
> 34).]
>    System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
> xmlReader, String encodingStyle, XmlDeserializationEvents events) +637
>    System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
> xmlReader, String encodingStyle) +32
>
> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClien 
> tMessage
> message, WebResponse response, Stream responseStream, Boolean
> asyncCall) +1671
>    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
> methodName, Object[] parameters) +204
>    com.google.api.adwords.v12.ReportService.getAllJobs() in C:\inetpub
> \ppc-tools\lib\src\v12\ReportService.cs:100
>    ja.api.google.adwords.ReportClient.saveAllReports() in c:\inetpub
> \ppc-tools\App_Code\ja_google_api_adwords\ReportClient.cs:266
>    GetReports.Page_Load(Object sender, EventArgs e) in c:\inetpub\ppc-
> tools\GetReports.aspx.cs:28
>    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp,
> Object o, Object t, EventArgs e) +15
>    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object
> sender, EventArgs e) +33
>    System.Web.UI.Control.OnLoad(EventArgs e) +99
>    System.Web.UI.Control.LoadRecursive() +47
>    System.Web.UI.Page.ProcessRequestMain(Boolean
> includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
> +1436
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to