13 messages in com.googlegroups.adwords-apiRe: getAllAdWordsCampaigns problems a...
FromSent OnAttachments
ClearSense27 Mar 2008 04:43 
turner_pg27 Mar 2008 05:42 
av61327 Mar 2008 08:21 
MorningZ27 Mar 2008 11:08 
AdWords API Advisor27 Mar 2008 15:28 
AV08 Apr 2008 08:51 
ovation09 Apr 2008 09:09 
AdWords API Advisor09 Apr 2008 10:48 
Peer Jakobsen09 Apr 2008 13:39 
AdWords API Advisor10 Apr 2008 08:39 
eint...@gmail.com17 Apr 2008 12:38 
Elocallisting22 Apr 2008 04:40 
AdWords API Advisor29 Apr 2008 09:24 
Subject:Re: getAllAdWordsCampaigns problems after updating to V12, it throws a "There is an error in XML document" error
From:AdWords API Advisor (adwo@google.com)
Date:03/27/2008 03:28:24 PM
List:com.googlegroups.adwords-api

Thanks for bringing this to our attention. It would appear that the .NET XML deserializer is getting choked up when it tries to convert the

<maxCpaBidForAllAdGroups xsi:nil="true"/>

element into a long. I can reproduce this error as well.

I'll need some time to investigate this a bit further and escalate to the engineering team if necessary. For what it's worth, in the v12 CampaignService WSDL, that element is defined as

<element name="maxCpaBidForAllAdGroups" minOccurs="0" type="xsd:long"/>

and my guess is there's a conflict that comes up with the .NET SOAP framework when you define an element with a minOccurs="0" and returning an instance of that element set to nil--it looks like it still tries to parse the long value out of the nil element.

Cheers, -Jeff Posnick, AdWords API Team

On Mar 27, 7:44 am, ClearSense <v.me@clearsense.nl> wrote:

Heya,

Anyone having the same problem with the V12 CampaignService?

I had this same issue when i was upgrading to version 8,
seehttp://groups.google.com/group/adwords-api/browse_thread/thread/13362...

Anyway, below are the error and soap messages.

System.InvalidOperationException: There is an error in XML document (19, 47). ---> System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Xml.XmlConvert.ToInt64(String s) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCampaignService.Read8_ConversionOptimizerSettings(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCampaignService.Read19_Campaign(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCampaignService.Read45_getAllAdWordsCampaignsResponse() at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer22.Deserialize(XmlSerializationReader reader) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) --- End of inner exception stack trace --- at Bridge_it.V2.GoogleAPI.CampaignService.Invoke(String methodName, Object[] parameters) at Bridge_it.V2.GoogleAPI.CampaignService.getAllAdWordsCampaigns(Int32 dummy) at Bridge_it.V2.GoogleAPI.Connection.GetCampaigns(String myAgent, String myUser, String myPass, String myToken, String myAppToken, String myEmail)

-----SoapRequest at 27-3-2008 12:22:48 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/ XMLSchema"><soap:Header><applicationToken xmlns="https:// adwords.google.com/api/adwords/v12">XXXXXXXXXXXX</ applicationToken><clientEmail xmlns="https://adwords.google.com/api/ adwords/v12">XXXXXXXXXXXX</clientEmail><developerToken xmlns="https:// adwords.google.com/api/adwords/v12">XXXXXXXXXXXX</ developerToken><email xmlns="https://adwords.google.com/api/adwords/ v12">XXXXXXXXXXXX</email><password xmlns="https://adwords.google.com/ api/adwords/v12">XXXXXXXXXXXX</password><useragent xmlns="https:// adwords.google.com/api/adwords/v12">ClearSense B.V. - Bridge-It V2</ useragent></soap:Header><soap:Body><getAllAdWordsCampaigns xmlns="https://adwords.google.com/api/adwords/v12"><dummy>0</dummy></ getAllAdWordsCampaigns></soap:Body></soap:Envelope>

-----SoapResponse at 27-3-2008 12:22:48 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/ envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <responseTime soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">40</responseTime> <operations soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">2</operations> <units soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">2</units> <requestId soapenv:actor="http://schemas.xmlsoap.org/soap/actor/ next" soapenv:mustUnderstand="0" xmlns="https://adwords.google.com/api/ adwords/v12">1b31036ce249265eac71f7d1bfb6afcf</requestId> </soapenv:Header> <soapenv:Body> <getAllAdWordsCampaignsResponse xmlns="https://adwords.google.com/ api/adwords/v12"> <getAllAdWordsCampaignsReturn> <budgetAmount>30000000</budgetAmount> <budgetOptimizerSettings> <enabled>false</enabled> </budgetOptimizerSettings> <budgetPeriod>Daily</budgetPeriod> <contentTargeting>AllPlacements</contentTargeting> <conversionOptimizerSettings> <enabled>false</enabled> <maxCpaBidForAllAdGroups xsi:nil="true"/> </conversionOptimizerSettings> <enableSeparateContentBids>false</enableSeparateContentBids> <endDay>2005-01-04-08:00</endDay> <geoTargeting> <targetAll>false</targetAll> <countryTargets> <countries>NL</countries> </countryTargets> <regionTargets xsi:nil="true"/> <metroTargets xsi:nil="true"/> <cityTargets xsi:nil="true"/> <proximityTargets xsi:nil="true"/> </geoTargeting> <id>3118253</id> <languageTargeting xsi:nil="true"/> <name>XXXXXXXXXXXX</name> <networkTargeting> <networkTypes>SearchNetwork</networkTypes> </networkTargeting> <schedule> <status>Disabled</status> </schedule> <startDay>2004-02-12-08:00</startDay> <status>Paused</status> </getAllAdWordsCampaignsReturn> <getAllAdWordsCampaignsReturn> <budgetAmount>220000000</budgetAmount> <budgetOptimizerSettings> <enabled>false</enabled> </budgetOptimizerSettings> <budgetPeriod>Daily</budgetPeriod> <contentTargeting>AllPlacements</contentTargeting> <conversionOptimizerSettings> <enabled>false</enabled> <maxCpaBidForAllAdGroups xsi:nil="true"/> </conversionOptimizerSettings> <enableSeparateContentBids>false</enableSeparateContentBids> <endDay>2037-12-30-08:00</endDay> <geoTargeting> <targetAll>false</targetAll> <countryTargets> <countries>NL</countries> </countryTargets> <regionTargets xsi:nil="true"/> <metroTargets xsi:nil="true"/> <cityTargets xsi:nil="true"/> <proximityTargets xsi:nil="true"/> </geoTargeting> <id>5464043</id> <languageTargeting xsi:nil="true"/> <name>XXXXXXXXXXXX</name> <networkTargeting> <networkTypes>SearchNetwork</networkTypes> <networkTypes>ContentNetwork</networkTypes> </networkTargeting> <schedule> <status>Disabled</status> </schedule> <startDay>2004-12-30-08:00</startDay> <status>Suspended</status> </getAllAdWordsCampaignsReturn> </getAllAdWordsCampaignsResponse> </soapenv:Body> </soapenv:Envelope>

Anyone got a idea whats wrong? hope anyone can help me out.

Kind regards,

Vincent Meijer