Hello Phil,
Yes, the error you describe is coming from Microsoft's XML
serialization library code. You say that it happens when serializing
integers--what makes you think that? Any how is it that you're passing
in anything other than the characters 0-9 for an integer value?
I'd think that if you break into the debugger when this exception is
through there should be some way to get more information about the
error from inspecting the exception's properties--Visual Studio's
debugger is usually pretty good about that. Unfortunately, if this
error is occurring during XML serialization as you suggest, it's
unlikely that you would be able to turn on logging to see the XML
being generated, as it's the XML generation itself that is failing.
Cheers,
-Jeff Posnick, AdWords API Team