Great thanks for the advise! Cheers, JJ
On Aug 13, 11:46 am, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Jianjin, > > You can create the sandbox service in one of the two ways: > > Approach 1 > ========= > > a. Enter all values in web.config. > b. Uncomment AdWordsApi.Url and LegacyAdWordsApi.Url in the > web.config. > c. AdWordsUser = new AdWordsUser(); > d. AccountService accService = (AccountService) > user.getService(AdWordsService.v13.AccountService); > > Approach 2 > ========= > > Use this approach if you don't want to set values in > App.config.http://code.google.com/p/google-api-adwords-dotnet/source/browse/trun... > has a working example for this. > > Hope this helps. Let me know if you have more questions. > > Cheers, > Anash P. Oommen, > AdWords API Advisor. > > On Aug 12, 4:48 pm, jianjin cheng <chengjian...@gmail.com> wrote: > > > Hi, > > > I am very new to the adwords api and currently using the dotnet client > > library. > > When I use the sandbox and following this > > articlehttp://code.google.com/apis/adwords/articles/adwords_api_sandbox_best... > > > below is my codes: > > > AccountService service = new AccountService(); > > service.useragentValue = new useragent() { Value = new string[] > > { "xxx"} }; > > service.developerTokenValue = new developerToken() { Value = new > > string[]{ "my_gmail++SGD"} }; > > service.emailValue = new email() { Value = new string[] > > { "my_gmail" } }; > > service.passwordValue = new password() { Value = new string[] > > { "******" } }; > > service.getClientAccounts(); > > > I always get an error message "The developer token is invalid". > > > I have also modified the web.config file uncommented some of the > > sandbox keys. Anyone can help here? Thanks in advance. > > > Regards, > > JJ -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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