I call this routine with the appropriate values for clientEMail InfoService service1 = new InfoService(); service1.emailValue = new GoogleClass.com.google.adwords4.email(); service1.emailValue.Text = new String[] { email }; service1.passwordValue = new GoogleClass.com.google.adwords4.password(); service1.passwordValue.Text = new String[] { password }; service1.clientEmailValue = new GoogleClass.com.google.adwords4.clientEmail(); service1.clientEmailValue.Text = new String[] { clientEmail }; service1.useragentValue = new GoogleClass.com.google.adwords4.useragent(); service1.useragentValue.Text = new String[] { useragent }; service1.developerTokenValue = new GoogleClass.com.google.adwords4.developerToken(); service1.developerTokenValue.Text = new String[] { developerToken }; service1.applicationTokenValue = new GoogleClass.com.google.adwords4.applicationToken(); service1.applicationTokenValue.Text = new String[] { applicationToken }; DateTime today = DateTime.Today; DateTime startofmonth = today; while (startofmonth.Day > 1) { TimeSpan oneday = new TimeSpan(1, 0, 0, 0); startofmonth=startofmonth.Subtract(oneday); } String[] eMail = new String[] { clientEmail };
ClientUsageRecord[] ads = service1.getUnitCountForClients (eMail,startofmonth,today); but it give back the error: an element failed validation Do someone have any light on it? Maurizio --~--~---------~--~----~------------~-------~--~----~ 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 adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en -~----------~----~----~----~------~----~------~--~---