I am trying to use sandbox for google adwords api in c#  version v13
This is the first time i am using sandbox

this is config file  i am using

<adwordsHeaders>
    <add key="email" value="t...@yaho.com"/>
    <add key="password" value="xxx"/>
    <add key="useragent" value="aaa"/>
    <add key="developerToken" value="t...@yahoo.com++usd"/>

    <!-- Use alternateUrl to make calls against Sandbox (optional) -->
    <add key="alternateUrl" value="https://sandbox.google.com/"/>
      </adwordsHeaders>


This is the  c# code i am using


Hashtable headers = (Hashtable)
System.Configuration.ConfigurationManager.GetSection
("adwordsHeaders");




        AccountService service = new AccountService();
        email h1=new email();
         h1.Text = new string[] { headers["email"].ToString() };

        password h2 = new password();
        h2.Text = new string[] { headers["password"].ToString() };



        useragent h3 = new useragent();
        h3.Text = new string[] { headers["useragent"].ToString() };



        developerToken h4 = new developerToken();
        h4.Text = new string[] { headers["developerToken"].ToString
() };



        service.emailValue = h1;
        service.passwordValue = h2;
        service.useragentValue = h3;
        service.developerTokenValue = h4;


            String[] loginEmails = service.getClientAccounts();



I am getting an error saying "Developer Token is invalid"

--~--~---------~--~----~------------~-------~--~----~
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