Exactly the same problem, do you want me to conact directly the
developer so I can send them my Ids and he can try using the same data
I am using?

On Jul 1, 1:09 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:
> Hello,
>
>  The developer responsible for the .NET client library took a look at
> your code, and noticed the following:
>
>    String[] eMail = new String[] { "sa...@brazilian-cinema.com","" };
>
> Why do you have that extra empty string in your array following your
> email address? Could you try removing it?
>
> Cheers,
> -Jeff Posnick, AdWords API Team
>
> On Jul 1, 6:37 am, brazilian-cinema <sa...@brazilian-cinema.com>
> wrote:
>
> > I used the library
> > I modified the InfoServiceDemo.cs for v13 to look like:
> >     public override void Run(AdWordsUser user) {
> >       // Get the service.
> >       InfoService service = (InfoService) user.GetService
> > (ApiServices.v13.InfoService);
>
> >       // Get the quota for this month.
> >       long usageQuota = service.getUsageQuotaThisMonth();
> >       Console.WriteLine("Usage quota for this month: " + usageQuota);
>
> > //Modification starts here
> >       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[] { "sa...@brazilian-
> > cinema.com","" };
> >       ClientUsageRecord[] ads = service.getUnitCountForClients(eMail,
> > startofmonth, today); //startofmonth,today);
> >           if (ads[0] != null)
> >           {
> >               Console.WriteLine("Quota count this mount Brazilian-
> > cinema: {0}", ads[0].quotaUnits);
> >               return ;
> >           }
> > //Modification end here
>
> >       // Get the quota used between January 1, 2009 and today.
> >       long unitCount = service.getUnitCount(new DateTime(2009, 1, 1,
> > 0, 0, 0), DateTime.Today);
> >       Console.WriteLine("Unit count between January 1, 2009 and today:
> > {0}", unitCount);
>
> >       // Get the operation count used between January 1, 2009 and
> > today.
> >       long operationCount =
> >           service.getOperationCount(new DateTime(2009, 1, 1, 0, 0, 0),
> > DateTime.Today);
> >       Console.WriteLine("Operation count between January 1, 2009 and
> > today: {0}", operationCount);
>
> >       // Get the quota used between January 1, 2009 and today for
> >       // AccountService.getAccountInfo() call.
> >       long methodUnitCount = service.getUnitCountForMethod
> > ("AccountService", "getAccountInfo",
> >           new DateTime(2009, 1, 1, 0, 0, 0), DateTime.Today);
> >       Console.WriteLine("Method unit count for
> > AccountService.getAccountInfo between " +
> >           "January 1, 2009 and today: {0}", methodUnitCount);
> >     }
>
> > Exactly the same error
>
> > - <ns1:fault xmlns:ns1="https://adwords.google.com/api/adwords/v13";>
> >   <ns1:code>122</ns1:code>
> >   <ns1:message>One or more input elements failed validation.</
> > ns1:message>
> > - <ns1:errors>
> >   <ns1:index>0</ns1:index>
> >   <ns1:field>clientEmail</ns1:field>
> >   <ns1:trigger>sa...@brazilian-cinema.com</ns1:trigger>
> >   <ns1:code>4</ns1:code>
> >   <ns1:isExemptable>false</ns1:isExemptable>
> >   <ns1:detail>Either this object does not exist, or this user does not
> > have permission to access it.</ns1:detail>
> >   </ns1:errors>
> > - <ns1:errors>
> >   <ns1:index>1</ns1:index>
> >   <ns1:field>clientEmail</ns1:field>
> >   <ns1:code>4</ns1:code>
> >   <ns1:isExemptable>false</ns1:isExemptable>
> >   <ns1:detail>Either this object does not exist, or this user does not
> > have permission to access it.</ns1:detail>
> >   </ns1:errors>
> >   </ns1:fault>
>
> > In the app definition I did
> >     <add key="CompanyName" value="Sales Harvester"/>
> >     <add key="Email" value="sa...@salesharvester.com"/>
> >     <add key="Password" value="XX"/>
> >     <add key="ClientEmail" value="sa...@brazilian-cinema.com"/>
> >     <add key="DeveloperToken" value="XXX"/>
> >     <add key="ApplicationToken" value="XXX"/>
>
> > I am open to suggestions
> > On Jun 30, 12:53 pm, AdWords API Advisor
>
> > <adwordsapiadvi...@google.com> wrote:
> > > Hello,
>
> > >  Would you be able to try using the .NET client library instead of
> > > classes you generate yourself? If there's an issue making the call
> > > with the .NET client library then the maintainer might be able to
> > > resolve it by doing some manipulation under the hood; if there's an
> > > issue with classes that you're generating yourself then there is
> > > likely not that much we can do to help at this point.
>
> > >  The .NET client library is available at
>
> > >  http://code.google.com/p/google-api-adwords-dotnet/
>
> > > Cheers,
> > > -Jeff Posnick, AdWords API Team
>
> > > On Jun 26, 12:24 pm, brazilian-cinema <sa...@brazilian-cinema.com>
> > > wrote:
>
> > > > I simply added to my c# program the web 
> > > > serviceshttps://adwords.google.com/api/adwords/v13/InfoService?wsdl
> > > > and use it directly, works like a charm, here the full code of the
> > > > class:
>
> > > > using System;
> > > > using System.Collections.Generic;
> > > > using System.Text;
> > > > using System.IO;
> > > > using System.Xml;
> > > > using System.Net;
>
> > > > using GoogleClass.com.google.adwords4;
> > > > namespace GoogleClass
> > > > {
>
> > > >     public class Sh
> > > >     {
> > > >         private static String email = "sa...@salesharvester.com";
> > > >         private static String useragent =            "Sales
> > > > Harvester";
> > > >         private static String developerToken = "X";
> > > >         private static String applicationToken = "X";
> > > >         public static long ClientUsage(string password, string
> > > > 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,"" };
> > > >             DateTime a = new DateTime(2009, 06, 01);
> > > >             DateTime b = new DateTime(2009, 06, 19);
> > > >             try
> > > >             {
> > > >                 ClientUsageRecord[] ads =
> > > > service1.getUnitCountForClients(eMail, startofmonth, today); //
> > > > startofmonth,today);
> > > >                 if (ads[0] != null)
> > > >                 {
> > > >                     return ads[0].quotaUnits;
> > > >                 }
> > > >             }
> > > >             catch (Exception e)
> > > >             {
>
> > > >                 return totalLimit;
> > > >             }
> > > >             return 0;
> > > >         }
>
> > > > }
>
> > > > I use this code in a DLL that is called from my main program
>
> > > > using GoogleClass.com.google.adwords4;
> > > > is defined 
> > > > as:https://adwords.google.com/api/adwords/v13/InfoService?wsdl
>
> > > > On Jun 26, 1:14 pm, AdWords API Advisor <adwordsapiadvi...@google.com>
> > > > wrote:
>
> > > > > Hello,
>
> > > > >  I take that to mean that you're not using the .NET client library
> > > > > (http://code.google.com/p/google-api-adwords-dotnet/), but rather
> > > > > generating the code yourself in Visual Studio from the WSDLs?
>
> > > > > Cheers,
> > > > > -Jeff Posnick, AdWords API Team
>
> > > > > On Jun 25, 3:41 pm, brazilian-cinema <sa...@brazilian-cinema.com>
> > > > > wrote:
>
> > > > > > I am using 
> > > > > > v13https://adwords.google.com/api/adwords/v13/InfoService?wsdl
>
> > > > > > On Jun 25, 2:41 pm, AdWords API Advisor 
> > > > > > <adwordsapiadvi...@google.com>
> > > > > > wrote:
>
> > > > > > > Hmm, looking though the group's archives, you're definitely not 
> > > > > > > the
> > > > > > > first person to report odd behavior with getUnitCountForClients():
>
> > > > > > >  http://groups.google.com/group/adwords-api/browse_thread/thread/27920...
>
> > > > > > > Your current request looks like:
>
> > > > > > >   <getUnitCountForClients xmlns="https://adwords.google.com/api/
> > > > > > > adwords/v13">
> > > > > > >     <clientEmails>u...@domain.com</clientEmails>
> > > > > > >     <clientEmails/>
> > > > > > >     <startDate>2009-06-01</startDate>
> > > > > > >     <endDate>2009-06-24</endDate>
> > > > > > >   </getUnitCountForClients>
>
> > > > > > > So you have both a populated <clientEmails> element and an empty
> > > > > > > <clientEmails/> element. Based on some test requests I've made, it
> > > > > > > looks like the empty <clientEmails/>
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to