6 messages in com.googlegroups.adwords-apiRe: getAllAdWordsCampaigns problems a...
FromSent OnAttachments
ClearSense19 Jan 2007 02:41 
dr7d719 Jan 2007 14:42 
ClearSense22 Jan 2007 01:14 
AdWordsAPIAdvisor22 Jan 2007 13:56 
AdWordsAPIAdvisor24 Jan 2007 13:22 
Nicolas05 Feb 2007 01:09 
Subject:Re: getAllAdWordsCampaigns problems after updating to V8
From:AdWordsAPIAdvisor (adwo@google.com)
Date:01/22/2007 01:56:14 PM
List:com.googlegroups.adwords-api

Hi ClearSense

There is an issue affecting the CampaignService that is causing these problems.

We have a resolution that should be in place this week.

Thanks, Aaron Karp AdWords API Team

On Jan 19, 5:41 am, "ClearSense" <v.me@clearsense.nl> wrote:

After updating to V8 we are getting a error when using the CampaignService.getAllAdWordsCampaigns. We are using the WSDL as Web Reference, and haven't changed the generated code.

Below is the error we get returned.

System.InvalidOperationException: There is an error in XML document (12, 34). ---> System.FormatException: Input string was not in a correct format. at System.Number.ParseInt64(String s, NumberStyles style, NumberFormatInfo info) at System.Int64.Parse(String s, NumberStyles style, IFormatProvider provider) at System.Xml.XmlConvert.ToInt64(String s) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read2_BudgetOptimizerSettings(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read1_Campaign(Boolean isNullable, Boolean checkType) at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReader1.Read34_getAllAdWordsCampaignsResponse() --- End of inner exception stack trace --- at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, XmlDeserializationEvents events) at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader) at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Bridge_it.V2.Google.com.google.adwords1.CampaignService.getAllAdWordsCampaigns(Int32 dummy) in c:\...\web references\com.google.adwords1\reference.cs:line 135 at Bridge_it.V2.Google.Connection.GetCampaigns(String myAgent, String myUser, String myPass, String myToken, String myAppToken, String myEmail) in c:\...\bridge-it.v2.google.connection.cs:line 304

Below is the code we use to call the getAllAdWordsCampaigns function.

/****************************************************************************************** * This function generates a list of all campaigns

*****************************************************************************************/ internal Campaign[] GetCampaigns(string myAgent, string myUser, string myPass, string myToken, string myAppToken, string myEmail) { CampaignService myService = new CampaignService(); Campaign[] CampaignList=null;

// Configure the connection with Google myService.Timeout = 300000;

myService.useragentValue = new com.google.adwords1.useragent(); myService.useragentValue.Text = new String[] { myAgent };

myService.emailValue = new com.google.adwords1.email(); myService.emailValue.Text = new String[] { myUser };

myService.passwordValue = new com.google.adwords1.password(); myService.passwordValue.Text = new String[] { myPass };

myService.developerTokenValue = new com.google.adwords1.developerToken(); myService.developerTokenValue.Text = new String[] { myToken };

myService.applicationTokenValue = new com.google.adwords1.applicationToken(); myService.applicationTokenValue.Text = new String[] { myAppToken };

myService.clientEmailValue = new com.google.adwords1.clientEmail(); myService.clientEmailValue.Text = new String[] { myEmail };

// Configure the job try { CampaignList = myService.getAllAdWordsCampaigns(0); } catch(Exception e) { WriteOutput ( e.ToString()); } return CampaignList;

}Anyone got a idea whats wrong?

Kind regards,

Vincent Meijer Junior Developer - ClearSense